/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:6 PhanUndeclaredClassMethod Call to method __construct from undeclared class \my_class (Did you mean class \MyClass)
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:10 PhanTypeMismatchArgumentInternalReal Argument 1 ($object) is $cond of type bool but \SplObjectStorage::attach() takes object
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:11 PhanUndeclaredMethod Call to undeclared method \SplObjectStorage::atach (Did you mean expr->attach())
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:12 PhanParamTooManyInternal Call with 3 arg(s) to \SplObjectStorage::attach(object $object, $info = null) which only takes 2 arg(s). This is an ArgumentCountError for internal functions in PHP 8.0+.
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:13 PhanTypeMismatchArgument Argument 1 ($x) is $argc of type int but \MyClass::__construct() takes ?string defined at /workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:25
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:20 PhanTypeSuspiciousStringExpression Suspicious type null= of a variable or expression $argv used to build a string. (Expected type to be able to cast to a string)
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:20 PhanUndeclaredVariable Variable $argv is undeclared (Did you mean $arg or $argc or (global $argv))
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:21 PhanTypeMismatchReturnReal Returning $arg of type \SplObjectStorage but demo() is declared to return ?int
/workspace/a1468c23-6335-4664-a765-ad1d9c2768f3/upload/extracted/sources/bad-code.php:27 PhanUndeclaredProperty Reference to undeclared property \MyClass->x
