, * 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' => 'Static method call statement of a namespaced class in the global scope', // Default values. If not specified will be the one used 'prefix' => 'Humbug', 'whitelist' => [], 'whitelist-global-constants' => true, 'whitelist-global-classes' => false, 'whitelist-global-functions' => true, 'registered-classes' => [], 'registered-functions' => [], ], 'Static method call statement of a namespaced class' => <<<'PHP' <<<'PHP' namespace Foo { class Bar {} } namespace { \Foo\Bar::main(); } ---- namespace Foo { class Bar {} } namespace { \Foo\Bar::main(); } PHP , 'Static method call statement of a namespaced class which has been whitelisted' => [ 'whitelist' => ['Foo\Bar'], 'registered-classes' => [ ['Foo\Bar', 'Humbug\Foo\Bar'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['Foo\Bar'], 'registered-classes' => [ ['Foo\Bar', 'Humbug\Foo\Bar'], ], 'payload' => <<<'PHP'