Skip to content

Commit

Permalink
Fix phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansuter committed Nov 3, 2024
1 parent f1a5579 commit e9607d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FileStreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ public function stream_metadata(string $path, int $option, $value): bool
switch ($option) {
case STREAM_META_TOUCH:
/** @var array<int|null> $value */
/** @phpstan-ignore-next-line */
if (!isset($value[0]) || is_null($value[0])) {
$r = touch($path);
} else {
Expand Down

0 comments on commit e9607d6

Please sign in to comment.