Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"test": "./vendor/bin/phpunit"
},
"require": {
"illuminate/http": "5.1 - 5.8",
"illuminate/console": "5.1 - 5.8",
"illuminate/support": "5.1 - 5.8",
"illuminate/filesystem": "5.1 - 5.8"
"illuminate/http": "5.1 - 5.8|^6.0",
"illuminate/console": "5.1 - 5.8|^6.0",
"illuminate/support": "5.1 - 5.8|^6.0",
"illuminate/filesystem": "5.1 - 5.8|^6.0"
},
"require-dev": {
"laravel/laravel": "5.1 - 5.8",
"laravel/laravel": "5.1 - 5.8|^6.0",
"phpunit/phpunit": "5.7 || 6.0 || 7.0 || 7.5",
"mockery/mockery": "^1.1.0",
"friendsofphp/php-cs-fixer": "^2.12",
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/ChunkUploadServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function register()
$request = $app->make('request');

// Get the first file object - must be converted instances of UploadedFile
$file = array_first($request->allFiles());
$file = Arr::first($request->allFiles());

// Build the file receiver
return new FileReceiver($file, $request, HandlerFactory::classFromRequest($request));
Expand Down
3 changes: 2 additions & 1 deletion src/Save/ParallelSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Pion\Laravel\ChunkUpload\Save;

use Illuminate\Http\UploadedFile;
use Illuminate\Support\Str;
use Pion\Laravel\ChunkUpload\Config\AbstractConfig;
use Pion\Laravel\ChunkUpload\Exceptions\ChunkSaveException;
use Pion\Laravel\ChunkUpload\Exceptions\MissingChunkFilesException;
Expand Down Expand Up @@ -87,7 +88,7 @@ protected function getSavedChunksFiles()
);

return $this->chunkStorage->files(function ($file) use ($chunkFileName) {
return false === str_contains($file, $chunkFileName);
return false === Str::contains($file, $chunkFileName);
});
}

Expand Down