, * 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' => 'String literal used as a function argument', // 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' => [], ], 'FQCN string argument' => <<<'PHP' colorize)('fg-green', '✔'); ($this->colorize)(['Soft', 'autoload']); ($this->colorize)(['\\Soft', 'autoload']); ---- colorize)('fg-green', '✔'); ($this->colorize)(['Soft', 'autoload']); ($this->colorize)(['\\Soft', 'autoload']); PHP , 'FQCN string argument on whitelisted class' => [ 'whitelist' => ['Symfony\Component\Yaml\Yaml', 'Swift'], 'payload' => <<<'PHP' [ 'whitelist-global-functions' => false, 'payload' => <<<'PHP' colorize)('fg-green', '✔'); ($this->colorize)(['Soft', 'autoload']); ---- colorize)('fg-green', '✔'); ($this->colorize)(['Soft', 'autoload']); PHP ], 'FQCN string argument formed by concatenated strings' => <<<'PHP' <<<'PHP' [ 'whitelist' => ['Symfony\Component\Yaml\Ya_1'], 'registered-classes' => [ ['Symfony\Component\Yaml\Ya_1', 'Humbug\Symfony\Component\Yaml\Ya_1'], ], 'payload' => <<<'PHP'