File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class ChromePhp
126
126
*/
127
127
private function __construct ()
128
128
{
129
- $ this ->_timestamp = version_compare ( PHP_VERSION , ' 5.1 ' ) >= 0 ? $ _SERVER ['REQUEST_TIME ' ] : time () ;
129
+ $ this ->_timestamp = $ _SERVER ['REQUEST_TIME ' ];
130
130
$ this ->_json ['request_uri ' ] = $ _SERVER ['REQUEST_URI ' ];
131
131
}
132
132
@@ -311,16 +311,8 @@ protected function _convert($object)
311
311
continue ;
312
312
}
313
313
$ 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 );
324
316
325
317
// same instance as parent object
326
318
if ($ value === $ object || in_array ($ value , $ this ->_processed , true )) {
Original file line number Diff line number Diff line change 14
14
}
15
15
],
16
16
"require" : {
17
- "php" : " >=5.0 .0"
17
+ "php" : " >=7 .0"
18
18
},
19
19
"autoload" : {
20
20
"psr-0" : {
You can’t perform that action at this time.
0 commit comments