* @param string $string
* @return mixed|string
*/
- function ucfirst( $string ) {
- if ( $string[0] == 'i' ) {
+ public function ucfirst( $string ) {
+ if ( substr( $string, 0, 1 ) === 'i' ) {
return 'İ' . substr( $string, 1 );
}
return parent::ucfirst( $string );