File tree 3 files changed +13
-5
lines changed
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ safe_array = true
3
3
safe_vector_array = true
4
4
unsafe_rx = false
5
5
ignored_paths = [ "vendor/.+/tests/.+", "vendor/.+/bin/.+" ]
6
+ disallow_silence = true
6
7
const_default_func_args = true
Original file line number Diff line number Diff line change @@ -387,7 +387,9 @@ final class File extends Node {
387
387
);
388
388
}
389
389
390
- @\symlink ($this -> path -> toString(), $target -> toString());
390
+ $error_level = \error_reporting (0 );
391
+ \symlink ($this -> path -> toString(), $target -> toString());
392
+ \error_reporting ($error_level );
391
393
if (! $target -> exists() || ! $target -> isSymlink()) {
392
394
throw new Exception \RuntimeException (Str \format (
393
395
' Error while creating a symbolic link (%s) for file (%s).' ,
@@ -411,7 +413,9 @@ final class File extends Node {
411
413
);
412
414
}
413
415
414
- @\link ($this -> path -> toString(), $link -> toString());
416
+ $error_level = \error_reporting (0 );
417
+ \link ($this -> path -> toString(), $link -> toString());
418
+ \error_reporting ($error_level );
415
419
if (! $link -> exists()) {
416
420
throw new Exception \RuntimeException (Str \format (
417
421
' Error while creating a hard link (%s) for file (%s).' ,
Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ final class Folder extends Node {
100
100
Str \format (' Folder (%s) already exists.' , $this -> path -> toString()),
101
101
);
102
102
}
103
-
104
- $ret = @\mkdir ($this -> path -> toString(), $mode , true ) as bool ;
103
+ $error_level = \error_reporting (0 );
104
+ $ret = \mkdir ($this -> path -> toString(), $mode , true ) as bool ;
105
+ \error_reporting ($error_level );
105
106
$this -> reset();
106
107
return $ret ;
107
108
}
@@ -188,7 +189,9 @@ final class Folder extends Node {
188
189
$this -> isAvailable();
189
190
await $this -> flush();
190
191
$this -> reset();
191
- $deleted = @\rmdir ($this -> path -> toString()) as bool ;
192
+ $error_level = \error_reporting (0 );
193
+ $deleted = \rmdir ($this -> path -> toString()) as bool ;
194
+ \error_reporting ($error_level );
192
195
$this -> reset();
193
196
return $deleted ;
194
197
}
You can’t perform that action at this time.
0 commit comments