Skip to content

Commit 5e0a3c5

Browse files
Merge branch '6.4' into 7.0
* 6.4: Use typed properties in tests as much as possible
2 parents f4145a5 + b307cb5 commit 5e0a3c5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ public function testParseThrowsInsteadOfNotice()
170170

171171
public static function shortCircuitProviderEvaluate()
172172
{
173-
$object = new class(\Closure::fromCallable([static::class, 'fail'])) {
174-
private $fail;
173+
$object = new class(static::fail(...)) {
174+
private \Closure $fail;
175175

176-
public function __construct(callable $fail)
176+
public function __construct(\Closure $fail)
177177
{
178178
$this->fail = $fail;
179179
}

Tests/LexerTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919

2020
class LexerTest extends TestCase
2121
{
22-
/**
23-
* @var Lexer
24-
*/
25-
private $lexer;
22+
private Lexer $lexer;
2623

2724
protected function setUp(): void
2825
{

0 commit comments

Comments
 (0)