Skip to content
Permalink
Browse files

fix #2010 - properties with defaults should work with static type

  • Loading branch information...
muglug committed Aug 12, 2019
1 parent 6245176 commit 4046b449037ca24757e3f303a8e3f0a0478f5c4f
@@ -101,7 +101,7 @@ public static function analyzeInstance(
$codebase,
$class_property_type,
$context->self,
null,
$context->self,
$class_storage->parent_class
);
}
@@ -1693,6 +1693,16 @@ public function __construct() {
echo (new B)->bar;'
],
'staticPropertyDefaultWithStaticType' => [
'<?php
class Test {
/** @var array<int, static> */
private static $t1 = [];
/** @var array<int, static> */
private $t2 = [];
}'
]
];
}

0 comments on commit 4046b44

Please sign in to comment.
You can’t perform that action at this time.