Skip to content

Commit e293d2f

Browse files
Increase PHPStan rule level to 10
1 parent d7b9b5f commit e293d2f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 9
2+
level: 10
33
paths:
44
- src
55
- tests

src/Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ final class Factory
3737
* @param list<non-empty-string>|string $suffixes
3838
* @param list<non-empty-string>|string $prefixes
3939
* @param list<non-empty-string> $exclude
40+
*
41+
* @phpstan-ignore missingType.generics
4042
*/
4143
public function getFileIterator(array|string $paths, array|string $suffixes = '', array|string $prefixes = '', array $exclude = []): AppendIterator
4244
{

src/Iterator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace SebastianBergmann\FileIterator;
1111

12-
use function assert;
1312
use function preg_match;
1413
use function realpath;
1514
use function str_ends_with;
@@ -56,8 +55,6 @@ public function accept(): bool
5655
{
5756
$current = $this->getInnerIterator()->current();
5857

59-
assert($current instanceof SplFileInfo);
60-
6158
$filename = $current->getFilename();
6259
$realPath = $current->getRealPath();
6360

0 commit comments

Comments
 (0)