Skip to content

Commit f970b62

Browse files
committed
revert change
1 parent 53a87a9 commit f970b62

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function (&$parent) use ($config) {
328328
* @param array $config
329329
* @return \League\Flysystem\FilesystemOperator
330330
*/
331-
protected function createFlysystem(FlysystemAdapter &$adapter, array $config)
331+
protected function createFlysystem(FlysystemAdapter $adapter, array $config)
332332
{
333333
if ($config['read-only'] ?? false) {
334334
$adapter = new ReadOnlyFilesystemAdapter($adapter);

tests/Filesystem/FilesystemManagerTest.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -217,27 +217,27 @@ public function testCanBuildInlineScopedDisks()
217217
}
218218
}
219219

220-
public function testKeepTrackOfAdapterDecoration()
221-
{
222-
try {
223-
$filesystem = new FilesystemManager(tap(new Application, function ($app) {
224-
$app['config'] = [
225-
'filesystems.disks.local' => [
226-
'driver' => 'local',
227-
'root' => 'to-be-scoped',
228-
],
229-
];
230-
}));
231-
232-
$scoped = $filesystem->build([
233-
'driver' => 'scoped',
234-
'disk' => 'local',
235-
'prefix' => 'path-prefix',
236-
]);
237-
238-
$this->assertInstanceOf(PathPrefixedAdapter::class, $scoped->getAdapter());
239-
} finally {
240-
rmdir(__DIR__.'/../../to-be-scoped');
241-
}
242-
}
220+
// public function testKeepTrackOfAdapterDecoration()
221+
// {
222+
// try {
223+
// $filesystem = new FilesystemManager(tap(new Application, function ($app) {
224+
// $app['config'] = [
225+
// 'filesystems.disks.local' => [
226+
// 'driver' => 'local',
227+
// 'root' => 'to-be-scoped',
228+
// ],
229+
// ];
230+
// }));
231+
232+
// $scoped = $filesystem->build([
233+
// 'driver' => 'scoped',
234+
// 'disk' => 'local',
235+
// 'prefix' => 'path-prefix',
236+
// ]);
237+
238+
// $this->assertInstanceOf(PathPrefixedAdapter::class, $scoped->getAdapter());
239+
// } finally {
240+
// rmdir(__DIR__.'/../../to-be-scoped');
241+
// }
242+
// }
243243
}

0 commit comments

Comments
 (0)