Increase PHPStan level 5 → 9 #251
Annotations
11 errors and 1 warning
PHPStan:
app/Drupal/external_content/src/Converter/ConverterManager.php#L30
Method Drupal\external_content\Converter\ConverterManager::convert() should return Drupal\external_content\Source\Html but returns Drupal\external_content\Source\Html|null.
|
PHPStan:
app/Drupal/external_content/src/Finder/FileFinder.php#L72
Parameter $type of class Drupal\external_content\Source\File constructor expects string, string|null given.
|
PHPStan:
app/Drupal/external_content/src/Finder/FinderManager.php#L33
Parameter #1 $collection of method Drupal\external_content\Data\SourceCollection::merge() expects Drupal\external_content\Data\SourceCollection, Drupal\external_content\Data\SourceCollection|null given.
|
PHPStan:
app/Drupal/external_content/src/Identifier/IdentifierManager.php#L68
Parameter #1 $source of method Drupal\external_content\Data\IdentifiedSourceCollection::add() expects Drupal\external_content\Data\IdentifiedSource, Drupal\external_content\Data\IdentifiedSource|null given.
|
PHPStan:
app/Drupal/external_content/src/Node/Content.php#L25
Method Drupal\external_content\Node\Content::getData() should return Drupal\external_content\Data\Data but returns Drupal\external_content\Data\Data|null.
|
PHPStan:
app/Drupal/external_content/src/Node/Element.php#L40
Method Drupal\external_content\Node\Element::getAttributes() should return Drupal\external_content\Data\Attributes but returns Drupal\external_content\Data\Attributes|null.
|
PHPStan:
app/Drupal/external_content/src/Node/Node.php#L68
Cannot call method hasParent() on Drupal\external_content\Contract\Node\NodeInterface|null.
|
PHPStan:
app/Drupal/external_content/src/Node/Node.php#L69
Cannot call method getParent() on Drupal\external_content\Contract\Node\NodeInterface|null.
|
PHPStan:
app/Drupal/external_content/src/Node/Node.php#L72
Method Drupal\external_content\Node\Node::getRoot() should return Drupal\external_content\Contract\Node\NodeInterface but returns Drupal\external_content\Contract\Node\NodeInterface|null.
|
PHPStan:
app/Drupal/external_content/src/Parser/ChildHtmlParser.php#L39
Parameter #1 $node of method Drupal\external_content\Node\Node::addChild() expects Drupal\external_content\Contract\Node\NodeInterface, Drupal\external_content\Contract\Node\NodeInterface|null given.
|
PHPCS
Process completed with exit code 201.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading