@@ -500,7 +500,6 @@ public function getValue(object|null $object = null): mixed
500500
501501 $ closure = Closure::bind (fn (string $ implementingClassName , string $ propertyName ): mixed => $ implementingClassName ::$ {$ propertyName }, null , $ implementingClassName );
502502
503- /** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
504503 assert ($ closure instanceof Closure);
505504
506505 return $ closure ->__invoke ($ implementingClassName , $ this ->getName ());
@@ -510,7 +509,6 @@ public function getValue(object|null $object = null): mixed
510509
511510 $ closure = Closure::bind (fn (object $ instance , string $ propertyName ): mixed => $ instance ->{$ propertyName }, $ instance , $ implementingClassName );
512511
513- /** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
514512 assert ($ closure instanceof Closure);
515513
516514 return $ closure ->__invoke ($ instance , $ this ->getName ());
@@ -534,7 +532,6 @@ public function setValue(mixed $object, mixed $value = null): void
534532 $ _implementingClassName ::$ {$ _propertyName } = $ value ;
535533 }, null , $ implementingClassName );
536534
537- /** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
538535 assert ($ closure instanceof Closure);
539536
540537 $ closure ->__invoke ($ implementingClassName , $ this ->getName (), func_num_args () === 2 ? $ value : $ object );
@@ -548,7 +545,6 @@ public function setValue(mixed $object, mixed $value = null): void
548545 $ instance ->{$ propertyName } = $ value ;
549546 }, $ instance , $ implementingClassName );
550547
551- /** @phpstan-ignore function.alreadyNarrowedType, instanceof.alwaysTrue */
552548 assert ($ closure instanceof Closure);
553549
554550 $ closure ->__invoke ($ instance , $ this ->getName (), $ value );
0 commit comments