Your project must not contain invalid function or method calls

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

in src/Container.php, line 133
  1. // Recreate the factory closure against the clone; rebinding
  2. // keeps any captured value (the ctor-provided dispatcher)
  3. // while re-pointing the captured container.
  4. $this->entries[$id] = new CallableEntry(
  5. $id,
  6. Closure::bind($entry->factory, $this, self::class),
    Parameter #1 $closure of static method Closure::bind() expects Closure, callable-string|object given.
    Time to fix: about 9 minutes
    Read doc Open Issue Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  7. auto: true,
  8. );
  9. }
  10. }
  11. }

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.
    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.