Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't hard error when trying to load profiles with no profiler registered #33292

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

icewind1991
Copy link
Member

instead just return empty results

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Jul 20, 2022
@icewind1991 icewind1991 added this to the Nextcloud 25 milestone Jul 20, 2022
@icewind1991 icewind1991 requested a review from a team July 20, 2022 13:50
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81
Copy link
Member

@icewind1991 please always make sure to have 4-5 reviewers lined up to increase the probability

This was referenced Aug 12, 2022
This was referenced Aug 24, 2022
This was referenced Sep 6, 2022
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@icewind1991 icewind1991 requested review from a team, blizzz and juliushaertl and removed request for a team October 17, 2022 16:18
@blizzz blizzz mentioned this pull request Feb 1, 2023
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@blizzz blizzz mentioned this pull request Mar 7, 2023
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
…ered

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 requested a review from come-nc April 5, 2023 12:50
Comment on lines +64 to +68
if ($this->storage) {
return $this->storage->read($token);
} else {
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ($this->storage) {
return $this->storage->read($token);
} else {
return null;
}
return $this->storage?->read($token);

For the record, you can use the nullsafe operator in PHP 8 for this.

@icewind1991 icewind1991 merged commit 63fc83d into master Apr 5, 2023
@icewind1991 icewind1991 deleted the no-profiler branch April 5, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants