Your project must not contain invalid function or method calls 3
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_call
- }
- public function offsetUnset(mixed $id): void
- {
- throw new Exception(
- \sprintf('Removing registered entry "%s" is not supported.', $id)
- );
- }
- }
- public function offsetGet(mixed $id): mixed
- {
- $entry = $this->entries[$id];
- if ($entry instanceof ContainerAware && null === $entry->getContainer()) {
- $entry->setContainer($this[ContainerInterface::class]);
- }
- return $entry;
- }
- if (\is_object($entry) && ! \is_callable($entry)) {
- return $entry;
- }
- return $this->handledEntries[$id] = $this->resolver->handle($entry);
- }
- /**
- * Determine whether the **entry** is registered.
- *
Your project should not use invalid parameter and return typehints
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_typehint
- /**
- * @var array<string, object|callable>
- */
- private array $entries = [];
- public function __construct(iterable $entries = [])
- {
- foreach ($entries as $id => $entry) {
- $this->offsetSet($id, $entry);
- }
- }
Your project files should use safer permissions
- Read doc
- Security
- Major
More information: https://insight.symfony.com/what-we-analyse/php.too_permissive_file_permissions
chmod a-x 'src/Container.php'