File tree Expand file tree Collapse file tree 30 files changed +56
-99
lines changed Expand file tree Collapse file tree 30 files changed +56
-99
lines changed Original file line number Diff line number Diff line change 3939 matrix :
4040 include :
4141 - description : ' Lowest'
42- php : ' 8.0 '
42+ php : ' 8.1 '
4343 composer_option : ' --prefer-lowest'
4444 - description : ' 8.1'
4545 php : ' 8.1'
Original file line number Diff line number Diff line change 1818 'php_unit_mock_short_will_return ' => true ,
1919 'no_extra_blank_lines ' => true ,
2020 'no_unused_imports ' => true ,
21+ 'nullable_type_declaration_for_default_null_value ' => true ,
2122 ])
2223 ->setFinder ($ finder )
2324;
Original file line number Diff line number Diff line change 2222 }
2323 ],
2424 "require" : {
25- "php" : " ^8.0 " ,
25+ "php" : " ^8.1 " ,
2626 "symfony/event-dispatcher-contracts" : " ^3.0"
2727 },
2828 "require-dev" : {
Original file line number Diff line number Diff line change 77
88final class RequestArgumentAccess implements ArgumentAccessInterface
99{
10- private RequestStack $ requestStack ;
11-
12- public function __construct (RequestStack $ requestStack )
10+ public function __construct (private readonly RequestStack $ requestStack )
1311 {
14- $ this ->requestStack = $ requestStack ;
1512 }
1613
1714 public function has (string $ name ): bool
Original file line number Diff line number Diff line change 1010 */
1111final class AfterEvent extends Event
1212{
13- /** @var PaginationInterface<int, mixed> */
14- private PaginationInterface $ pagination ;
15-
1613 /**
17- * @param PaginationInterface<int, mixed> $paginationView
14+ * @param PaginationInterface<int, mixed> $pagination
1815 */
19- public function __construct (PaginationInterface $ paginationView )
16+ public function __construct (private readonly PaginationInterface $ pagination )
2017 {
21- $ this ->pagination = $ paginationView ;
2218 }
2319
2420 /**
Original file line number Diff line number Diff line change 1313final class BeforeEvent extends Event
1414{
1515 public function __construct (
16- private EventDispatcherInterface $ eventDispatcher ,
17- private ArgumentAccessInterface $ argumentAccess ,
18- private ?Connection $ connection = null
16+ private readonly EventDispatcherInterface $ eventDispatcher ,
17+ private readonly ArgumentAccessInterface $ argumentAccess ,
18+ private readonly ?Connection $ connection = null
1919 ) {
2020 }
2121
Original file line number Diff line number Diff line change @@ -29,18 +29,13 @@ final class ItemsEvent extends Event
2929 */
3030 public int $ count ;
3131
32- private int $ offset ;
33- private int $ limit ;
34-
3532 /**
3633 * @var array<string, mixed>
3734 */
3835 private array $ customPaginationParams = [];
3936
40- public function __construct (int $ offset , int $ limit )
37+ public function __construct (private readonly int $ offset , private readonly int $ limit )
4138 {
42- $ this ->offset = $ offset ;
43- $ this ->limit = $ limit ;
4439 }
4540
4641 public function setCustomPaginationParameter (string $ name , mixed $ value ): void
Original file line number Diff line number Diff line change 1313
1414class QuerySubscriber implements EventSubscriberInterface
1515{
16- private ArgumentAccessInterface $ argumentAccess ;
17-
18- public function __construct (ArgumentAccessInterface $ argumentAccess )
16+ public function __construct (private readonly ArgumentAccessInterface $ argumentAccess )
1917 {
20- $ this ->argumentAccess = $ argumentAccess ;
2118 }
2219
2320 public function items (ItemsEvent $ event ): void
Original file line number Diff line number Diff line change 1010
1111class PropelQuerySubscriber implements EventSubscriberInterface
1212{
13- private ArgumentAccessInterface $ argumentAccess ;
14-
15- public function __construct (ArgumentAccessInterface $ argumentAccess )
13+ public function __construct (private readonly ArgumentAccessInterface $ argumentAccess )
1614 {
17- $ this ->argumentAccess = $ argumentAccess ;
1815 }
1916
2017 public function items (ItemsEvent $ event ): void
Original file line number Diff line number Diff line change 1414 */
1515class DBALQueryBuilderSubscriber implements EventSubscriberInterface
1616{
17- public function __construct (private Connection $ connection )
17+ public function __construct (private readonly Connection $ connection )
1818 {
1919 }
2020
You can’t perform that action at this time.
0 commit comments