Skip to content

Commit

Permalink
Fix Deprecation for issue #54
Browse files Browse the repository at this point in the history
Setting a default value for cdnPrefix to resolve php 8.1 deprecations.
  • Loading branch information
obj63mc authored Sep 20, 2022
1 parent 1d9bbd0 commit abc1045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/PublicCDNAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PublicCDNAdapter extends PublicAdapter implements SilverstripePublicAdapte
{
protected $cdnPrefix;

public function __construct(S3Client $client, $bucket, $prefix = '', $cdnPrefix, array $options = [])
public function __construct(S3Client $client, $bucket, $prefix = '', $cdnPrefix = '', array $options = [])
{
$this->cdnPrefix = $cdnPrefix;
parent::__construct($client, $bucket, $prefix, $options);
Expand Down

0 comments on commit abc1045

Please sign in to comment.