Skip to content

Commit

Permalink
support for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 18, 2024
1 parent 91590af commit 292971d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['8.0', '8.1', '8.2', '8.3']
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
sapi: ['php', 'php-cgi']

fail-fast: false
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
}
],
"require": {
"php": "8.0 - 8.3",
"php": "8.0 - 8.4",
"ext-session": "*",
"ext-json": "*"
},
"require-dev": {
"nette/utils": "^3.0",
"nette/utils": "^3.0 || ^4.0",
"nette/di": "^3.0",
"nette/http": "^3.0",
"nette/mail": "^3.0",
"nette/mail": "^3.0 || ^4.0",
"nette/tester": "^2.2",
"latte/latte": "^2.5",
"latte/latte": "^2.5 || ^3.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"phpstan/phpstan": "^1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ composer require tracy/tracy

Alternatively, you can download the whole package or [tracy.phar](https://github.com/nette/tracy/releases) file.

Tracy is compatible with PHP 8.0 to 8.3.
Tracy is compatible with PHP 8.0 to 8.4.

 <!---->

Expand Down
12 changes: 6 additions & 6 deletions tests/Tracy/Helpers.improveException.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ test('callable error: ignore syntax mismatch', function () {
}

Helpers::improveException($e);
Assert::match('{closure}(): Argument #1 ($a) must be of type callable, null given, called in %a%', $e->getMessage());
Assert::match('{closure%a?%}(): Argument #1 ($a) must be of type callable, null given, called in %a%', $e->getMessage());
});

test('callable error: typo in class name', function () {
Expand All @@ -237,7 +237,7 @@ test('callable error: typo in class name', function () {
}

Helpers::improveException($e);
Assert::match("{closure}(): Argument #1 (\$a) must be of type callable, but class 'PhpTokn' does not exist, called in %a%", $e->getMessage());
Assert::match("{closure%a?%}(): Argument #1 (\$a) must be of type callable, but class 'PhpTokn' does not exist, called in %a%", $e->getMessage());
});

test('callable error: typo in class name', function () {
Expand All @@ -247,7 +247,7 @@ test('callable error: typo in class name', function () {
}

Helpers::improveException($e);
Assert::match("{closure}(): Argument #1 (\$a) must be of type callable, but class 'PhpTokn' does not exist, called in %a%", $e->getMessage());
Assert::match("{closure%a?%}(): Argument #1 (\$a) must be of type callable, but class 'PhpTokn' does not exist, called in %a%", $e->getMessage());
});

test('callable error: typo in method name', function () {
Expand All @@ -257,7 +257,7 @@ test('callable error: typo in method name', function () {
}

Helpers::improveException($e);
Assert::match('{closure}(): Argument #1 ($a) must be of type callable, but method PhpToken::tokenze() does not exist (did you mean tokenize?), called in %a%', $e->getMessage());
Assert::match('{closure%a?%}(): Argument #1 ($a) must be of type callable, but method PhpToken::tokenze() does not exist (did you mean tokenize?), called in %a%', $e->getMessage());
});

test('callable error: typo in method name', function () {
Expand All @@ -267,7 +267,7 @@ test('callable error: typo in method name', function () {
}

Helpers::improveException($e);
Assert::match('{closure}(): Argument #1 ($a) must be of type callable, but method PhpToken::tokenze() does not exist (did you mean tokenize?), called in %a%', $e->getMessage());
Assert::match('{closure%a?%}(): Argument #1 ($a) must be of type callable, but method PhpToken::tokenze() does not exist (did you mean tokenize?), called in %a%', $e->getMessage());
});

test('callable error: typo in function name', function () {
Expand All @@ -277,5 +277,5 @@ test('callable error: typo in function name', function () {
}

Helpers::improveException($e);
Assert::match("{closure}(): Argument #1 (\$a) must be of type callable, but function 'trm' does not exist (did you mean trim?), called in %a%", $e->getMessage());
Assert::match("{closure%a?%}(): Argument #1 (\$a) must be of type callable, but function 'trm' does not exist (did you mean trim?), called in %a%", $e->getMessage());
});
2 changes: 1 addition & 1 deletion tests/Tracy/expected/Debugger.exception.fiber.html.expect
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</div>

<div class="tracy-callstack-callee">
<b>{closure}</b> ()
<b>{closure%a?%}</b> ()
</div>

</div>
Expand Down

0 comments on commit 292971d

Please sign in to comment.