- array_map: documentation ( source)
- get_defined_functions: documentation ( source)
- implode: documentation ( source)
<?php
echo '<?php
use function \PHPStan\dumpType;
/** @var list<mixed> */
$args = [];
';
echo implode("\n", array_map(function (string $fn) {
return 'dumpType(\'' . $fn . '\'); dumpType(' . $fn . '(...$args));';
}, get_defined_functions()['internal']));
This script was stopped while abusing our resources