Kernel: add inspiration

This commit is contained in:
TomasVotruba 2017-09-08 01:42:26 +02:00
parent 0c36660c08
commit 6c1ca0caf5

View File

@ -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;
}