Skip to content

Commit

Permalink
Merge pull request #1 from rodolfoberrios/master
Browse files Browse the repository at this point in the history
Deprecated ArrayHelper, fixed getters
  • Loading branch information
robregonm authored Mar 29, 2019
2 parents 247fec9 + 3585940 commit 57d3c3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\Cache\CacheManager;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use yii\helpers\ArrayHelper;

class Client
{
Expand Down Expand Up @@ -542,8 +541,8 @@ protected function getFileIdFromBucketAndFileName($bucketName, $fileName)
]);

foreach ($files as $file) {
if ($file->getName() === $fileName) {
return $file->getId();
if ($file->getFileName() === $fileName) {
return $file->getFileId();
}
}

Expand Down Expand Up @@ -758,7 +757,7 @@ protected function request($method, $uri = null, array $options = [], $asJson =
$headers['Authorization'] = $this->authToken;
}

$options = ArrayHelper::merge([
$options = array_replace_recursive([
'headers' => $headers,
], $options);

Expand Down

0 comments on commit 57d3c3d

Please sign in to comment.