33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2025-01-30 16:58:28 +00:00

allow FQN

This commit is contained in:
Denis Ryabov 2021-10-26 15:12:02 +03:00
parent b7a6a923da
commit 03abfd62b8

View File

@ -152,7 +152,7 @@ class JedcheckerRulesJexec extends JEDcheckerRule
. '(?:declare ?\(strict_types ?= ?1 ?\) ?; ?)?' // optionally followed by declare(strict_types=1) directive
. '(?:namespace [0-9A-Za-z_\\\\]+ ?; ?)?' // optionally followed by namespace directive
. '(?:use [0-9A-Za-z_\\\\]+ ?(?:as [0-9A-Za-z_]+ ?)?; ?)*' // optionally followed by use directives
. 'defined ?\( ?' // followed by defined test
. '\\\\?defined ?\( ?' // followed by defined test
. '([\'"])(?:' . implode('|', $defines) . ')\1' // of any of given constant
. ' ?\) ?(?:or |\|\| ?)(?:die|exit)\b' // or exit
. '#i'; // (case insensitive)