Commit 8b2f3e84 authored by Taylor Otwell's avatar Taylor Otwell

added has_php helper.

parent 3dab5506
......@@ -373,4 +373,15 @@ function value($value)
function with($object)
{
return $object;
}
/**
* Determine if the current version of PHP is at least the supplied version.
*
* @param string $version
* @return bool
*/
function has_php($version)
{
return version_compare(PHP_VERSION, $version) >= 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment