@@ -219,14 +219,14 @@ public function stream_open(string $path, string $mode, int $options, ?string &$
219219
220220 self ::unregister ();
221221
222- $ exists = (bool ) self ::silent (fn () => file_exists ($ path ));
223- $ resolvedPath = $ exists ? self ::silent (fn () => realpath ($ path )) : false ;
222+ $ exists = (bool ) self ::silent (fn () => file_exists ($ path ));
223+ $ resolvedPath = $ exists ? self ::silent (fn () => realpath ($ path )) : false ;
224224
225225 if (! $ exists || $ resolvedPath === false || ! self ::isApplicationFile ($ path , $ resolvedPath )) {
226226 $ target = ($ resolvedPath !== false ) ? $ resolvedPath : $ path ;
227227 /** @var resource|false $handle */
228228 $ handle = self ::silent (
229- fn () => ($ this ->context !== null )
229+ fn () => ($ this ->context !== null )
230230 ? fopen ($ target , $ mode , false , $ this ->context )
231231 : fopen ($ target , $ mode )
232232 );
@@ -270,7 +270,7 @@ private function openDirectHandle(string $targetFile, string $mode, int $options
270270 self ::unregister ();
271271 /** @var resource|false $handle */
272272 $ handle = self ::silent (
273- fn () => ($ this ->context !== null )
273+ fn () => ($ this ->context !== null )
274274 ? fopen ($ targetFile , $ mode , $ useIncludePath , $ this ->context )
275275 : fopen ($ targetFile , $ mode , $ useIncludePath )
276276 );
@@ -425,7 +425,7 @@ public function url_stat(string $path, int $flags): array|false
425425
426426 self ::unregister ();
427427 /** @var array<int|string, int>|false $result */
428- $ result = self ::silent (fn () => $ isLink ? @lstat ($ path ) : @stat ($ path ));
428+ $ result = self ::silent (fn () => $ isLink ? @lstat ($ path ) : @stat ($ path ));
429429 self ::register ();
430430
431431 if ($ result !== false ) {
@@ -460,11 +460,11 @@ public function stream_metadata(string $path, int $option, mixed $value): bool
460460 $ valueArray = \is_array ($ value ) ? $ value : [];
461461 $ time = $ valueArray [0 ] ?? time ();
462462 $ atime = $ valueArray [1 ] ?? $ time ;
463- $ result = (bool ) self ::silent (fn () => @touch ($ path , (int ) $ time , (int ) $ atime ));
463+ $ result = (bool ) self ::silent (fn () => @touch ($ path , (int ) $ time , (int ) $ atime ));
464464 } elseif ($ option === STREAM_META_ACCESS ) {
465465 /** @var int $mode */
466466 $ mode = \is_int ($ value ) ? $ value : 0777 ;
467- $ result = (bool ) self ::silent (fn () => @chmod ($ path , $ mode ));
467+ $ result = (bool ) self ::silent (fn () => @chmod ($ path , $ mode ));
468468 }
469469 self ::register ();
470470
@@ -476,7 +476,7 @@ public function dir_opendir(string $path, int $options): bool
476476 self ::unregister ();
477477 /** @var resource|false $dh */
478478 $ dh = self ::silent (
479- fn () => ($ this ->context !== null )
479+ fn () => ($ this ->context !== null )
480480 ? @opendir ($ path , $ this ->context )
481481 : @opendir ($ path )
482482 );
@@ -603,7 +603,7 @@ public function rename(string $pathFrom, string $pathTo): bool
603603 */
604604 private static function silent (callable $ callback ): mixed
605605 {
606- set_error_handler (static fn () => true );
606+ set_error_handler (static fn () => true );
607607
608608 try {
609609 return $ callback ();
0 commit comments