Skip to content

Commit 8232de0

Browse files
committed
Resolve new PHPStan errors
1 parent 26c576a commit 8232de0

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

etc/qa/phpstan.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
parameters:
2-
ignoreErrors:
3-
- '#Method WyriHaximus\\TestUtilities\\TestCase::setUp\(\) is not final, but since the containing class is abstract, it should be.#'
4-
- '#Method WyriHaximus\\TestUtilities\\TestCase::tearDown\(\) is not final, but since the containing class is abstract, it should be.#'
5-
61
includes:
72
- phar://phpstan.phar/conf/bleedingEdge.neon

src/TestCase.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ abstract class TestCase extends PHPUnitTestCase
3333
use MockeryPHPUnitIntegration;
3434

3535
public const string WINDOWS_TEMP_DIR_PREFIX = 'C:\\t\\';
36-
public const int DEFAULT_AWAIT_TIMEOUT = 60;
3736
public const int WIN_START = 0;
3837
public const int WIN_END = 2;
3938
public const int USLEEP = 50;
@@ -68,13 +67,11 @@ protected function tearDown(): void
6867
$this->rmdir($this->baseTmpDir);
6968
}
7069

71-
/** @return array<int, array<int, bool>> */
72-
final public static function provideTrueFalse(): array
70+
/** @return iterable<array<bool>> */
71+
final public static function provideTrueFalse(): iterable
7372
{
74-
return [
75-
[true],
76-
[false],
77-
];
73+
yield 'true' => [true];
74+
yield 'false' => [false];
7875
}
7976

8077
final protected function getSysTempDir(): string
@@ -121,7 +118,7 @@ final protected function getRandomNameSpace(): string
121118
return $this->tmpNamespace;
122119
}
123120

124-
/** @return array<string> */
121+
/** @return list<string> */
125122
final protected function getFilesInDirectory(string $path): array
126123
{
127124
$files = [];

0 commit comments

Comments
 (0)