Skip to content

Commit

Permalink
Add php 8.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophia Fuhrmann committed Dec 1, 2023
1 parent 6590603 commit c9f194c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Classes/Bucket/Operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public function copyFromTo($fileIdentifier, $targetFileName)
$this->bucketCache->clear();
}

return $this->bucket->object($fileIdentifier)->copy($this->bucket->name(), ['name' => $targetFileName]);
$fileIdentifier = ltrim($fileIdentifier, '/');
$file = $this->bucket->object($fileIdentifier);
$bucketName = $this->bucket->name();
return $file->copy($bucketName, ['name' => $targetFileName]);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
],
"type": "typo3-cms-extension",
"require": {
"php": ">=7.1 <8.1",
"php": ">=7.1 <8.3",
"typo3/cms-core": ">=10.4 <11.9.99",
"google/cloud-storage": ">=v1.23 <1.27"
"google/cloud-storage": ">=v1.30 <1.31"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'title' => 'Google Cloud Storage FAL Driver',
'description' => 'Google Cloud Storage FAL driver for TYPO3. Files can be stored in the GCS buckets.',
'category' => 'be',
'version' => '1.0.17',
'version' => '1.0.18',
'state' => 'stable',
'clearcacheonload' => 1,
'author' => 'Pierre Geyer',
Expand Down

0 comments on commit c9f194c

Please sign in to comment.