@@ -328,7 +328,7 @@ protected function describeCallable($callable, array $options = [])
328
328
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
329
329
$ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
330
330
} else {
331
- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
331
+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
332
332
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
333
333
$ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
334
334
$ string .= "\n- Static: yes " ;
@@ -346,7 +346,7 @@ protected function describeCallable($callable, array $options = [])
346
346
if (\is_string ($ callable )) {
347
347
$ string .= "\n- Type: `function` " ;
348
348
349
- if (false === strpos ($ callable , ':: ' )) {
349
+ if (! str_contains ($ callable , ':: ' )) {
350
350
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
351
351
} else {
352
352
$ callableParts = explode (':: ' , $ callable );
@@ -363,7 +363,7 @@ protected function describeCallable($callable, array $options = [])
363
363
$ string .= "\n- Type: `closure` " ;
364
364
365
365
$ r = new \ReflectionFunction ($ callable );
366
- if (false !== strpos ($ r ->name , '{closure} ' )) {
366
+ if (str_contains ($ r ->name , '{closure} ' )) {
367
367
return $ this ->write ($ string ."\n" );
368
368
}
369
369
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments