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:
parent
b7a6a923da
commit
03abfd62b8
@ -152,7 +152,7 @@ class JedcheckerRulesJexec extends JEDcheckerRule
|
|||||||
. '(?:declare ?\(strict_types ?= ?1 ?\) ?; ?)?' // optionally followed by declare(strict_types=1) directive
|
. '(?:declare ?\(strict_types ?= ?1 ?\) ?; ?)?' // optionally followed by declare(strict_types=1) directive
|
||||||
. '(?:namespace [0-9A-Za-z_\\\\]+ ?; ?)?' // optionally followed by namespace 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
|
. '(?: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
|
. '([\'"])(?:' . implode('|', $defines) . ')\1' // of any of given constant
|
||||||
. ' ?\) ?(?:or |\|\| ?)(?:die|exit)\b' // or exit
|
. ' ?\) ?(?:or |\|\| ?)(?:die|exit)\b' // or exit
|
||||||
. '#i'; // (case insensitive)
|
. '#i'; // (case insensitive)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user