@@ -122,7 +122,7 @@ public function shouldAcceptStaticClassCallbackWithIntersectionTypehint()
122122 public function shouldAcceptInvokableObjectCallbackWithDNFTypehint ()
123123 {
124124 self ::assertFalse (_checkTypehint (new CallbackWithDNFTypehintClass (), new \RuntimeException ()));
125- self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new ArrayAccessibleException ()));
125+ self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new IterableException ()));
126126 self ::assertTrue (_checkTypehint (new CallbackWithDNFTypehintClass (), new CountableException ()));
127127 }
128128
@@ -134,7 +134,7 @@ public function shouldAcceptObjectMethodCallbackWithDNFTypehint()
134134 {
135135 self ::assertFalse (_checkTypehint ([new CallbackWithDNFTypehintClass (), 'testCallback ' ], new \RuntimeException ()));
136136 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 ()));
138138 }
139139
140140 /**
@@ -145,7 +145,7 @@ public function shouldAcceptStaticClassCallbackWithDNFTypehint()
145145 {
146146 self ::assertFalse (_checkTypehint ([CallbackWithDNFTypehintClass::class, 'testCallbackStatic ' ], new \RuntimeException ()));
147147 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 ()));
149149 }
150150
151151 /** @test */
0 commit comments