Skip to content

Commit

Permalink
Update 'windows_os()' helper to use PHP_OS_FAMILY (#30660)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke authored and taylorotwell committed Nov 22, 2019
1 parent f610830 commit 3e4c2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ function value($value)
*/
function windows_os()
{
return strtolower(substr(PHP_OS, 0, 3)) === 'win';
return PHP_OS_FAMILY === 'Windows';
}
}

Expand Down

0 comments on commit 3e4c2c6

Please sign in to comment.