@@ -337,7 +337,7 @@ protected function describeCallable($callable, array $options = [])
337
337
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
338
338
$ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
339
339
} else {
340
- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
340
+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
341
341
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
342
342
$ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
343
343
$ string .= "\n- Static: yes " ;
@@ -355,7 +355,7 @@ protected function describeCallable($callable, array $options = [])
355
355
if (\is_string ($ callable )) {
356
356
$ string .= "\n- Type: `function` " ;
357
357
358
- if (false === strpos ($ callable , ':: ' )) {
358
+ if (! str_contains ($ callable , ':: ' )) {
359
359
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
360
360
} else {
361
361
$ callableParts = explode (':: ' , $ callable );
@@ -372,7 +372,7 @@ protected function describeCallable($callable, array $options = [])
372
372
$ string .= "\n- Type: `closure` " ;
373
373
374
374
$ r = new \ReflectionFunction ($ callable );
375
- if (false !== strpos ($ r ->name , '{closure} ' )) {
375
+ if (str_contains ($ r ->name , '{closure} ' )) {
376
376
return $ this ->write ($ string ."\n" );
377
377
}
378
378
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments