Skip to content

CommonMark spec 0.31 compatibility #1516

CommonMark spec 0.31 compatibility

CommonMark spec 0.31 compatibility #1516

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

tests.yml

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

Annotations

19 errors
PHPUnit on 7.4 --prefer-lowest
Process completed with exit code 2.
PHPUnit on 7.4
Process completed with exit code 2.
PHPStan: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L50
Method League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::tryContinue() uses native union types but they're supported only on PHP 8.0 and later.
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.
ParseError: src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L50
src/Extension/CommonMark/Parser/Block/ListBlockParser.php:50:99: ParseError: Union types are not supported in PHP < 8 (see https://psalm.dev/173)
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.