File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/Psalm/Internal/PhpVisitor/Reflector Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -641,6 +641,9 @@ public function start(PhpParser\Node\Stmt\ClassLike $node): ?bool
641
641
if (!isset ($ storage ->overridden_method_ids [$ lc_method_name ])) {
642
642
$ storage ->overridden_method_ids [$ lc_method_name ] = [];
643
643
}
644
+ if (!isset ($ storage ->declaring_method_ids [$ lc_method_name ])) {
645
+ $ storage ->declaring_method_ids [$ lc_method_name ] = $ method_identifier ;
646
+ }
644
647
$ storage ->declaring_pseudo_method_ids [$ lc_method_name ] = $ method_identifier ;
645
648
}
646
649
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ private static function privateStaticMethod() {}
126
126
'magicObjProp2 ' ,
127
127
128
128
'magicObjMethod ' ,
129
+ 'magicStaticMethod ' ,
129
130
130
131
'publicObjProp ' ,
131
132
'protectedObjProp ' ,
@@ -201,6 +202,8 @@ private static function privateStaticMethod() {}
201
202
202
203
'magicObjMethod ' ,
203
204
205
+ 'magicStaticMethod ' ,
206
+
204
207
'publicObjProp ' ,
205
208
'protectedObjProp ' ,
206
209
'privateObjProp ' ,
@@ -281,6 +284,7 @@ class A {
281
284
'magicObjProp2 ' ,
282
285
283
286
'magicObjMethod ' ,
287
+ 'magicStaticMethod ' ,
284
288
285
289
'publicObjProp ' ,
286
290
'protectedObjProp ' ,
@@ -361,6 +365,7 @@ abstract class A {
361
365
'magicObjProp2 ' ,
362
366
363
367
'magicObjMethod ' ,
368
+ 'magicStaticMethod ' ,
364
369
365
370
'publicObjProp ' ,
366
371
'protectedObjProp ' ,
@@ -543,6 +548,7 @@ class A {
543
548
'magicObjProp1 ' ,
544
549
'magicObjProp2 ' ,
545
550
'magicObjMethod ' ,
551
+ 'magicStaticMethod ' ,
546
552
547
553
'publicObjProp ' ,
548
554
You can’t perform that action at this time.
0 commit comments