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
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 )) {
Original file line number Diff line number Diff line change 1414 }
1515 ],
1616 "require" : {
17- "php" : " >=5.0 .0"
17+ "php" : " >=7 .0"
1818 },
1919 "autoload" : {
2020 "psr-0" : {
You can’t perform that action at this time.
0 commit comments