First iteration on option attributes #3322
Annotations
10 errors
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/BaseDirective.php#L201
Match arm is unreachable because previous comparison is always true.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/BaseDirective.php#L200
Match arm comparison between phpDocumentor\Guides\RestructuredText\Directives\OptionType::Array and phpDocumentor\Guides\RestructuredText\Directives\OptionType::Array is always true.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/BaseDirective.php#L178
Parameter #1 $callback of function array_map expects (callable(phpDocumentor\Guides\RestructuredText\Directives\Attributes\Option|null): mixed)|null, Closure(phpDocumentor\Guides\RestructuredText\Directives\Attributes\Option): mixed given.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/BaseDirective.php#L173
Method phpDocumentor\Guides\RestructuredText\Directives\BaseDirective::readAllOptions() return type has no value type specified in iterable type array.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/BaseDirective.php#L45
Property phpDocumentor\Guides\RestructuredText\Directives\BaseDirective::$aliases type has no value type specified in iterable type array.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Directives/Attributes/Directive.php#L12
Method phpDocumentor\Guides\RestructuredText\Directives\Attributes\Directive::__construct() has parameter $aliases with no value type specified in iterable type array.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Compiler/Passes/DirectiveProcessPass.php#L47
Call to an undefined method phpDocumentor\Guides\Nodes\Node::getDirective().
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Compiler/Passes/DirectiveProcessPass.php#L47
Call to an undefined method phpDocumentor\Guides\Nodes\Node::getDirective().
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Compiler/Passes/DirectiveProcessPass.php#L23
Property phpDocumentor\Guides\RestructuredText\Compiler\Passes\DirectiveProcessPass::$logger is never read, only written.
|
Run phpstan/phpstan:
packages/guides-restructured-text/src/RestructuredText/Compiler/Passes/DirectiveProcessPass.php#L16
Class phpDocumentor\Guides\RestructuredText\Compiler\Passes\DirectiveProcessPass implements generic interface phpDocumentor\Guides\Compiler\NodeTransformer but does not specify its types: T
|
Loading