diff --git a/typo3/sysext/core/Classes/Utility/CommandUtility.php b/typo3/sysext/core/Classes/Utility/CommandUtility.php index a1a894cd6435da9feee38cee20f3cb5dd04d6fe9..731ede0cf655487831c1cc49bf093ad0215741c7 100644 --- a/typo3/sysext/core/Classes/Utility/CommandUtility.php +++ b/typo3/sysext/core/Classes/Utility/CommandUtility.php @@ -159,7 +159,7 @@ class CommandUtility return -1; } // Already checked and valid - if (self::$applications[$cmd]['valid']) { + if (self::$applications[$cmd]['valid'] ?? false) { return true; } // Is set but was (above) not TRUE diff --git a/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php b/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php index e1bad6f90a41e342f58ab5742c3b49b9bc8baa32..0101a0e188d1b0c36e65223e92edf03552b9c1ec 100644 --- a/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php +++ b/typo3/sysext/rsaauth/Tests/Unit/Backend/CommandLineBackendTest.php @@ -1,4 +1,5 @@ <?php +declare(strict_types = 1); namespace TYPO3\CMS\Rsaauth\Tests\Unit\Backend; /* @@ -15,17 +16,13 @@ namespace TYPO3\CMS\Rsaauth\Tests\Unit\Backend; */ use TYPO3\CMS\Rsaauth\Backend\CommandLineBackend; +use TYPO3\TestingFramework\Core\Unit\UnitTestCase; /** * Test case. */ -class CommandLineBackendTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase +class CommandLineBackendTest extends UnitTestCase { - /** - * Subject is not notice free, disable E_NOTICES - */ - protected static $suppressNotices = true; - /** * @var CommandLineBackend */