We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 127302c commit 43fdb0eCopy full SHA for 43fdb0e
src/Context/FeatureContext.php
@@ -1444,12 +1444,12 @@ public static function remove_dir( $dir ): void {
1444
* @var \SplFileInfo $file
1445
*/
1446
foreach ( $iterator as $file ) {
1447
+ # Suppress warnings for instance when deleting SQLite database files,
1448
+ # which appears to emit a warning on Windows.
1449
+ # See https://bugs.php.net/bug.php?id=78930.
1450
if ( $file->isDir() ) {
- rmdir( $file->getPathname() );
1451
+ @rmdir( $file->getPathname() );
1452
} else {
- # Suppress warnings for instance when deleting SQLite database files,
- # which appears to emit a warning on Windows.
- # See https://bugs.php.net/bug.php?id=78930.
1453
@unlink( $file->getPathname() );
1454
}
1455
0 commit comments