Your project should not use invalid return types

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

  1. {
  2. public const MAX_DEEP = 5;
  3. public function getDomDocumentHandler(): AbstractDocument
  4. {
  5. return parent::getDomDocumentHandler();

    Method WsdlToPhp\WsdlHandler\Tag\AbstractTag::getDomDocumentHandler() should return WsdlToPhp\WsdlHandler\AbstractDocument but returns WsdlToPhp\DomHandler\AbstractDomDocumentHandler.

    Time to fix: about 9 minutes
    Read doc Open Issue Permalink
    Last edited by Mikaël DELSOL
  6. }
  7. /**
  8. * This method aims to get the parent element that matches a valid Wsdl element (aka struct).
  9. *

Your project should use return types

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

in src/Wsdl.php, line 94
  1. }
  2. return $result;
  3. }
  4. protected function useExternalSchemas(string $method, array $parameters, ?array $parentResult, bool $returnOne = false)

    Method WsdlToPhp\WsdlHandler\Wsdl::useExternalSchemas() has no return type specified.

    Time to fix: about 9 minutes
    Read doc Open Issue Permalink
    Last edited by Mikaël DELSOL
  5. {
  6. $result = $parentResult;
  7. foreach ($this->getExternalSchemas() as $externalSchema) {
  8. $externalResult = call_user_func_array([