@@ -122,7 +122,7 @@ public function shouldAcceptStaticClassCallbackWithIntersectionTypehint()
122
122
public function shouldAcceptInvokableObjectCallbackWithDNFTypehint ()
123
123
{
124
124
self ::assertFalse (_checkTypehint (new CallbackWithDNFTypehintClass (), new \RuntimeException ()));
125
- self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new ArrayAccessibleException ()));
125
+ self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new IterableException ()));
126
126
self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new CountableException ()));
127
127
}
128
128
@@ -134,7 +134,7 @@ public function shouldAcceptObjectMethodCallbackWithDNFTypehint()
134
134
{
135
135
self ::assertFalse (_checkTypehint ([new CallbackWithDNFTypehintClass (), 'testCallback ' ], new \RuntimeException ()));
136
136
self ::assertTrue (_checkTypehint ([new CallbackWithDNFTypehintClass (), 'testCallback ' ], new CountableException ()));
137
- self ::assertTrue (_checkTypehint ([new CallbackWithDNFTypehintClass (), 'testCallback ' ], new ArrayAccessibleException ()));
137
+ self ::assertTrue (_checkTypehint ([new CallbackWithDNFTypehintClass (), 'testCallback ' ], new IterableException ()));
138
138
}
139
139
140
140
/**
@@ -145,7 +145,7 @@ public function shouldAcceptStaticClassCallbackWithDNFTypehint()
145
145
{
146
146
self ::assertFalse (_checkTypehint ([CallbackWithDNFTypehintClass::class, 'testCallbackStatic ' ], new \RuntimeException ()));
147
147
self ::assertTrue (_checkTypehint ([CallbackWithDNFTypehintClass::class, 'testCallbackStatic ' ], new CountableException ()));
148
- self ::assertTrue (_checkTypehint ([CallbackWithDNFTypehintClass::class, 'testCallbackStatic ' ], new ArrayAccessibleException ()));
148
+ self ::assertTrue (_checkTypehint ([CallbackWithDNFTypehintClass::class, 'testCallbackStatic ' ], new IterableException ()));
149
149
}
150
150
151
151
/** @test */
0 commit comments