@@ -746,7 +746,7 @@ protected function compileProp($prop, $block, $out) {
746746 if ($ suffix !== null &&
747747 $ subProp [0 ] == "assign " &&
748748 is_string ($ subProp [1 ]) &&
749- $ subProp [1 ]{ 0 } != $ this ->vPrefix
749+ $ subProp [1 ][ 0 ] != $ this ->vPrefix
750750 ) {
751751 $ subProp [2 ] = array (
752752 'list ' , ' ' ,
@@ -1963,7 +1963,7 @@ protected function injectVariables($args) {
19631963 $ this ->pushEnv ();
19641964 $ parser = new lessc_parser ($ this , __METHOD__ );
19651965 foreach ($ args as $ name => $ strValue ) {
1966- if ($ name{ 0 } !== '@ ' ) {
1966+ if ($ name[ 0 ] !== '@ ' ) {
19671967 $ name = '@ ' . $ name ;
19681968 }
19691969 $ parser ->count = 0 ;
@@ -2624,7 +2624,7 @@ protected function parseChunk() {
26242624 $ hidden = true ;
26252625 if (!isset ($ block ->args )) {
26262626 foreach ($ block ->tags as $ tag ) {
2627- if (!is_string ($ tag ) || $ tag{ 0 } != $ this ->lessc ->mPrefix) {
2627+ if (!is_string ($ tag ) || $ tag[ 0 ] != $ this ->lessc ->mPrefix ) {
26282628 $ hidden = false ;
26292629 break ;
26302630 }
@@ -2678,7 +2678,7 @@ protected function isDirective($dirname, $directives) {
26782678 protected function fixTags ($ tags ) {
26792679 // move @ tags out of variable namespace
26802680 foreach ($ tags as &$ tag ) {
2681- if ($ tag{ 0 } == $ this ->lessc ->vPrefix)
2681+ if ($ tag[ 0 ] == $ this ->lessc ->vPrefix )
26822682 $ tag [0 ] = $ this ->lessc ->mPrefix ;
26832683 }
26842684 return $ tags ;
0 commit comments