Commit f723bb4f authored by Andreas Wolf's avatar Andreas Wolf

[BUGFIX] Relation must use Version utility w/ alias

There is a class Version the the Domain\Model namespace, which makes the
import fail otherwise.
parent d5d84677
Pipeline #2708 passed with stages
in 4 minutes and 9 seconds
......@@ -15,7 +15,7 @@ namespace T3o\TerFe2\Domain\Model;
* The TYPO3 project - inspiring people to share!
*/
use T3o\TerFe2\Utility\Version;
use T3o\TerFe2\Utility\Version as VersionUtility;
/**
* Any type of relation of an extension
......@@ -179,11 +179,11 @@ class Relation extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
$version = [];
if (!empty($this->minimumVersion)) {
$version[] = Version::versionFromInteger($this->minimumVersion);
$version[] = VersionUtility::versionFromInteger($this->minimumVersion);
}
if (!empty($this->maximumVersion)) {
$version[] = Version::versionFromInteger($this->maximumVersion);
$version[] = VersionUtility::versionFromInteger($this->maximumVersion);
}
return (!empty($version) ? implode(' - ', $version) : '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment