Your project must not contain invalid function or method calls 2

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

in src/Container.php, line 191
  1. if ($condition) {
  2. $instance = $condition($instance) ?: $instance;
  3. }
  4. return $this->resolver->handle($instance, $args);
    Parameter #1 $callable of method Projek\Container\Resolver::handle() expects callable(): mixed, (callable(): mixed)|object given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  5. }
  6. /**
  7. * Extending an entry.
  8. *
in src/Container.php, line 218
  1. );
  2. }
  3. $extended = $this->make($callback, [$entry]);
  4. if (! \is_a($extended, $class = \get_class($entry))) {
    Parameter #1 $object_or_class of function is_a expects object, mixed given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  5. throw new Container\Exception(
  6. \sprintf('Argument #2 callback must be returns of type "%s"', $class)
  7. );
  8. }

Your project must not contain invalid instantiations

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

  1. if (! $param->isOptional()) {
  2. throw new UnresolvableArgumentException(
  3. ++$position,
  4. $param->getName(),
  5. $err->getName(),
  6. $ref,
    Parameter #4 $ref of class Projek\Container\UnresolvableArgumentException constructor expects ReflectionFunction|ReflectionMethod, ReflectionFunctionAbstract given.
    Time to fix: about 1 hour
    Read doc Permalink Copy Prompt
    Last edited by Fery Wardiyanto
  7. $err
  8. );
  9. }
  10. $args[$position] = $param->getDefaultValue();