Skip to content

Commit b80c3a6

Browse files
committed
support for PHP 8.4
1 parent 9fd913d commit b80c3a6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.0', '8.1', '8.2', '8.3']
10+
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
1111

1212
fail-fast: false
1313

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.0 - 8.3",
18+
"php": "8.0 - 8.4",
1919
"ext-json": "*",
2020
"ext-tokenizer": "*"
2121
},
2222
"require-dev": {
23-
"nette/tester": "^2.0",
24-
"tracy/tracy": "^2.3",
25-
"nette/utils": "^3.0",
23+
"nette/tester": "^2.5",
24+
"tracy/tracy": "^2.10",
25+
"nette/utils": "^4.0",
2626
"phpstan/phpstan": "^1",
27-
"nette/php-generator": "^3.6 || ^4.0"
27+
"nette/php-generator": "^4.0"
2828
},
2929
"suggest": {
3030
"ext-iconv": "to use filters |reverse, |substring",

src/Latte/Compiler/TagLexer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function tokenize(string $input, ?Position $position = null): array
6666

6767

6868
/** @return Token[] */
69-
public function tokenizePartially(string $input, Position &$position, int $ofs = null): array
69+
public function tokenizePartially(string $input, Position &$position, ?int $ofs = null): array
7070
{
7171
$this->input = $input;
7272
$this->offset = $ofs ?? $position->offset;

src/Latte/Compiler/TemplateParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function parse(string $template): Nodes\TemplateNode
8282
}
8383

8484

85-
public function parseFragment(callable $resolver, callable $after = null): FragmentNode
85+
public function parseFragment(callable $resolver, ?callable $after = null): FragmentNode
8686
{
8787
$res = new FragmentNode;
8888
$save = [$this->lastResolver, $this->tag];

0 commit comments

Comments
 (0)