Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 28, 2022
1 parent 5eff14f commit ab670b4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

/**
* @deprecated Use specific rules working with strict type declarations instead.
*/
final class AddArrayParamDocTypeRector extends AbstractRector
{
public function getRuleDefinition(): RuleDefinition
Expand Down Expand Up @@ -69,7 +72,8 @@ public function getNodeTypes(): array
public function refactor(Node $node): ?Node
{
trigger_error(
'The AddArrayParamDocTypeRector rule is deprecated, as it works with doc block types that are not reliable and might infer incorrect types'
'The AddArrayParamDocTypeRector rule is deprecated, as it works with doc block types that are not reliable and might infer incorrect types',
E_ERROR
);
sleep(3);

Expand Down

0 comments on commit ab670b4

Please sign in to comment.