Your project must not contain invalid instantiations

More information: https://insight.symfony.com/what-we-analyse/php.invalid_instantiation

in src/Container.php, line 433
  1. // trait, abstract class, enum): must name a pre-registered entry
  2. // (the typo catcher).
  3. \is_string($factory) => $this->has($factory)
  4. ? new AliasEntry($id, $factory)
  5. : throw InvalidArgumentException::unresolvableString($id, $factory),
  6. \is_array($factory) => new MethodPairEntry($id, $factory), // pair validation in its ctor
    Parameter #2 $factory of class Projek\Container\Entry\MethodPairEntry constructor expects array{class-string<object>|object, non-empty-string}|non-empty-string, array<mixed> given.
    Time to fix: about 1 hour
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  7. // Plain objects only; invokables matched the arm above.
  8. // (\is_object, not `instanceof object` — the latter always
  9. // evaluates false: `object` is parsed as a class name.)
  10. \is_object($factory) => throw InvalidArgumentException::plainObjectNotAFactory($id, $factory),
  11. // Invalid factory of type %s.