@@ -148,12 +148,12 @@ private function renderTemplate(\Throwable $exception, string $template, bool $t
148
148
[$ generators , $ fibers ] = $ this ->findGeneratorsAndFibers ($ exception );
149
149
$ headersSent = headers_sent ($ headersFile , $ headersLine );
150
150
$ obStatus = Debugger::$ obStatus ;
151
- $ showEnvironment = $ this ->showEnvironment && (strpos ($ exception ->getMessage (), 'Allowed memory size ' ) === false );
151
+ $ showEnvironment = $ this ->showEnvironment && (! str_contains ($ exception ->getMessage (), 'Allowed memory size ' ));
152
152
$ info = array_filter ($ this ->info );
153
153
$ source = Helpers::getSource ();
154
154
$ title = $ exception instanceof \ErrorException
155
155
? Helpers::errorTypeToString ($ exception ->getSeverity ())
156
- : Helpers:: getClass ($ exception );
156
+ : get_debug_type ($ exception );
157
157
$ lastError = $ exception instanceof \ErrorException || $ exception instanceof \Error
158
158
? null
159
159
: error_get_last ();
@@ -272,7 +272,7 @@ private function renderActions(\Throwable $ex): array
272
272
];
273
273
}
274
274
275
- $ query = ($ ex instanceof \ErrorException ? '' : Helpers:: getClass ($ ex ) . ' ' )
275
+ $ query = ($ ex instanceof \ErrorException ? '' : get_debug_type ($ ex ) . ' ' )
276
276
. preg_replace ('# \'.* \'|".*"#Us ' , '' , $ ex ->getMessage ());
277
277
$ actions [] = [
278
278
'link ' => 'https://www.google.com/search?sourceid=tracy&q= ' . urlencode ($ query ),
@@ -527,7 +527,7 @@ private function renderPhpInfo(): void
527
527
@phpinfo (INFO_CONFIGURATION | INFO_MODULES ); // @ phpinfo may be disabled
528
528
$ info = ob_get_clean ();
529
529
530
- if (strpos ($ license , '<body ' ) === false ) {
530
+ if (! str_contains ($ license , '<body ' )) {
531
531
echo '<pre class="tracy-dump tracy-light"> ' , Helpers::escapeHtml ($ info ), '</pre> ' ;
532
532
} else {
533
533
$ info = str_replace ('<table ' , '<table class="tracy-sortable" ' , $ info );
0 commit comments