mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
style: formatting & linting
This commit is contained in:
@ -10,7 +10,7 @@ use NunoMaduro\Collision\Contracts\RenderlessTrace;
|
|||||||
use Symfony\Component\Console\Exception\ExceptionInterface;
|
use Symfony\Component\Console\Exception\ExceptionInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of dataset is not present for test that has arguments
|
* Creates a new instance of dataset is not present for test that has arguments.
|
||||||
*
|
*
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -162,7 +162,7 @@ final class Reflection
|
|||||||
public static function getFunctionArguments(Closure $function): array
|
public static function getFunctionArguments(Closure $function): array
|
||||||
{
|
{
|
||||||
$parameters = (new ReflectionFunction($function))->getParameters();
|
$parameters = (new ReflectionFunction($function))->getParameters();
|
||||||
$arguments = [];
|
$arguments = [];
|
||||||
|
|
||||||
foreach ($parameters as $parameter) {
|
foreach ($parameters as $parameter) {
|
||||||
$arguments[$parameter->getName()] = ($parameter->hasType()) ? $parameter->getType() : 'mixed';
|
$arguments[$parameter->getName()] = ($parameter->hasType()) ? $parameter->getType() : 'mixed';
|
||||||
|
|||||||
Reference in New Issue
Block a user