Skip to content

Commit bb0eb01

Browse files
Copilotlisachenko
andcommitted
Fix deprecated nullable parameter declarations across all files
Co-authored-by: lisachenko <[email protected]>
1 parent 2e51a8c commit bb0eb01

15 files changed

+16
-16
lines changed

src/Aop/Pointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getKind(): int;
8181
*/
8282
public function matches(
8383
ReflectionClass|ReflectionFileNamespace $context,
84-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
84+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
8585
object|string $instanceOrScope = null,
8686
array $arguments = null
8787
): bool;

src/Aop/Pointcut/AndPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(int $pointcutKind = null, Pointcut ...$pointcuts)
5454

5555
public function matches(
5656
ReflectionClass|ReflectionFileNamespace $context,
57-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
57+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
5858
object|string $instanceOrScope = null,
5959
array $arguments = null
6060
): bool {

src/Aop/Pointcut/AttributePointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343

4444
final public function matches(
4545
ReflectionClass|ReflectionFileNamespace $context,
46-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
46+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
4747
object|string $instanceOrScope = null,
4848
array $arguments = null
4949
): bool {

src/Aop/Pointcut/ClassInheritancePointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(private string $parentClassOrInterfaceName) {}
3333

3434
public function matches(
3535
ReflectionClass|ReflectionFileNamespace $context,
36-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
36+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
3737
object|string $instanceOrScope = null,
3838
array $arguments = null
3939
): bool {

src/Aop/Pointcut/MagicMethodDynamicPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(private string $methodName) {
5050

5151
public function matches(
5252
ReflectionClass|ReflectionFileNamespace $context,
53-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
53+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
5454
object|string $instanceOrScope = null,
5555
array $arguments = null
5656
): bool {

src/Aop/Pointcut/MatchInheritedPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class MatchInheritedPointcut implements Pointcut
2828
{
2929
public function matches(
3030
ReflectionClass|ReflectionFileNamespace $context,
31-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
31+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
3232
object|string $instanceOrScope = null,
3333
array $arguments = null
3434
): bool {

src/Aop/Pointcut/ModifierPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(int $initialMask = 0)
5454
*/
5555
public function matches(
5656
ReflectionClass|ReflectionFileNamespace $context,
57-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
57+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
5858
object|string $instanceOrScope = null,
5959
array $arguments = null
6060
): bool {

src/Aop/Pointcut/NamePointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454

5555
public function matches(
5656
ReflectionClass|ReflectionFileNamespace $context,
57-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
57+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
5858
object|string $instanceOrScope = null,
5959
array $arguments = null
6060
): bool {

src/Aop/Pointcut/NotPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(private Pointcut $pointcut) {}
3434
*/
3535
public function matches(
3636
ReflectionClass|ReflectionFileNamespace $context,
37-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
37+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
3838
object|string $instanceOrScope = null,
3939
array $arguments = null
4040
): bool {

src/Aop/Pointcut/OrPointcut.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(Pointcut ...$pointcuts)
5151

5252
public function matches(
5353
ReflectionClass|ReflectionFileNamespace $context,
54-
ReflectionMethod|ReflectionProperty|ReflectionFunction $reflector = null,
54+
ReflectionMethod|ReflectionProperty|ReflectionFunction|null $reflector = null,
5555
object|string $instanceOrScope = null,
5656
array $arguments = null
5757
): bool {

0 commit comments

Comments
 (0)