, * 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' => 'Function declarations in a namespace', // 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' => [], ], 'Simple function declaration' => <<<'PHP' [ 'whitelist' => ['Acme\foo'], 'registered-functions' => [ ['Acme\foo', 'Humbug\Acme\foo'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['X\Y'], 'registered-classes' => [ ['X\Y', 'Humbug\X\Y'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['X\Y'], 'registered-classes' => [ ['X\Y', 'Humbug\X\Y'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['X\Y'], 'registered-classes' => [ ['X\Y', 'Humbug\X\Y'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['Pi\*'], 'payload' => <<<'PHP' [ 'whitelist' => ['X\Y'], 'registered-classes' => [ ['X\Y', 'Humbug\X\Y'], ], 'payload' => <<<'PHP'