Fix Lexer 2 compatibility (#349)

This commit is contained in:
Alexander M. Turek
2023-01-02 23:13:52 +01:00
committed by GitHub
parent 2a096c7219
commit 17865e0fb7
4 changed files with 14 additions and 14 deletions
+9 -2
View File
@@ -16,9 +16,14 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, '8.0', 8.1, 8.2]
php: ['8.1', '8.2']
deps: [highest]
name: PHP ${{ matrix.php }}
include:
- php: '8.1'
deps: lowest
name: PHP ${{ matrix.php }} / ${{ matrix.deps }}
steps:
- name: Checkout code
@@ -34,6 +39,8 @@ jobs:
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.deps }}
- name: Setup logs directory
run: mkdir -p build/logs
+1 -1
View File
@@ -8,6 +8,6 @@ build:
override:
- command: "vendor/bin/phpunit --coverage-clover=clover.xml --exclude-group flaky"
coverage:
file: "clover.xml"
file: "build/logs/clover.xml"
format: "clover"
- php-scrutinizer-run
+3 -3
View File
@@ -18,8 +18,8 @@
"symfony/polyfill-intl-idn": "^1.26"
},
"require-dev": {
"phpunit/phpunit": "^8.5.8|^9.3.3",
"vimeo/psalm": "^4"
"phpunit/phpunit": "^9.5.27",
"vimeo/psalm": "^4.30"
},
"suggest": {
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
@@ -34,4 +34,4 @@
"Egulias\\EmailValidator\\Tests\\": "tests"
}
}
}
}
+1 -8
View File
@@ -144,13 +144,6 @@ class EmailLexer extends AbstractLexer
*/
public Token $current;
/**
* The next token in the input.
*
* @var Token<int, string>|null
*/
public Token|null $lookahead;
/**
* @var Token<int, string>
*/
@@ -334,4 +327,4 @@ class EmailLexer extends AbstractLexer
{
$this->accumulator = '';
}
}
}