From 660857a80f52d3801615f06bdf7c4cc050a40ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Tue, 20 Feb 2018 22:12:16 +0000 Subject: [PATCH] Fix prefixing classes used in try/catch blocks --- specs/catch.php | 156 +++++++++++++++++++++++++++ src/NodeVisitor/NameStmtPrefixer.php | 2 + 2 files changed, 158 insertions(+) create mode 100644 specs/catch.php diff --git a/specs/catch.php b/specs/catch.php new file mode 100644 index 00000000..80a5d937 --- /dev/null +++ b/specs/catch.php @@ -0,0 +1,156 @@ +, + * 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' => 'Miscellaneous', + // Default values. If not specified will be the one used + 'prefix' => 'Humbug', + 'whitelist' => [], + ], + + 'Catch an internal class' => <<<'PHP' + <<<'PHP' + <<<'PHP' + <<<'PHP' + <<<'PHP' + <<<'PHP' +