@@ -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-------------------
@@ -187,13 +187,13 @@ bindTo(new ClsUnrelated, Cls::class):
187187Cannot bind method Cls::method() to object of class ClsUnrelated
188188
189189bindTo(new Cls, null):
190- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
190+ Cannot rebind scope of closure created from method
191191
192192bindTo(new Cls, ClsUnrelated::class):
193- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
193+ Cannot rebind scope of closure created from method
194194
195195bindTo(new Cls, ClsChild::class):
196- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
196+ Cannot rebind scope of closure created from method
197197
198198(new SplDoublyLinkedList)->count()
199199----------------------------------
@@ -214,10 +214,10 @@ bindTo(null, SplDoublyLinkedList::class):
214214Cannot unbind $this of method
215215
216216bindTo(new SplDoublyLinkedList, null):
217- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
217+ Cannot rebind scope of closure created from method
218218
219219bindTo(new SplDoublyLinkedList, ClsUnrelated::class):
220- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
220+ Cannot rebind scope of closure created from method
221221
222222(function() {})()
223223-----------------
0 commit comments