Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string's first character uppercase
<?php ucfirst(string $string): string
<?php                     $phpcsFile->addError(

                        "'%s' type cannot be used outside of class scope",

                        $param['token'],

                        \ucfirst($typeHint) . 'OutsideClassScopeFound',

                        [$typeHint]

                    );

                }
<?php         $phpcsFile->addError(

            'Passing a multi-byte separator as the $%s to number_format() is not supported in PHP 5.3 or earlier. Found: "%s"',

            $firstNonEmpty,

            'In' . \ucfirst($paramName),

            [$paramName, $content]

        );

    }