Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commitbc82b67
committed
bug#59844 [TypeInfo] Fix
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 | MITPreviously, `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 treeisSatisfiedBy
not traversing type tree (mtarld)2 files changed
+26
-10
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
16 | 18 |
| |
17 | 19 |
| |
18 | 20 |
| |
| |||
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 |
|
Lines changed: 16 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 |
| |
33 | 41 |
| |
34 | 42 |
| |
| |||
37 | 45 |
| |
38 | 46 |
| |
39 | 47 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
| 48 | + | |
44 | 49 |
| |
45 |
| - | |
46 |
| - | |
47 |
| - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 |
| |
49 |
| - | |
50 |
| - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 |
| |
52 |
| - | |
| 58 | + | |
53 | 59 |
| |
54 | 60 |
| |
55 | 61 |
| |
|
0 commit comments
Comments
(0)