Skip to content

Commit

Permalink
Remove defining transformations in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Sep 5, 2022
1 parent c12ccc4 commit 8ed05f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UploadcareTransformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
class UploadcareTransformation extends Transformations
{
protected string $uuid;
protected array $transformations;
protected array $transformations = [];
protected string $url;
protected string $baseUrl;
protected ?string $filename = null;

public function __construct(string $uuid, string $cdnUrl = 'https://ucarecdn.com/')
{
$this->uuid = $uuid;
$this->transformations = [];
$this->baseUrl = $cdnUrl;
}

Expand Down

0 comments on commit 8ed05f0

Please sign in to comment.