mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Kernel: add inspiration
This commit is contained in:
parent
0c36660c08
commit
6c1ca0caf5
|
@ -62,10 +62,15 @@ final class DeprecationDetector extends NodeVisitorAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* This detects: "trigger_error(<some-content>, E_USER_DEPREDCATED)";
|
||||
* This detects inside call of: "trigger_error(<some-content>, E_USER_DEPREDCATED)";
|
||||
*/
|
||||
private function isTriggerErrorUserDeprecated(Node $node): bool
|
||||
private function hasTriggerErrorUserDeprecatedInside(Node $node): bool
|
||||
{
|
||||
dump($node);
|
||||
|
||||
die;
|
||||
|
||||
|
||||
if (! $this->isFunctionWithName($node, 'trigger_error')) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user