File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ matrix:
1919 - php : 7.3
2020 # This empty flag removes the prefer-stable switch to cause dev dependencies to be installed
2121 env : COMPOSER_FLAGS=""
22- - php : 7.4snapshot
22+ - php : 7.4
2323 - php : nightly
2424 allow_failures :
25- - php : 7.4snapshot
2625 - php : nightly
2726
2827before_script :
Original file line number Diff line number Diff line change @@ -120,18 +120,13 @@ public static function toUnderscoreSeparated($input)
120120 public static function toVariable ($ input )
121121 {
122122 // Remove dashes and underscores, then convert to camel case.
123- $ input = static ::toSpaceSeparated ($ input );
124123 $ input = static ::toCamelCase ($ input );
125124
126125 // Remove leading digits.
127126 $ input = preg_replace ('#^[0-9]+# ' , '' , $ input );
128127
129128 // Lowercase the first character.
130- $ first = substr ($ input , 0 , 1 );
131- $ first = strtolower ($ first );
132-
133- // Replace the first character with the lowercase character.
134- $ input = substr_replace ($ input , $ first , 0 , 1 );
129+ $ input = lcfirst ($ input );
135130
136131 return $ input ;
137132 }
Original file line number Diff line number Diff line change 2424* and raises a PHP error at level E_USER_WARNING
2525* Note: this function has been modified slightly in this library to
2626* trigger errors on encountering bad bytes
27+ *
28+ * Joomla modification - As of PHP 7.4, curly brace access has been deprecated. As a result this function has been
29+ * modified to use square brace syntax
30+ * See https://github.com/php/php-src/commit/d574df63dc375f5fc9202ce5afde23f866b6450a
31+ * for additional references
32+ *
2733* @author <hsivonen@iki.fi>
2834* @param string UTF-8 encoded string
2935* @return mixed array of unicode code points or FALSE if UTF-8 invalid
@@ -43,7 +49,7 @@ function utf8_to_unicode($str) {
4349
4450 for ($ i = 0 ; $ i < $ len ; $ i ++) {
4551
46- $ in = ord ($ str{ $ i } );
52+ $ in = ord ($ str[ $ i ] );
4753
4854 if ( $ mState == 0 ) {
4955
You can’t perform that action at this time.
0 commit comments