Skip to content

Commit

Permalink
relax format assertions for fstat() results on Windows
Browse files Browse the repository at this point in the history
According to https://www.php.net/manual/en/function.stat.php the serial
number of the volume that contains the file is returned for the "dev" entry
as a 64-bit unsigned integer which may overflow.
  • Loading branch information
xabbuh committed Nov 8, 2024
1 parent 47af4ea commit 42f18f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Caster/SplCasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function testCastFileObject()
flags: DROP_NEW_LINE|SKIP_EMPTY
maxLineLen: 0
fstat: array:26 [
"dev" => %d
"dev" => %i
"ino" => %i
"nlink" => %d
"rdev" => 0
Expand Down

0 comments on commit 42f18f1

Please sign in to comment.