@@ -352,14 +352,14 @@ public function stream_open(string $path, string $mode, int $options, ?string &$
352352
353353 self ::unregister ();
354354
355- $ exists = (bool ) self ::silent (static fn () => file_exists ($ path ));
356- $ resolvedPath = $ exists ? self ::silent (static fn () => realpath ($ path )) : false ;
355+ $ exists = (bool ) self ::silent (static fn () => file_exists ($ path ));
356+ $ resolvedPath = $ exists ? self ::silent (static fn () => realpath ($ path )) : false ;
357357
358358 if (! $ exists || $ resolvedPath === false || ! self ::isApplicationFile ($ path , $ resolvedPath )) {
359359 $ target = ($ resolvedPath !== false ) ? $ resolvedPath : $ path ;
360360 /** @var resource|false $handle */
361361 $ handle = self ::silent (
362- fn () => ($ this ->context !== null )
362+ fn () => ($ this ->context !== null )
363363 ? fopen ($ target , $ mode , false , $ this ->context )
364364 : fopen ($ target , $ mode )
365365 );
@@ -403,7 +403,7 @@ private function openDirectHandle(string $targetFile, string $mode, int $options
403403 self ::unregister ();
404404 /** @var resource|false $handle */
405405 $ handle = self ::silent (
406- fn () => ($ this ->context !== null )
406+ fn () => ($ this ->context !== null )
407407 ? fopen ($ targetFile , $ mode , $ useIncludePath , $ this ->context )
408408 : fopen ($ targetFile , $ mode , $ useIncludePath )
409409 );
@@ -561,7 +561,7 @@ public function url_stat(string $path, int $flags): array|false
561561
562562 self ::unregister ();
563563 /** @var array<int|string, int>|false $result */
564- $ result = self ::silent (static fn () => $ isLink ? @lstat ($ path ) : @stat ($ path ));
564+ $ result = self ::silent (static fn () => $ isLink ? @lstat ($ path ) : @stat ($ path ));
565565 self ::register ();
566566
567567 if ($ result !== false ) {
@@ -598,11 +598,11 @@ public function stream_metadata(string $path, int $option, mixed $value): bool
598598 $ valueArray = \is_array ($ value ) ? $ value : [];
599599 $ time = $ valueArray [0 ] ?? time ();
600600 $ atime = $ valueArray [1 ] ?? $ time ;
601- $ result = (bool ) self ::silent (fn () => @touch ($ path , (int ) $ time , (int ) $ atime ));
601+ $ result = (bool ) self ::silent (fn () => @touch ($ path , (int ) $ time , (int ) $ atime ));
602602 } elseif ($ option === STREAM_META_ACCESS ) {
603603 /** @var int $mode */
604604 $ mode = \is_int ($ value ) ? $ value : 0777 ;
605- $ result = (bool ) self ::silent (fn () => @chmod ($ path , $ mode ));
605+ $ result = (bool ) self ::silent (fn () => @chmod ($ path , $ mode ));
606606 }
607607 self ::register ();
608608
@@ -614,7 +614,7 @@ public function dir_opendir(string $path, int $options): bool
614614 self ::unregister ();
615615 /** @var resource|false $dh */
616616 $ dh = self ::silent (
617- fn () => ($ this ->context !== null )
617+ fn () => ($ this ->context !== null )
618618 ? @opendir ($ path , $ this ->context )
619619 : @opendir ($ path )
620620 );
@@ -741,7 +741,7 @@ public function rename(string $pathFrom, string $pathTo): bool
741741 */
742742 private static function silent (callable $ callback ): mixed
743743 {
744- set_error_handler (static fn () => true );
744+ set_error_handler (static fn () => true );
745745
746746 try {
747747 return $ callback ();
0 commit comments