Skip to content

Commit

Permalink
PHP 7.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Nov 28, 2018
1 parent 3f5125c commit 8dc5eb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm

matrix:
Expand Down
8 changes: 4 additions & 4 deletions src/Jade/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,12 @@ protected function tag($tag)
: $peek->attributes[$type];
$tag->setAttribute($token->type, $value, $escaped);
unset($peek->attributes[$type]);
continue;
continue 2;

case 'class':
$token = $this->advance();
$tag->setAttribute($token->type, "'" . $token->value . "'");
continue;
continue 2;

case 'attributes':
$token = $this->advance();
Expand All @@ -779,12 +779,12 @@ protected function tag($tag)
}
$tag->setAttribute($name, $value, $escaped[$name]);
}
continue;
continue 2;

case '&attributes':
$token = $this->advance();
$tag->setAttribute('&attributes', $token->value);
continue;
continue 2;

default:
break 2;
Expand Down

0 comments on commit 8dc5eb7

Please sign in to comment.