From 38b71552cf0886952d4f8a9da9acc56af8f06504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 9 Jun 2018 14:17:49 +0100 Subject: [PATCH] Ensure string literals in define statements are properly prefixed (#221) --- specs/string-literal/define.php | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 specs/string-literal/define.php diff --git a/specs/string-literal/define.php b/specs/string-literal/define.php new file mode 100644 index 00000000..3671c742 --- /dev/null +++ b/specs/string-literal/define.php @@ -0,0 +1,44 @@ +, + * Pádraic Brady + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +return [ + 'meta' => [ + 'title' => 'String literal assigned as a constant declared with `define()`', + // Default values. If not specified will be the one used + 'prefix' => 'Humbug', + 'whitelist' => [], + 'whitelist-global-constants' => true, + ], + + 'FQCN string argument: transform into a FQCN and prefix it' => <<<'PHP' +