Your project must not contain invalid function or method calls 2
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_call
- default => false,
- });
- if ($shape) {
- return $this->injectContainer(
- $this->getHandler()->handle($instance, $args)
- );
- }
- // Thrown from inside the boundary: the InvalidArgumentException
- // passes it untouched — the boundary never wraps a user-facing InvalidArgumentException.
- if ($name === 'self' || $name === 'static') {
- return $scope?->getName() ?? $name;
- }
- if ($name === 'parent') {
- return $scope?->getParentClass()?->getName() ?? $name;
- }
- return $name;
- };