Your project must not contain invalid function or method calls 4

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

in src/Container.php, line 88
  1. if (\is_object($entry) && ! \is_callable($entry)) {
  2. return $entry;
  3. }
  4. return $this->handledEntries[$id] = $this->resolver->handle($entry);
    Parameter #1 $callable of method Projek\Container\Resolver::handle() expects array{string, string}|object|string, mixed given.
    Last edited by Fery Wardiyanto
  5. }
  6. /**
  7. * Determine whether the **entry** is registered.
  8. *
in src/Container.php, line 186
  1. \gettype($args)
  2. ));
  3. }
  4. $instance = $this->resolver->resolve(
  5. \is_string($instance) && isset($this->factories[$instance])
    Parameter #1 $entry of method Projek\Container\Resolver::resolve() expects array{string, string}|Closure|string, array{string, string}|Closure|string|(T of array{string, string}|object|string) given.
    Last edited by Fery Wardiyanto
  6. ? $this->factories[$instance]
  7. : $instance,
  8. $args
  9. );
in src/Container.php, line 196
  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 array{string, string}|object|string, (callable(): mixed)|object|(T of array{string, string}|object|non-falsy-string) given.
    Last edited by Fery Wardiyanto
  5. }
  6. /**
  7. * Extending an entry.
  8. *
  1. }
  2. try {
  3. $params[] = $this->resolveArgs($ref, $args);
  4. return $ref->invokeArgs(...$params);
    Method ReflectionFunction::invokeArgs() invoked with 3 parameters, 1-2 required.
    Last edited by Fery Wardiyanto
  5. } catch (Exception $err) {
  6. throw new Exception($caller . '(): ' . $err->getMessage(), $err->getPrevious());
  7. }
  8. }

Your project should not use invalid return types 2

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

in src/Container.php, line 196
  1. if ($condition) {
  2. $instance = $condition($instance) ?: $instance;
  3. }
  4. return $this->resolver->handle($instance, $args);
    Method Projek\Container::make() should return object but returns mixed.
    Last edited by Fery Wardiyanto
  5. }
  6. /**
  7. * Extending an entry.
  8. *
  1. $args[$position] = $param->getDefaultValue();
  2. }
  3. }
  4. return $args;
    Method Projek\Container\Resolver::resolveArgs() should return TArgs of array<int, mixed> but returns array<int, mixed>.
    Last edited by Fery Wardiyanto
  5. }
  6. }