Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions ChromePhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ class ChromePhp
*/
const TABLE = 'table';

/**
* @var string
*/
protected $_php_version;

/**
* @var int
*/
Expand Down Expand Up @@ -131,8 +126,7 @@ class ChromePhp
*/
private function __construct()
{
$this->_php_version = phpversion();
$this->_timestamp = $this->_php_version >= 5.1 ? $_SERVER['REQUEST_TIME'] : time();
$this->_timestamp = version_compare(PHP_VERSION, '5.1') >= 0 ? $_SERVER['REQUEST_TIME'] : time();
$this->_json['request_uri'] = $_SERVER['REQUEST_URI'];
}

Expand Down Expand Up @@ -318,7 +312,7 @@ protected function _convert($object)
}
$type = $this->_getPropertyKey($property);

if ($this->_php_version >= 5.3) {
if (version_compare(PHP_VERSION, '5.3') >= 0) {
$property->setAccessible(true);
}

Expand Down