@@ -118,10 +118,10 @@ bindTo(new Cls, null):
118
118
Success!
119
119
120
120
bindTo(new Cls, Cls::class):
121
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
121
+ Cannot rebind scope of closure created from function
122
122
123
123
bindTo(null, Cls::class):
124
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
124
+ Cannot rebind scope of closure created from function
125
125
126
126
bindTo(null, stdClass::class):
127
127
Cannot bind closure to scope of internal class stdClass
@@ -139,10 +139,10 @@ bindTo(new Cls, null):
139
139
Success!
140
140
141
141
bindTo(new Cls, Cls::class):
142
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
142
+ Cannot rebind scope of closure created from function
143
143
144
144
bindTo(null, Cls::class):
145
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
145
+ Cannot rebind scope of closure created from function
146
146
147
147
bindTo(null, stdClass::class):
148
148
Cannot bind closure to scope of internal class stdClass
@@ -163,13 +163,13 @@ bindTo(new Cls, Cls::class):
163
163
Cannot bind an instance to a static closure
164
164
165
165
bindTo(null, null):
166
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
166
+ Cannot rebind scope of closure created from method
167
167
168
168
bindTo(null, ClsChild::class):
169
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
169
+ Cannot rebind scope of closure created from method
170
170
171
171
bindTo(null, ClsUnrelated::class):
172
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
172
+ Cannot rebind scope of closure created from method
173
173
174
174
(new Cls)->method()
175
175
-------------------
@@ -189,13 +189,13 @@ bindTo(new ClsUnrelated, Cls::class):
189
189
Cannot bind method Cls::method() to object of class ClsUnrelated
190
190
191
191
bindTo(new Cls, null):
192
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
192
+ Cannot rebind scope of closure created from method
193
193
194
194
bindTo(new Cls, ClsUnrelated::class):
195
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
195
+ Cannot rebind scope of closure created from method
196
196
197
197
bindTo(new Cls, ClsChild::class):
198
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
198
+ Cannot rebind scope of closure created from method
199
199
200
200
(new SplDoublyLinkedList)->count()
201
201
----------------------------------
@@ -216,10 +216,10 @@ bindTo(null, SplDoublyLinkedList::class):
216
216
Cannot unbind $this of internal method
217
217
218
218
bindTo(new SplDoublyLinkedList, null):
219
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
219
+ Cannot rebind scope of closure created from method
220
220
221
221
bindTo(new SplDoublyLinkedList, ClsUnrelated::class):
222
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
222
+ Cannot rebind scope of closure created from method
223
223
224
224
(function() {})()
225
225
-----------------
0 commit comments