Skip to content

Commit 7789962

Browse files
committed
Fix build
1 parent 3d6bbe4 commit 7789962

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/PHPStan/Rules/Operators/InvalidIncDecOperationRuleTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use PHPStan\Rules\RuleLevelHelper;
88
use PHPStan\Testing\RuleTestCase;
99
use PHPUnit\Framework\Attributes\RequiresPhp;
10-
use const PHP_EOL;
1110
use const PHP_VERSION_ID;
1211

1312
/**
@@ -154,16 +153,16 @@ public function testUnion(): void
154153
'Cannot use ++ on array|bool|float|int|object|string|null.',
155154
24,
156155
PHP_VERSION_ID >= 80500 ?
157-
'• Operator ++ is deprecated for non-numeric-strings. Either narrow the type to numeric-string, or use str_increment().' . PHP_EOL .
156+
'• Operator ++ is deprecated for non-numeric-strings. Either narrow the type to numeric-string, or use str_increment().' . "\n" .
158157
'• Operator ++ is deprecated for bool.'
159158
: (PHP_VERSION_ID >= 80300 ? 'Operator ++ is deprecated for bool.' : null),
160159
],
161160
[
162161
'Cannot use -- on array|bool|float|int|object|string|null.',
163162
26,
164163
PHP_VERSION_ID >= 80300 ?
165-
'• Operator -- is deprecated for non-numeric-strings. Either narrow the type to numeric-string, or use str_decrement().' . PHP_EOL .
166-
'• Operator -- is deprecated for null.' . PHP_EOL .
164+
'• Operator -- is deprecated for non-numeric-strings. Either narrow the type to numeric-string, or use str_decrement().' . "\n" .
165+
'• Operator -- is deprecated for null.' . "\n" .
167166
'• Operator -- is deprecated for bool.'
168167
: null,
169168
],

tests/PHPStan/Rules/Operators/data/dec-non-numeric-string.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Foo
1111
*/
1212
public function doFoo(
1313
string $s,
14-
string $t,
14+
string $t
1515
): void
1616
{
1717
$a = '1';

tests/PHPStan/Rules/Operators/data/inc-non-numeric-string.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Foo
1111
*/
1212
public function doFoo(
1313
string $s,
14-
string $t,
14+
string $t
1515
): void
1616
{
1717
$a = '1';

0 commit comments

Comments
 (0)