_frameworkProperty; }; /** * @phan-closure-scope BoundClass264 */ $x = function() : string { BoundClass264::a_static_method(); self::a_static_method(); return $this->b . $this->c; }; /** * @phan-closure-scope \NS264\BoundClass264 */ $y = function() : string { BoundClass264::a_static_method(); self::a_static_method(); return $this->b . $this->d; }; /** * BoundClass264 scope of a native type(string, array, object, bool, etc.) makes no sense. Phan should warn. * @phan-closure-scope string */ $z = function() : string { return $this->b . $this->d; }; $prefix = 'NotExplicitlyUsed'; $suffix = 'Suf'; /** * BoundClass264 scope of a native type(string, array, object, bool, etc.) makes no sense. Phan should warn. * @phan-closure-scope BoundClass264 */ $a = function() use($suffix) : string { $str = $prefix; $str .= $this->b; $str .= $suffix; return $str; }; /** * @phan-closure-scope UndeclaredClass264 */ $b = function() use($suffix) : string { $str = $this->b; $str .= $suffix; return $str; }; } } /** * @phan-closure-scope BoundClass264 */ $global264 = function() : string { return $this->b . $this->undefVar; };