Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 27, 2022
1 parent 37ec50e commit cd998db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
use PHPStan\Type\Type;
use Rector\TypeDeclaration\Contract\PriorityAwareInterface;

/**
* @deprecated These inferers are complex and work with non-reliable docblocks.
* Instead split them to specific rules that work with strict types.
*/
interface ReturnTypeInfererInterface extends PriorityAwareInterface
{
public function inferFunctionLike(FunctionLike $functionLike): Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function refactor(Node $node): ?Node
{
trigger_error(
'Use specific rules to infer params instead. This rule will was split info many small ones.',
E_WARNING
E_ERROR
);
sleep(3);

Expand Down

0 comments on commit cd998db

Please sign in to comment.