Skip to content

Commit 2569c3e

Browse files
committed
Removed support for incredibly dead and buried versions of PHP.
Only support PHP 5.6 and later.
1 parent 542f836 commit 2569c3e

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

ChromePhp.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class ChromePhp
126126
*/
127127
private function __construct()
128128
{
129-
$this->_timestamp = version_compare(PHP_VERSION, '5.1') >= 0 ? $_SERVER['REQUEST_TIME'] : time();
129+
$this->_timestamp = $_SERVER['REQUEST_TIME'];
130130
$this->_json['request_uri'] = $_SERVER['REQUEST_URI'];
131131
}
132132

@@ -311,16 +311,8 @@ protected function _convert($object)
311311
continue;
312312
}
313313
$type = $this->_getPropertyKey($property);
314-
315-
if (version_compare(PHP_VERSION, '5.3') >= 0) {
316-
$property->setAccessible(true);
317-
}
318-
319-
try {
320-
$value = $property->getValue($object);
321-
} catch (ReflectionException $e) {
322-
$value = 'only PHP 5.3 can access private/protected properties';
323-
}
314+
$property->setAccessible(true);
315+
$value = $property->getValue($object);
324316

325317
// same instance as parent object
326318
if ($value === $object || in_array($value, $this->_processed, true)) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=5.0.0"
17+
"php": ">=7.0"
1818
},
1919
"autoload": {
2020
"psr-0": {

0 commit comments

Comments
 (0)