mirror of
https://github.com/filp/whoops.git
synced 2026-09-15 12:16:18 +00:00
Merge pull request #516 from staabm/patch-1
safe unnecessary php_sapi_name() func call.
This commit is contained in:
@@ -151,7 +151,7 @@ class PrettyPageHandler extends Handler
|
||||
if (!$this->handleUnconditionally()) {
|
||||
// Check conditions for outputting HTML:
|
||||
// @todo: Make this more robust
|
||||
if (php_sapi_name() === 'cli') {
|
||||
if (PHP_SAPI === 'cli') {
|
||||
// Help users who have been relying on an internal test value
|
||||
// fix their code to the proper method
|
||||
if (isset($_ENV['whoops-test'])) {
|
||||
|
||||
Reference in New Issue
Block a user