Skip to content

Commit

Permalink
inline everything
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Potencier <fabien@potencier.org>
  • Loading branch information
faizanakram99 and fabpot authored Dec 12, 2024
1 parent 80d42c5 commit 5799a38
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,7 @@ public static function getGetAttributeTests()
]);

// test for Closure::__invoke()
$closure = fn (): string => 'closure called';

$tests[] = [true, 'closure called', $closure, '__invoke', [], $anyType];

$tests[] = [true, 'closure called', fn (): string => 'closure called', '__invoke', [], $anyType];
// tests when input is not an array or object
$tests = array_merge($tests, [
[false, null, 42, 'a', [], $anyType, 'Impossible to access an attribute ("a") on a int variable ("42") in "index.twig".'],
Expand Down

0 comments on commit 5799a38

Please sign in to comment.