You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class produces an impossible condition, which may lead to remove the empty statement.
PhanImpossibleCondition Impossible attempt to cast self::$inst of type \util\A to empty
class A{
private static self $inst;
public function __construct(){
self::$inst = $this;
}
public static function test(): bool{
return !empty(self::$inst);
}
}
var_dump(A::test());
The text was updated successfully, but these errors were encountered:
This class produces an impossible condition, which may lead to remove the empty statement.
PhanImpossibleCondition Impossible attempt to cast self::$inst of type \util\A to empty
The text was updated successfully, but these errors were encountered: