Skip to content

Commit 42f18f1

Browse files
committed
relax format assertions for fstat() results on Windows
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.
1 parent 47af4ea commit 42f18f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Caster/SplCasterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testCastFileObject()
104104
flags: DROP_NEW_LINE|SKIP_EMPTY
105105
maxLineLen: 0
106106
fstat: array:26 [
107-
"dev" => %d
107+
"dev" => %i
108108
"ino" => %i
109109
"nlink" => %d
110110
"rdev" => 0

0 commit comments

Comments
 (0)