Update dependency phpstan/phpstan to v2 #1596
Annotations
10 errors
Run vendor/bin/phpstan analyse --no-progress:
src/Delimiter/Delimiter.php#L51
@readonly property cannot have a default value.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Environment/Environment.php#L367
Call to function assert() with true will always evaluate to true.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Environment/Environment.php#L367
Instanceof between League\CommonMark\Event\ListenerData and League\CommonMark\Event\ListenerData will always evaluate to true.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/Autolink/UrlAutolinkParser.php#L59
@readonly property cannot have a default value.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/Autolink/UrlAutolinkParser.php#L148
Possibly impure call to function preg_match_all() in pure method League\CommonMark\Extension\Autolink\UrlAutolinkParser::diffParens().
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/CommonMark/Delimiter/Processor/EmphasisDelimiterProcessor.php#L36
Class League\CommonMark\Extension\CommonMark\Delimiter\Processor\EmphasisDelimiterProcessor has an uninitialized @readonly property $config. Assign it in the constructor.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/CommonMark/Parser/Block/FencedCodeParser.php#L43
Method League\CommonMark\Extension\CommonMark\Parser\Block\FencedCodeParser::tryContinue() never returns null so it can be removed from the return type.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/CommonMark/Parser/Block/ListBlockParser.php#L50
Method League\CommonMark\Extension\CommonMark\Parser\Block\ListBlockParser::tryContinue() never returns null so it can be removed from the return type.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/CommonMark/Parser/Inline/CloseBracketParser.php#L39
Class League\CommonMark\Extension\CommonMark\Parser\Inline\CloseBracketParser has an uninitialized @readonly property $environment. Assign it in the constructor.
|
Run vendor/bin/phpstan analyse --no-progress:
src/Extension/CommonMark/Renderer/Block/HtmlBlockRenderer.php#L31
Class League\CommonMark\Extension\CommonMark\Renderer\Block\HtmlBlockRenderer has an uninitialized @readonly property $config. Assign it in the constructor.
|
Loading