File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 ));
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments