@@ -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
-------------------
@@ -187,13 +187,13 @@ bindTo(new ClsUnrelated, Cls::class):
187
187
Cannot bind method Cls::method() to object of class ClsUnrelated
188
188
189
189
bindTo(new Cls, null):
190
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
190
+ Cannot rebind scope of closure created from method
191
191
192
192
bindTo(new Cls, ClsUnrelated::class):
193
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
193
+ Cannot rebind scope of closure created from method
194
194
195
195
bindTo(new Cls, ClsChild::class):
196
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
196
+ Cannot rebind scope of closure created from method
197
197
198
198
(new SplDoublyLinkedList)->count()
199
199
----------------------------------
@@ -214,10 +214,10 @@ bindTo(null, SplDoublyLinkedList::class):
214
214
Cannot unbind $this of method
215
215
216
216
bindTo(new SplDoublyLinkedList, null):
217
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
217
+ Cannot rebind scope of closure created from method
218
218
219
219
bindTo(new SplDoublyLinkedList, ClsUnrelated::class):
220
- Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()
220
+ Cannot rebind scope of closure created from method
221
221
222
222
(function() {})()
223
223
-----------------
0 commit comments