Your project must not contain invalid function or method calls

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

  1. // Otherwise convert it to closure.
  2. $callable = Closure::fromCallable($callable);
  3. }
  4. try {
  5. $ref = $this->createCallableReflection($callable);
    Parameter #1 $callable of method Projek\Container\Resolver::createCallableReflection() expects array{string, string}|(callable(): mixed)|string, array{object|string, string}|(callable(): mixed)|string given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  6. if ($ref instanceof ReflectionFunction) {
  7. return $ref->invokeArgs(
  8. $this->resolveArgs($ref, $args)
  9. );

Your project must not contain invalid instantiations

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

  1. }
  2. // Pass non-array $callable directly to `ReflectionFunction` that possibly
  3. // a callable object including a `Closure`, or a string of function name
  4. if (! \is_array($callable)) {
  5. return new ReflectionFunction($callable);
    Parameter #1 $function of class ReflectionFunction constructor expects Closure|string, (callable(): mixed)|string given.
    Time to fix: about 1 hour
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  6. }
  7. /** @var array{object|string,string} $callable */
  8. $ref = new ReflectionMethod($callable[0], $callable[1]);