@@ -300,7 +300,7 @@ protected function describeCallable($callable, array $options = [])
300300 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
301301 $ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
302302 } else {
303- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
303+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
304304 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
305305 $ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
306306 $ string .= "\n- Static: yes " ;
@@ -318,7 +318,7 @@ protected function describeCallable($callable, array $options = [])
318318 if (\is_string ($ callable )) {
319319 $ string .= "\n- Type: `function` " ;
320320
321- if (false === strpos ($ callable , ':: ' )) {
321+ if (! str_contains ($ callable , ':: ' )) {
322322 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
323323 } else {
324324 $ callableParts = explode (':: ' , $ callable );
@@ -335,7 +335,7 @@ protected function describeCallable($callable, array $options = [])
335335 $ string .= "\n- Type: `closure` " ;
336336
337337 $ r = new \ReflectionFunction ($ callable );
338- if (false !== strpos ($ r ->name , '{closure} ' )) {
338+ if (str_contains ($ r ->name , '{closure} ' )) {
339339 return $ this ->write ($ string ."\n" );
340340 }
341341 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments