We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5e38a commit b307cb5Copy full SHA for b307cb5
Tests/ExpressionLanguageTest.php
@@ -170,10 +170,10 @@ public function testParseThrowsInsteadOfNotice()
170
171
public static function shortCircuitProviderEvaluate()
172
{
173
- $object = new class(\Closure::fromCallable([static::class, 'fail'])) {
174
- private $fail;
+ $object = new class(static::fail(...)) {
+ private \Closure $fail;
175
176
- public function __construct(callable $fail)
+ public function __construct(\Closure $fail)
177
178
$this->fail = $fail;
179
}
Tests/LexerTest.php
@@ -19,10 +19,7 @@
19
20
class LexerTest extends TestCase
21
22
- /**
23
- * @var Lexer
24
- */
25
- private $lexer;
+ private Lexer $lexer;
26
27
protected function setUp(): void
28
0 commit comments