Skip to content

Commit

Permalink
Fix phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansuter committed Nov 2, 2021
1 parent ba35092 commit f4d94ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion phpstan.neon.dist
@@ -1,6 +1,9 @@
parameters:
level: max
ignoreErrors:
- message: '/Parameter \#3 \$microseconds of function stream_set_timeout expects int, int\|null given./'
- message: '/Parameter \#3 \$microseconds of function stream_set_timeout expects int, int\|null given/'
path: src/FileStreamWrapper.php
count: 1
- message: '/Parameter \#2 \$size of function ftruncate expects int\<0, max\>, int given/'
path: src/FileStreamWrapper.php
count: 1
3 changes: 2 additions & 1 deletion src/FileStreamWrapper.php
Expand Up @@ -416,7 +416,8 @@ public function stream_open(string $path, string $mode, int $options, ?string &$
/**
* Read from stream.
*
* @param int $count
* @param int $count
* @psalm-param positive-int $count
*
* @return string
* @noinspection PhpUnused
Expand Down

0 comments on commit f4d94ce

Please sign in to comment.