Skip to content

Commit 127302c

Browse files
committed
Suppress unlink
1 parent d45f94f commit 127302c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Context/FeatureContext.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,10 @@ public static function remove_dir( $dir ): void {
14471447
if ( $file->isDir() ) {
14481448
rmdir( $file->getPathname() );
14491449
} else {
1450-
unlink( $file->getPathname() );
1450+
# Suppress warnings for instance when deleting SQLite database files,
1451+
# which appears to emit a warning on Windows.
1452+
# See https://bugs.php.net/bug.php?id=78930.
1453+
@unlink( $file->getPathname() );
14511454
}
14521455
}
14531456

0 commit comments

Comments
 (0)