Skip to content

Commit 7f04d5d

Browse files
committed
Get rid of PHP 8 warnings
1 parent e597119 commit 7f04d5d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/PHPStan/Analyser/data/misleading-types-without-namespace.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
class FooClassForNodeScopeResolverTestingWithoutNamespace
44
{
55

6-
public function misleadingBoolReturnType(): boolean
6+
public function misleadingBoolReturnType(): \boolean
77
{
88

99
}
1010

11-
public function misleadingIntReturnType(): integer
11+
public function misleadingIntReturnType(): \integer
1212
{
1313

1414
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
class Foo
66
{
77

8-
public function misleadingBoolReturnType(): boolean
8+
public function misleadingBoolReturnType(): \MisleadingTypes\boolean
99
{
1010

1111
}
1212

13-
public function misleadingIntReturnType(): integer
13+
public function misleadingIntReturnType(): \MisleadingTypes\integer
1414
{
1515

1616
}

tests/PHPStan/Rules/Methods/data/misleadingTypehints.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class FooWithoutNamespace
44
{
55

6-
public function misleadingBoolReturnType(): boolean
6+
public function misleadingBoolReturnType(): \boolean
77
{
88
if (rand(0, 1)) {
99
return true;
@@ -18,7 +18,7 @@ public function misleadingBoolReturnType(): boolean
1818
}
1919
}
2020

21-
public function misleadingIntReturnType(): integer
21+
public function misleadingIntReturnType(): \integer
2222
{
2323
if (rand(0, 1)) {
2424
return 1;

tests/PHPStan/Rules/Methods/data/returnTypes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function returnsNullInTernary(): int
349349
}
350350
}
351351

352-
public function misleadingBoolReturnType(): boolean
352+
public function misleadingBoolReturnType(): \ReturnTypes\boolean
353353
{
354354
if (rand(0, 1)) {
355355
return true;
@@ -362,7 +362,7 @@ public function misleadingBoolReturnType(): boolean
362362
}
363363
}
364364

365-
public function misleadingIntReturnType(): integer
365+
public function misleadingIntReturnType(): \ReturnTypes\integer
366366
{
367367
if (rand(0, 1)) {
368368
return 1;

0 commit comments

Comments
 (0)