@@ -337,7 +337,7 @@ protected function describeCallable($callable, array $options = [])
337337 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
338338 $ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
339339 } else {
340- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
340+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
341341 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
342342 $ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
343343 $ string .= "\n- Static: yes " ;
@@ -355,7 +355,7 @@ protected function describeCallable($callable, array $options = [])
355355 if (\is_string ($ callable )) {
356356 $ string .= "\n- Type: `function` " ;
357357
358- if (false === strpos ($ callable , ':: ' )) {
358+ if (! str_contains ($ callable , ':: ' )) {
359359 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
360360 } else {
361361 $ callableParts = explode (':: ' , $ callable );
@@ -372,7 +372,7 @@ protected function describeCallable($callable, array $options = [])
372372 $ string .= "\n- Type: `closure` " ;
373373
374374 $ r = new \ReflectionFunction ($ callable );
375- if (false !== strpos ($ r ->name , '{closure} ' )) {
375+ if (str_contains ($ r ->name , '{closure} ' )) {
376376 return $ this ->write ($ string ."\n" );
377377 }
378378 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments