Skip to content

Commit 246ed4b

Browse files
committed
Apply withPhpSets rectors
1 parent 62c1af4 commit 246ed4b

4 files changed

Lines changed: 2 additions & 7 deletions

File tree

ci/qa/rector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
__DIR__ . '/../../templates',
1313
])
1414
// uncomment to reach your current PHP version
15-
// ->withPhpSets()
15+
->withPhpSets()
1616
->withAttributesSets(all: true)
1717
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
18-
// ->withTypeCoverageLevel(0)
19-
// ->withDeadCodeLevel(0)
20-
// ->withCodeQualityLevel(0)
2118
;

src/Surfnet/StepupRa/RaBundle/Tests/Security/Session/SessionLifetimeGuardTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ public function bothLimitsVerificationProvider(): array
238238
private function setCurrentTime(DateTime $now = null): void
239239
{
240240
$nowProperty = new ReflectionProperty(DateTime::class, 'now');
241-
$nowProperty->setAccessible(true);
242241
$nowProperty->setValue(null, $now);
243242
}
244243

src/Surfnet/StepupRa/RaBundle/Tests/Security/Session/SessionStorageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ public function a_session_can_be_migrated()
342342
private function setCurrentTime(DateTime $now = null): void
343343
{
344344
$nowProperty = new ReflectionProperty(DateTime::class, 'now');
345-
$nowProperty->setAccessible(true);
346345
$nowProperty->setValue(null, $now);
347346
}
348347
}

src/Surfnet/StepupRa/RaBundle/Value/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DateTime implements Stringable
4242
*/
4343
private static ?self $now = null;
4444

45-
private CoreDateTime $dateTime;
45+
private readonly CoreDateTime $dateTime;
4646

4747
public static function now(): DateTime
4848
{

0 commit comments

Comments
 (0)