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
- protected function getPhpExtends(): string
- {
- $extends = $this->getExtends();
- return empty($extends) ? '' : sprintf(' %s %s', static::PHP_EXTENDS_KEYWORD, ($extends instanceof PhpClass ? $extends->getName() : $extends));
- }
- protected function getPhpInterfaces(): string
- {
- $interfaces = [];
- if (!$this->childIsValid($child)) {
- parent::addChild($child);
- return $this;
- }
- $this->children[] = $this->transformAnnotation($child);
- return $this;
- }
- public function getPhpDeclaration(): string
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
- final public function getCalledClass(): string
- {
- return substr(get_called_class(), strrpos(get_called_class(), '\\') + 1);
- }
- protected function getChildContent($child, int $indentation = null): string
- {
- $content = '';
- if (is_string($child)) {
- $content = $this->getIndentedString($child, $indentation);
- } elseif ($child instanceof AbstractElement) {