, * 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' => 'Whitelisting functions which are never declared', // Default values. If not specified will be the one used 'prefix' => 'Humbug', 'whitelist' => [], 'whitelist-global-constants' => false, 'whitelist-global-classes' => false, 'whitelist-global-functions' => false, 'registered-classes' => [], 'registered-functions' => [], ], 'Non whitelisted global function call' => <<<'PHP' [ 'whitelist' => ['main'], 'registered-functions' => [ ['main', 'Humbug\main'], ], 'payload' => <<<'PHP' [ 'whitelist-global-functions' => true, 'registered-functions' => [ ['main', 'Humbug\main'], ], 'payload' => <<<'PHP' <<<'PHP' [ 'whitelist' => ['Acme\main'], 'registered-functions' => [], // Nothing registered here since the FQ could not be resolved 'payload' => <<<'PHP'