Skip to content

Commit 9b2abf9

Browse files
Merge branch '7.4' into 8.0
* 7.4: [FrameworkBundle] Expose share directory in AboutCommand Move readonly keyword from class to properties
2 parents a6c5500 + 07f3560 commit 9b2abf9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Arc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
/**
1515
* @author Grégoire Pineau <lyrixx@lyrixx.info>
1616
*/
17-
final readonly class Arc
17+
final class Arc
1818
{
1919
public function __construct(
20-
public string $place,
21-
public int $weight,
20+
public readonly string $place,
21+
public readonly int $weight,
2222
) {
2323
if ($weight < 1) {
2424
throw new \InvalidArgumentException(\sprintf('The weight must be greater than 0, %d given.', $weight));

Debug/ListenerExtractor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
*
2424
* @author Grégoire Pineau <lyrixx@lyrixx.info>
2525
*/
26-
final readonly class ListenerExtractor
26+
final class ListenerExtractor
2727
{
2828
public function __construct(
29-
private ?EventDispatcherInterface $dispatcher = null,
30-
private ?FileLinkFormatter $fileLinkFormatter = null,
29+
private readonly ?EventDispatcherInterface $dispatcher = null,
30+
private readonly ?FileLinkFormatter $fileLinkFormatter = null,
3131
) {
3232
}
3333

0 commit comments

Comments
 (0)