Commit 10b041a3 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Restore some functionality removed by rector

parent a6940d61
Pipeline #9548 failed with stages
in 2 minutes and 41 seconds
...@@ -24,6 +24,7 @@ use TYPO3\CMS\Extbase\Persistence\ObjectStorage; ...@@ -24,6 +24,7 @@ use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
class Version extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity class Version extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{ {
const VERSION_IS_INSECURE = -1; const VERSION_IS_INSECURE = -1;
const VERSION_IS_OUTDATED = -2;
/** /**
* Title of the extension * Title of the extension
......
...@@ -25,7 +25,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; ...@@ -25,7 +25,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
*/ */
class CombinedExtensionRepository class CombinedExtensionRepository
{ {
protected object $documentationService; protected ?DocumentationService $documentationService = null;
public function __construct(DocumentationService $documentationService = null) public function __construct(DocumentationService $documentationService = null)
{ {
......
...@@ -159,7 +159,7 @@ class LTSVersionService ...@@ -159,7 +159,7 @@ class LTSVersionService
public function getOldLTSVersions(): array public function getOldLTSVersions(): array
{ {
$oldLTSVersions = []; $oldLTSVersions = [];
$allLTSVersions = $this->getAllLTSVersions(); $allLTSVersions = $this->getAllLTSVersions(true);
foreach ($allLTSVersions as $version) { foreach ($allLTSVersions as $version) {
if (!in_array($version, array_merge($this->getActiveVersions(), $this->getELTSVersions()), true)) { if (!in_array($version, array_merge($this->getActiveVersions(), $this->getELTSVersions()), true)) {
$oldLTSVersions[] = $version; $oldLTSVersions[] = $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