From 86885d358971e55ff3831d4bb6d50448d35d682a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 12 Nov 2022 00:03:29 +0100 Subject: [PATCH] Add constant assignment check --- specs/const/assignment.php | 99 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 specs/const/assignment.php diff --git a/specs/const/assignment.php b/specs/const/assignment.php new file mode 100644 index 000000000..d5f0495bc --- /dev/null +++ b/specs/const/assignment.php @@ -0,0 +1,99 @@ +, + * 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' => 'Constant assignment', + // Default values. If not specified will be the one used + 'prefix' => 'Humbug', + + 'expose-global-constants' => false, + 'expose-global-classes' => false, + 'expose-global-functions' => false, + 'expose-namespaces' => [], + 'expose-constants' => [], + 'expose-classes' => [], + 'expose-functions' => [], + + 'exclude-namespaces' => [], + 'exclude-constants' => [], + 'exclude-classes' => [], + 'exclude-functions' => [], + + 'expected-recorded-classes' => [], + 'expected-recorded-functions' => [], + ], + + 'Constant assignment in the global namespace' => <<<'PHP' + <<<'PHP' +