@@ -79,7 +79,7 @@ public function drive(?string $name = null): Filesystem
7979 /**
8080 * Get a filesystem instance.
8181 */
82- public function disk (?string $ name = null ): FileSystem
82+ public function disk (?string $ name = null ): Filesystem
8383 {
8484 $ name = $ name ?: $ this ->getDefaultDriver ();
8585
@@ -100,7 +100,7 @@ public function cloud(): Cloud
100100 /**
101101 * Build an on-demand disk.
102102 */
103- public function build (array |string $ config ): FileSystem
103+ public function build (array |string $ config ): Filesystem
104104 {
105105 return $ this ->resolve ('ondemand ' , is_array ($ config ) ? $ config : [
106106 'driver ' => 'local ' ,
@@ -111,7 +111,7 @@ public function build(array|string $config): FileSystem
111111 /**
112112 * Attempt to get the disk from the local cache.
113113 */
114- protected function get (string $ name ): FileSystem
114+ protected function get (string $ name ): Filesystem
115115 {
116116 return $ this ->disks [$ name ] ?? $ this ->resolve ($ name );
117117 }
@@ -121,7 +121,7 @@ protected function get(string $name): FileSystem
121121 *
122122 * @throws InvalidArgumentException
123123 */
124- protected function resolve (string $ name , ?array $ config = null ): FileSystem
124+ protected function resolve (string $ name , ?array $ config = null ): Filesystem
125125 {
126126 $ config ??= $ this ->getConfig ($ name );
127127
@@ -163,15 +163,15 @@ protected function resolve(string $name, ?array $config = null): FileSystem
163163 /**
164164 * Call a custom driver creator.
165165 */
166- protected function callCustomCreator (array $ config ): FileSystem
166+ protected function callCustomCreator (array $ config ): Filesystem
167167 {
168168 return $ this ->customCreators [$ config ['driver ' ]]($ this ->app , $ config );
169169 }
170170
171171 /**
172172 * Create an instance of the local driver.
173173 */
174- public function createLocalDriver (array $ config , string $ name = 'local ' ): FileSystem
174+ public function createLocalDriver (array $ config , string $ name = 'local ' ): Filesystem
175175 {
176176 $ visibility = PortableVisibilityConverter::fromArray (
177177 $ config ['permissions ' ] ?? [],
@@ -204,7 +204,7 @@ public function createLocalDriver(array $config, string $name = 'local'): FileSy
204204 /**
205205 * Create an instance of the ftp driver.
206206 */
207- public function createFtpDriver (array $ config ): FileSystem
207+ public function createFtpDriver (array $ config ): Filesystem
208208 {
209209 if (! isset ($ config ['root ' ])) {
210210 $ config ['root ' ] = '' ;
@@ -219,7 +219,7 @@ public function createFtpDriver(array $config): FileSystem
219219 /**
220220 * Create an instance of the sftp driver.
221221 */
222- public function createSftpDriver (array $ config ): FileSystem
222+ public function createSftpDriver (array $ config ): Filesystem
223223 {
224224 /* @phpstan-ignore-next-line */
225225 $ provider = SftpConnectionProvider::fromArray ($ config );
@@ -353,7 +353,7 @@ protected function createGcsClient(array $config): GcsClient
353353 /**
354354 * Create a scoped driver.
355355 */
356- public function createScopedDriver (array $ config ): FileSystem
356+ public function createScopedDriver (array $ config ): Filesystem
357357 {
358358 if (empty ($ config ['disk ' ])) {
359359 throw new InvalidArgumentException ('Scoped disk is missing "disk" configuration option. ' );
0 commit comments