mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Vastly improves the logic around bound datasets to make them more user friendly.
This commit is contained in:
@ -204,4 +204,12 @@ final class Reflection
|
||||
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getFunctionVariable(Closure $function, string $key)
|
||||
{
|
||||
return (new ReflectionFunction($function))->getStaticVariables()[$key] ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user