Skip to content

Commit baebbfa

Browse files
jiripudilondrejmirtes
authored andcommitted
fix "never" type description in tests
1 parent e6d3c8c commit baebbfa

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

tests/PHPStan/Analyser/data/bug-8242.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function f2() {
1515
return new NoReturn;
1616
}
1717

18-
\PHPStan\Testing\assertType('*NEVER*', f1());
18+
\PHPStan\Testing\assertType('never', f1());
1919
\PHPStan\Testing\assertType('NoReturn', f2());
2020
}
2121

@@ -55,6 +55,6 @@ function f2() {
5555
throw new \LogicException();
5656
}
5757

58-
\PHPStan\Testing\assertType('*NEVER*', f1());
59-
\PHPStan\Testing\assertType('*NEVER*', f2());
58+
\PHPStan\Testing\assertType('never', f1());
59+
\PHPStan\Testing\assertType('never', f2());
6060
}

tests/PHPStan/Analyser/data/conditional-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ abstract public function maybeNever(int $option): void;
152152
public function testMaybeNever(): void
153153
{
154154
assertType('void', $this->maybeNever(0));
155-
assertType('*NEVER*', $this->maybeNever(1));
155+
assertType('never', $this->maybeNever(1));
156156
assertType('void', $this->maybeNever(2));
157157
}
158158

tests/PHPStan/Analyser/data/emptyiterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Foo
99
public function doFoo(\EmptyIterator $it): void
1010
{
1111
assertType('EmptyIterator', $it);
12-
assertType('*NEVER*', $it->key());
13-
assertType('*NEVER*', $it->current());
12+
assertType('never', $it->key());
13+
assertType('never', $it->current());
1414
assertType('void', $it->next());
1515
assertType('false', $it->valid());
1616
}

tests/PHPStan/Analyser/data/phpdoc-pseudotype-global.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ function () {
2525
assertType('float|int|numeric-string', $numeric);
2626
assertType('bool', $boolean);
2727
assertType('resource', $resource);
28-
assertType('*NEVER*', $never);
28+
assertType('never', $never);
2929
assertType('float', $double);
3030
};

tests/PHPStan/Analyser/data/self-out.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function () {
7979
$i->setData("test");
8080
// IfThisIsMismatch - Class is not a<int> as required
8181
assertType('SelfOut\\a<string>', $i);
82-
assertType('*NEVER*', $i->test());
82+
assertType('never', $i->test());
8383
};
8484

8585
function () {

tests/PHPStan/Analyser/data/type-aliases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function invalidImports($parameter1, $parameter2, $parameter3)
134134
*/
135135
public function conflictingAlias($parameter)
136136
{
137-
assertType('*NEVER*', $parameter);
137+
assertType('never', $parameter);
138138
}
139139

140140
public function __get(string $name)

tests/PHPStan/Rules/Methods/data/bug-5089.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function encode(string $foo): array
1616

1717
public function test(): void
1818
{
19-
assertType('*NEVER*', $this->encode('foo'));
19+
assertType('never', $this->encode('foo'));
2020
}
2121
}

0 commit comments

Comments
 (0)