Skip to content

Commit 1dcbd4c

Browse files
authored
Merge pull request #32 from neos/task/php74tests
TASK: Add php 7.4 to travis tests
2 parents 828506e + ec7e895 commit 1dcbd4c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ language: php
22
php:
33
- '7.2'
44
- '7.3'
5+
- '7.4'
56
script: composer test

Diff for: Classes/Parser/Lexer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Lexer
4949
public function __construct($string)
5050
{
5151
$this->string = $string;
52-
$this->currentCharacter = ($string !== '') ? $string{0} : null;
52+
$this->currentCharacter = ($string !== '') ? $string[0] : null;
5353
$this->characterPosition = 0;
5454
}
5555

@@ -250,7 +250,7 @@ public function isEnd(): bool
250250
*/
251251
public function rewind(): void
252252
{
253-
$this->currentCharacter = $this->string{--$this->characterPosition};
253+
$this->currentCharacter = $this->string[--$this->characterPosition];
254254
}
255255

256256
/**
@@ -277,7 +277,7 @@ public function consume(): ?string
277277
{
278278
$c = $this->currentCharacter;
279279
if ($this->characterPosition < strlen($this->string) - 1) {
280-
$this->currentCharacter = $this->string{++$this->characterPosition};
280+
$this->currentCharacter = $this->string[++$this->characterPosition];
281281
} else {
282282
$this->currentCharacter = null;
283283
}

Diff for: Classes/Service/AfxService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ protected static function astNodeToFusion($payload, $indentation = '')
216216
// seperate between attributes (before the first spread), meta attributes
217217
// spreads and attributes lists between and after spreads
218218
foreach ($attributes as $attribute) {
219-
if ($attribute['type'] === 'prop' && $attribute['payload']['identifier']{0} === '@') {
219+
if ($attribute['type'] === 'prop' && $attribute['payload']['identifier'][0] === '@') {
220220
$metaAttributes[] = $attribute;
221221
} elseif ($attribute['type'] === 'prop' && $spreadIsPresent === false) {
222222
$fusionAttributes[] = $attribute;

0 commit comments

Comments
 (0)