Skip to content

Commit f84a0bd

Browse files
committed
Process Rector rule: ReadOnlyPropertyRector
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent b04a909 commit f84a0bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ConsoleApplication extends Application
1212
private bool $commandsRegistered = false;
1313

1414
public function __construct(
15-
private KernelInterface $kernel,
15+
private readonly KernelInterface $kernel,
1616
) {
1717
parent::__construct('Dirigent', Kernel::VERSION);
1818
}

src/Doctrine/Repository/PackageRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class PackageRepository extends ServiceEntityRepository
2121
{
22-
private ?\DateInterval $periodicUpdateInterval;
22+
private readonly ?\DateInterval $periodicUpdateInterval;
2323

2424
/**
2525
* @var array<string, Package>

0 commit comments

Comments
 (0)