Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Sep 11, 2024

Backport of PR #6345

@backportbot backportbot bot added bug Something isn't working 3. to review labels Sep 11, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.7 milestone Sep 11, 2024
@juliusknorr juliusknorr force-pushed the backport/6345/stable29 branch from 742747b to 6506a80 Compare September 13, 2024 08:14
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs some adjustments

public function __construct(AttachmentService $attachmentService) {
$this->attachmentService = $attachmentService;
public function __construct(
private readonly AttachmentService $attachmentService,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readonly is not available for PHP 8.0

For the event target file, we cannot use `getMimetype()` or
`getExtension()` as it's a node of type `NonExistingFile`.

Fixes: #5736

Signed-off-by: Jonas <[email protected]>
@juliusknorr juliusknorr force-pushed the backport/6345/stable29 branch from 6506a80 to f694878 Compare September 13, 2024 10:28
@juliusknorr juliusknorr merged commit 86a3147 into stable29 Sep 13, 2024
@juliusknorr juliusknorr deleted the backport/6345/stable29 branch September 13, 2024 14:36
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants