Skip to content

Commit a7e16a7

Browse files
committed
Apply the coding standard
Signed-off-by: William Desportes <[email protected]>
1 parent 43e6f43 commit a7e16a7

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@ parameters:
6060
count: 6
6161
path: test/Node/MoTranslatorTransTest.php
6262

63-
-
64-
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
65-
count: 8
66-
path: test/Node/MoTranslatorTransTest.php
67-
68-
-
69-
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
70-
count: 3
71-
path: test/Node/MoTranslatorTransTest.php
72-
7363
-
7464
message: "#^Cannot call method compile\\(\\) on mixed\\.$#"
7565
count: 2
@@ -99,13 +89,3 @@ parameters:
9989
message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#"
10090
count: 4
10191
path: test/Node/TransTest.php
102-
103-
-
104-
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
105-
count: 5
106-
path: test/Node/TransTest.php
107-
108-
-
109-
message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
110-
count: 1
111-
path: test/Node/TransTest.php

test/Node/MoTranslatorTransTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
namespace PhpMyAdmin\Tests\Twig\Extensions\Node;
1616

1717
use PhpMyAdmin\Twig\Extensions\Node\TransNode;
18+
use Twig\Environment;
1819
use Twig\Node\Expression\ConstantExpression;
1920
use Twig\Node\Expression\Variable\ContextVariable;
21+
use Twig\Node\Node;
2022
use Twig\Node\Nodes;
2123
use Twig\Node\PrintNode;
2224
use Twig\Node\TextNode;
@@ -70,7 +72,7 @@ public function testFullConstructor(): void
7072
$this->assertEquals($context, $node->getNode('context'));
7173
}
7274

73-
/** @return iterable<array{0: \Twig\Node\Node, 1: string, 2?: Environment|null, 3?: bool}> */
75+
/** @return iterable<array{0: Node, 1: string, 2?: Environment|null, 3?: bool}> */
7476
public static function provideTests(): iterable
7577
{
7678
$tests = [];

test/Node/TransTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
namespace PhpMyAdmin\Tests\Twig\Extensions\Node;
1616

1717
use PhpMyAdmin\Twig\Extensions\Node\TransNode;
18+
use Twig\Environment;
1819
use Twig\Node\Expression\ConstantExpression;
1920
use Twig\Node\Expression\FilterExpression;
2021
use Twig\Node\Expression\Variable\ContextVariable;
22+
use Twig\Node\Node;
2123
use Twig\Node\Nodes;
2224
use Twig\Node\PrintNode;
2325
use Twig\Node\TextNode;
@@ -128,7 +130,7 @@ public function testEnableDebugEnabled(): void
128130
TransNode::$notesLabel = '// notes: ';
129131
}
130132

131-
/** @return iterable<array{0: \Twig\Node\Node, 1: string, 2?: Environment|null, 3?: bool}> */
133+
/** @return iterable<array{0: Node, 1: string, 2?: Environment|null, 3?: bool}> */
132134
public static function provideTests(): iterable
133135
{
134136
$tests = [];

0 commit comments

Comments
 (0)