@@ -328,7 +328,7 @@ protected function describeCallable($callable, array $options = [])
328328 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
329329 $ string .= "\n" .sprintf ('- Class: `%s` ' , \get_class ($ callable [0 ]));
330330 } else {
331- if (0 !== strpos ($ callable [1 ], 'parent:: ' )) {
331+ if (! str_starts_with ($ callable [1 ], 'parent:: ' )) {
332332 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable [1 ]);
333333 $ string .= "\n" .sprintf ('- Class: `%s` ' , $ callable [0 ]);
334334 $ string .= "\n- Static: yes " ;
@@ -346,7 +346,7 @@ protected function describeCallable($callable, array $options = [])
346346 if (\is_string ($ callable )) {
347347 $ string .= "\n- Type: `function` " ;
348348
349- if (false === strpos ($ callable , ':: ' )) {
349+ if (! str_contains ($ callable , ':: ' )) {
350350 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ callable );
351351 } else {
352352 $ callableParts = explode (':: ' , $ callable );
@@ -363,7 +363,7 @@ protected function describeCallable($callable, array $options = [])
363363 $ string .= "\n- Type: `closure` " ;
364364
365365 $ r = new \ReflectionFunction ($ callable );
366- if (false !== strpos ($ r ->name , '{closure} ' )) {
366+ if (str_contains ($ r ->name , '{closure} ' )) {
367367 return $ this ->write ($ string ."\n" );
368368 }
369369 $ string .= "\n" .sprintf ('- Name: `%s` ' , $ r ->name );
0 commit comments