Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Reflection/ReflectionMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ private function callStaticMethod(array $args): mixed
/** @psalm-suppress InvalidStringClass */
$closure = Closure::bind(fn (string $implementingClassName, string $_methodName, array $methodArgs): mixed => $implementingClassName::{$_methodName}(...$methodArgs), null, $implementingClassName);

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

return $closure->__invoke($implementingClassName, $this->getName(), $args);
Expand All @@ -515,7 +514,6 @@ private function callObjectMethod(object $object, array $args): mixed
/** @psalm-suppress MixedMethodCall */
$closure = Closure::bind(fn (object $object, string $methodName, array $methodArgs): mixed => $object->{$methodName}(...$methodArgs), $object, $this->getImplementingClass()->getName());

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

return $closure->__invoke($object, $this->getName(), $args);
Expand Down
4 changes: 0 additions & 4 deletions src/Reflection/ReflectionProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ public function getValue(object|null $object = null): mixed

$closure = Closure::bind(fn (string $implementingClassName, string $propertyName): mixed => $implementingClassName::${$propertyName}, null, $implementingClassName);

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

return $closure->__invoke($implementingClassName, $this->getName());
Expand All @@ -510,7 +509,6 @@ public function getValue(object|null $object = null): mixed

$closure = Closure::bind(fn (object $instance, string $propertyName): mixed => $instance->{$propertyName}, $instance, $implementingClassName);

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

return $closure->__invoke($instance, $this->getName());
Expand All @@ -534,7 +532,6 @@ public function setValue(mixed $object, mixed $value = null): void
$_implementingClassName::${$_propertyName} = $value;
}, null, $implementingClassName);

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

$closure->__invoke($implementingClassName, $this->getName(), func_num_args() === 2 ? $value : $object);
Expand All @@ -548,7 +545,6 @@ public function setValue(mixed $object, mixed $value = null): void
$instance->{$propertyName} = $value;
}, $instance, $implementingClassName);

/** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
assert($closure instanceof Closure);

$closure->__invoke($instance, $this->getName(), $value);
Expand Down
4 changes: 2 additions & 2 deletions tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"require": {
"doctrine/coding-standard": "^14.0.0",
"infection/infection": "^0.34.0",
"phpstan/phpstan": "^2.2.2",
"phpstan/phpstan-phpunit": "^2.0.16",
"phpstan/phpstan": "^2.2.3",
"phpstan/phpstan-phpunit": "^2.0.17",
"vimeo/psalm": "^6.16.1",
"roave/backward-compatibility-check": "^8.21.0"
},
Expand Down
79 changes: 66 additions & 13 deletions tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading