Skip to content

Commit e83c5da

Browse files
committed
php 7.4 fixes
1 parent be6c20f commit e83c5da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CoffeeScript/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ function interpolate_string($str, array $options = array()) // #{0}
654654

655655
while ( isset($str{++$i}) )
656656
{
657-
$letter = $str{$i};
657+
$letter = $str[$i];
658658

659659
if ($letter === '\\')
660660
{

src/CoffeeScript/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3014,7 +3014,7 @@ function yy_r186(){ $this->_retvalue = yy('Op', $this->yystack[$this->yyidx + -1
30143014
#line 3014 "/var/www/coffeescript-php/grammar.php"
30153015
#line 294 "/var/www/coffeescript-php/grammar.y"
30163016
function yy_r192(){
3017-
if ($this->yystack[$this->yyidx + -1]->minor{0} === '!') {
3017+
if ($this->yystack[$this->yyidx + -1]->minor[0] === '!') {
30183018
$this->_retvalue = yy('Op', substr($this->yystack[$this->yyidx + -1]->minor, 1), $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor);
30193019
$this->_retvalue = $this->_retvalue->invert();
30203020
}

src/CoffeeScript/Scope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function declared_variables()
9898
{
9999
if ($v['type'] === 'var')
100100
{
101-
if ($v['name']{0} === '_')
101+
if ($v['name'][0] === '_')
102102
{
103103
$temp_vars[] = $v['name'];
104104
}

0 commit comments

Comments
 (0)