@@ -300,7 +300,7 @@ protected function describeCallable($callable, array $options = [])
300
300
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
301
301
$ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
302
302
} else {
303
- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
303
+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
304
304
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
305
305
$ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
306
306
$ string .= "\n- Static: yes " ;
@@ -318,7 +318,7 @@ protected function describeCallable($callable, array $options = [])
318
318
if (\is_string ($ callable )) {
319
319
$ string .= "\n- Type: `function` " ;
320
320
321
- if (false === strpos ($ callable , ':: ' )) {
321
+ if (! str_contains ($ callable , ':: ' )) {
322
322
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
323
323
} else {
324
324
$ callableParts = explode (':: ' , $ callable );
@@ -335,7 +335,7 @@ protected function describeCallable($callable, array $options = [])
335
335
$ string .= "\n- Type: `closure` " ;
336
336
337
337
$ r = new \ReflectionFunction ($ callable );
338
- if (false !== strpos ($ r ->name , '{closure} ' )) {
338
+ if (str_contains ($ r ->name , '{closure} ' )) {
339
339
return $ this ->write ($ string ."\n" );
340
340
}
341
341
$ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments