@@ -118,10 +118,10 @@ bindTo(new Cls, null):
118118Success!
119119
120120bindTo(new Cls, Cls::class):
121- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
121+ Cannot rebind scope of closure created from function
122122
123123bindTo(null, Cls::class):
124- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
124+ Cannot rebind scope of closure created from function
125125
126126bindTo(null, stdClass::class):
127127Cannot bind closure to scope of internal class stdClass
@@ -139,10 +139,10 @@ bindTo(new Cls, null):
139139Success!
140140
141141bindTo(new Cls, Cls::class):
142- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
142+ Cannot rebind scope of closure created from function
143143
144144bindTo(null, Cls::class):
145- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
145+ Cannot rebind scope of closure created from function
146146
147147bindTo(null, stdClass::class):
148148Cannot bind closure to scope of internal class stdClass
@@ -163,13 +163,13 @@ bindTo(new Cls, Cls::class):
163163Cannot bind an instance to a static closure
164164
165165bindTo(null, null):
166- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
166+ Cannot rebind scope of closure created from method
167167
168168bindTo(null, ClsChild::class):
169- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
169+ Cannot rebind scope of closure created from method
170170
171171bindTo(null, ClsUnrelated::class):
172- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
172+ Cannot rebind scope of closure created from method
173173
174174(new Cls)->method()
175175-------------------
@@ -189,13 +189,13 @@ bindTo(new ClsUnrelated, Cls::class):
189189Cannot bind method Cls::method() to object of class ClsUnrelated
190190
191191bindTo(new Cls, null):
192- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
192+ Cannot rebind scope of closure created from method
193193
194194bindTo(new Cls, ClsUnrelated::class):
195- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
195+ Cannot rebind scope of closure created from method
196196
197197bindTo(new Cls, ClsChild::class):
198- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
198+ Cannot rebind scope of closure created from method
199199
200200(new SplDoublyLinkedList)->count()
201201----------------------------------
@@ -216,10 +216,10 @@ bindTo(null, SplDoublyLinkedList::class):
216216Cannot unbind $this of internal method
217217
218218bindTo(new SplDoublyLinkedList, null):
219- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
219+ Cannot rebind scope of closure created from method
220220
221221bindTo(new SplDoublyLinkedList, ClsUnrelated::class):
222- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
222+ Cannot rebind scope of closure created from method
223223
224224(function() {})()
225225-----------------
0 commit comments