Update dependency phpstan/phpstan to v2 #1596
Annotations
10 errors
PHPStan:
src/Delimiter/Delimiter.php#L51
@readonly property cannot have a default value.
|
PHPStan:
src/Environment/Environment.php#L367
Call to function assert() with true will always evaluate to true.
|
PHPStan:
src/Environment/Environment.php#L367
Instanceof between League\CommonMark\Event\ListenerData and League\CommonMark\Event\ListenerData will always evaluate to true.
|
PHPStan:
src/Extension/Autolink/UrlAutolinkParser.php#L59
@readonly property cannot have a default value.
|
PHPStan:
src/Extension/Autolink/UrlAutolinkParser.php#L148
Possibly impure call to function preg_match_all() in pure method League\CommonMark\Extension\Autolink\UrlAutolinkParser::diffParens().
|
PHPStan:
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.
|
PHPStan:
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.
|
PHPStan:
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.
|
PHPStan:
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.
|
PHPStan:
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.
|