Vastly improves the logic around bound datasets to make them more user friendly.

This commit is contained in:
Luke Downing
2021-10-19 21:40:40 +01:00
parent de46ee0f64
commit eed3ed5513
4 changed files with 85 additions and 6 deletions

View File

@ -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;
}
}