Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2878' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	library/Zend/File/Transfer/Adapter/AbstractAdapter.php
	library/Zend/File/Transfer/Adapter/Http.php
	tests/ZendTest/Log/Writer/AbstractTest.php
	tests/ZendTest/Log/Writer/DbTest.php
  • Loading branch information
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class Debug
*/
public static function getSapi()
{
if (self::$sapi === null) {
self::$sapi = PHP_SAPI;
if (static::$sapi === null) {
static::$sapi = PHP_SAPI;
}
return self::$sapi;
return static::$sapi;
}

/**
Expand All @@ -53,7 +53,7 @@ public static function getSapi()
*/
public static function setSapi($sapi)
{
self::$sapi = $sapi;
static::$sapi = $sapi;
}

/**
Expand Down Expand Up @@ -103,7 +103,7 @@ public static function dump($var, $label=null, $echo=true)

// neaten the newlines and indents
$output = preg_replace("/\]\=\>\n(\s+)/m", "] => ", $output);
if (self::getSapi() == 'cli') {
if (static::getSapi() == 'cli') {
$output = PHP_EOL . $label
. PHP_EOL . $output
. PHP_EOL;
Expand Down

0 comments on commit a6bf7c0

Please sign in to comment.