Your project must not contain invalid function or method calls 2

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

  1. protected function getPhpExtends(): string
  2. {
  3. $extends = $this->getExtends();
  4. return empty($extends) ? '' : sprintf(' %s %s', static::PHP_EXTENDS_KEYWORD, ($extends instanceof PhpClass ? $extends->getName() : $extends));
    Parameter #2 ...$values of function sprintf expects bool|float|int|string|null, mixed given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Mikaël DELSOL
  5. }
  6. protected function getPhpInterfaces(): string
  7. {
  8. $interfaces = [];
  1. if (!$this->childIsValid($child)) {
  2. parent::addChild($child);
  3. return $this;
  4. }
  5. $this->children[] = $this->transformAnnotation($child);
    Parameter #1 $annotation of method WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock::transformAnnotation() expects array|string|WsdlToPhp\PhpGenerator\Element\PhpAnnotation, mixed given.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Mikaël DELSOL
  6. return $this;
  7. }
  8. public function getPhpDeclaration(): string

Your project should not use invalid parameter and return typehints

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

  1. final public function getCalledClass(): string
  2. {
  3. return substr(get_called_class(), strrpos(get_called_class(), '\\') + 1);
  4. }
  5. protected function getChildContent($child, int $indentation = null): string
    Method WsdlToPhp\PhpGenerator\Element\AbstractElement::getChildContent() has parameter $child with no type specified.
    Time to fix: about 9 minutes
    Read doc Permalink Copy Prompt
    Last edited by Mikaël DELSOL
  6. {
  7. $content = '';
  8. if (is_string($child)) {
  9. $content = $this->getIndentedString($child, $indentation);
  10. } elseif ($child instanceof AbstractElement) {