Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public function testCoalesceRule(): void
41,
],
[
'Offset \'string\' on array{1, 2, 3} on left side of ?? does not exist.',
'Offset \'string\' on array{1, 2, 3} on left side of ?? does not exist, use = instead.',
45,
],
[
'Offset \'string\' on array{array{1}, array{2}, array{3}} on left side of ?? does not exist.',
'Offset \'string\' on array{array{1}, array{2}, array{3}} on left side of ?? does not exist, use = instead.',
49,
],
[
Expand All @@ -65,11 +65,11 @@ public function testCoalesceRule(): void
67,
],
[
'Offset \'dim-null-not-set\' on array{dim: 1, dim-null: 1|null, dim-null-offset: array{a: true|null}, dim-empty: array{}} on left side of ?? does not exist.',
'Offset \'dim-null-not-set\' on array{dim: 1, dim-null: 1|null, dim-null-offset: array{a: true|null}, dim-empty: array{}} on left side of ?? does not exist, use = instead.',
73,
],
[
'Offset \'b\' on array{} on left side of ?? does not exist.',
'Offset \'b\' on array{} on left side of ?? does not exist, use = instead.',
79,
],
[
Expand Down Expand Up @@ -156,11 +156,11 @@ public function testCoalesceAssignRule(): void
41,
],
[
'Offset \'string\' on array{1, 2, 3} on left side of ??= does not exist.',
'Offset \'string\' on array{1, 2, 3} on left side of ??= does not exist, use = instead.',
45,
],
[
'Offset \'string\' on array{array{1}, array{2}, array{3}} on left side of ??= does not exist.',
'Offset \'string\' on array{array{1}, array{2}, array{3}} on left side of ??= does not exist, use = instead.',
49,
],
[
Expand All @@ -172,11 +172,11 @@ public function testCoalesceAssignRule(): void
67,
],
[
'Offset \'dim-null-not-set\' on array{dim: 1, dim-null: 0|1, dim-null-offset: array{a: true|null}, dim-empty: array{}} on left side of ??= does not exist.',
'Offset \'dim-null-not-set\' on array{dim: 1, dim-null: 0|1, dim-null-offset: array{a: true|null}, dim-empty: array{}} on left side of ??= does not exist, use = instead.',
73,
],
[
'Offset \'b\' on array{} on left side of ??= does not exist.',
'Offset \'b\' on array{} on left side of ??= does not exist, use = instead.',
79,
],
[
Expand Down
Loading