diff --git a/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php b/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php index d9fb5d2121f1..ff0a56dd1b70 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php @@ -23,15 +23,10 @@ class AreaTest extends UnitTestCase { - /** - * Subject is not notice free, disable E_NOTICES - */ - protected static $suppressNotices = true; - /** * @test */ - public function makeRelativeToFileReducesSizes() + public function makeRelativeToFileReducesSizes(): void { $imageArea = new Area(50.0, 50.0, 100.0, 100.0); $imageFixture = new File( @@ -49,7 +44,7 @@ public function makeRelativeToFileReducesSizes() $this->assertSame($expectedResult, $relativeArea->asArray()); } - public function applyRatioRestrictsAreaToRespectRatioDataProvider() + public function applyRatioRestrictsAreaToRespectRatioDataProvider(): array { return [ [ @@ -77,7 +72,7 @@ public function applyRatioRestrictsAreaToRespectRatioDataProvider() * @test * @dataProvider applyRatioRestrictsAreaToRespectRatioDataProvider */ - public function applyRatioRestrictsAreaToRespectRatio(array $areaSize, $ratio) + public function applyRatioRestrictsAreaToRespectRatio(array $areaSize, $ratio): void { $area = new Area(...$areaSize); $ratioFixture = new Ratio('dummy', 'dummy', $ratio); @@ -88,7 +83,7 @@ public function applyRatioRestrictsAreaToRespectRatio(array $areaSize, $ratio) /** * @test */ - public function applyRatioDoesNothingForFreeRatio() + public function applyRatioDoesNothingForFreeRatio(): void { $area = new Area(0.1, 0.1, 0.2, 0.4); $ratioFixture = new Ratio('dummy', 'dummy', 0.0);