Your project must not contain invalid function or method calls 2

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

  1. );
  2. }
  3. try {
  4. $args = ($constructor = $ref->getConstructor())
  5. ? $this->resolveArgs($constructor, $ref->hasMethod('__invoke') ? [] : $args)
    Parameter #2 $args of method Projek\Container\Resolver<TCallable of Closure|list<object|string>|string,TArgs of array<int, mixed>>::resolveArgs() expects TArgs of array<int, mixed>, array<int, mixed> given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  6. : [];
  7. return $ref->newInstanceArgs($args);
  8. } catch (Exception $err) {
  9. throw new Exception($className . '::__construct(): ' . $err->getMessage(), $err->getPrevious());
  1. public function resolve($entry, array $args = [])
  2. {
  3. if (\is_string($entry) && ! \function_exists($entry)) {
  4. $entry = \str_contains($entry, '::')
  5. ? \explode('::', $entry)
  6. : $this->createInstance($entry, $args);
    Parameter #2 $args of method Projek\Container\Resolver<TCallable of Closure|list<object|string>|string,TArgs of array<int, mixed>>::createInstance() expects TArgs of array<int, mixed>, list<mixed> given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  7. }
  8. if (\is_array($entry) && \is_string($entry[0])) {
  9. $entry[0] = $this->resolve($entry[0], $args);
  10. }