Skip to content
Open
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
4 changes: 2 additions & 2 deletions Classes/S3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public function getStreamByResourcePath($relativePath)
* @param callable|null $callback Function called after each iteration
* @return \Generator<StorageObject>
*/
public function getObjects(callable $callback = null)
public function getObjects(?callable $callback = null)
{
foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) {
yield from $this->getObjectsByCollection($collection, $callback);
Expand All @@ -360,7 +360,7 @@ public function getObjects(callable $callback = null)
* @return \Generator<StorageObject>
* @api
*/
public function getObjectsByCollection(CollectionInterface $collection, callable $callback = null)
public function getObjectsByCollection(CollectionInterface $collection, ?callable $callback = null)
{
$iteration = 0;
$iterator = $this->resourceRepository->findByCollectionNameIterator($collection->getName());
Expand Down
4 changes: 2 additions & 2 deletions Classes/S3Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function getAcl()
* @throws \Neos\Flow\Exception
* @throws \Exception
*/
public function publishCollection(CollectionInterface $collection, callable $callback = null)
public function publishCollection(CollectionInterface $collection, ?callable $callback = null)
{
$storage = $collection->getStorage();

Expand Down Expand Up @@ -307,7 +307,7 @@ public function publishCollection(CollectionInterface $collection, callable $cal
* @param array $potentiallyObsoleteObjects
* @param callable|null $callback
*/
private function publishCollectionFromS3Storage(CollectionInterface $collection, S3Storage $storage, array &$potentiallyObsoleteObjects, callable $callback = null): void
private function publishCollectionFromS3Storage(CollectionInterface $collection, S3Storage $storage, array &$potentiallyObsoleteObjects, ?callable $callback = null): void
{
foreach ($collection->getObjects($callback) as $object) {
/** @var StorageObject $object */
Expand Down