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, object|string 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 315
  1. // without them the closing `});` line can never be marked covered.
  2. $this->entries[$id] = (match (true) {
  3. // Invokable shapes first — the is_object guard is load-bearing: a class-string naming
  4. // an invokable class must fall through to the ClassName arm (build, never invoke).
  5. FactoryEntry::isValid($factory) => new FactoryEntry($id, $factory),
  6. CallableEntry::isValid($factory) => new CallableEntry($id, $factory),
    Parameter #2 $factory of class Projek\Container\Entry\CallableEntry constructor expects object|string, callable given.
    Last edited by Fery Wardiyanto
  7. ClassNameEntry::isValid($factory) => new ClassNameEntry($id, $factory),
  8. MethodPairEntry::isValid($factory) => new MethodPairEntry($id, $factory),
  9. // any other string — incl. non-buildable type symbols (interface, trait, abstract
  10. // class, enum): must name a pre-registered entry (the typo catcher).
  11. \is_string($factory) => $this->has($factory)