Skip to content

CommonMark spec 0.31 compatibility #1518

CommonMark spec 0.31 compatibility

CommonMark spec 0.31 compatibility #1518

Triggered via pull request February 2, 2024 16:52
Status Failure
Total duration 3m 10s
Artifacts

tests.yml

on: pull_request
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

15 errors
PHPStan: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L62
Parameter #1 $block of static method League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::endsWithBlankLine() expects League\CommonMark\Node\Block\AbstractBlock, League\CommonMark\Node\Node given.
PHPStan: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L70
Parameter #1 $block of static method League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::endsWithBlankLine() expects League\CommonMark\Node\Block\AbstractBlock, League\CommonMark\Node\Node given.
PHPStan: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L81
Cannot call method getEndLine() on League\CommonMark\Node\Node|null.
PHPStan: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L86
Call to an undefined method League\CommonMark\Node\Node::getStartLine().
PHPStan: src/Extension/CommonMark/Parser/Block/ListItemParser.php#L76
Call to an undefined method League\CommonMark\Node\Node::getEndLine().
PHPStan
Process completed with exit code 1.
ArgumentTypeCoercion: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L62
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:62:67: ArgumentTypeCoercion: Argument 1 of League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::endsWithBlankLine expects League\CommonMark\Node\Block\AbstractBlock, but parent type League\CommonMark\Node\Node provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L70
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:70:65: ArgumentTypeCoercion: Argument 1 of League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::endsWithBlankLine expects League\CommonMark\Node\Block\AbstractBlock, but parent type League\CommonMark\Node\Node provided (see https://psalm.dev/193)
PossiblyNullReference: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L81
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:81:61: PossiblyNullReference: Cannot call method getEndLine on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L81
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:81:61: UndefinedMethod: Method League\CommonMark\Node\Node::getEndLine does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L86
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:86:84: PossiblyNullReference: Cannot call method getStartLine on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L86
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:86:84: UndefinedMethod: Method League\CommonMark\Node\Node::getStartLine does not exist (see https://psalm.dev/022)
PossiblyNullReference: src/Extension/CommonMark/Parser/Block/ListItemParser.php#L76
src/Extension/CommonMark/Parser/Block/ListItemParser.php:76:65: PossiblyNullReference: Cannot call method getEndLine on possibly null value (see https://psalm.dev/083)
UndefinedMethod: src/Extension/CommonMark/Parser/Block/ListItemParser.php#L76
src/Extension/CommonMark/Parser/Block/ListItemParser.php:76:65: UndefinedMethod: Method League\CommonMark\Node\Node::getEndLine does not exist (see https://psalm.dev/022)
Psalm
Process completed with exit code 2.