You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #59844 [TypeInfo] Fix isSatisfiedBy not traversing type tree (mtarld)
This PR was merged into the 7.2 branch.
Discussion
----------
[TypeInfo] Fix `isSatisfiedBy` not traversing type tree
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
Previously, `Type::isSatisfiedBy` was not traversing the type tree, which means that:
```php
$specification = static fn (Type $type): bool => $type instanceof ObjectType;
return Type::collection(Type::object(Foo::class))->isSatisfiedBy($specification);
```
was unexpectedly returning `false`.
This PR fixes it.
Commits
-------
8df764a [TypeInfo] Fix `isSatisfiedBy` not traversing type tree
0 commit comments