Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Notifier] Update FirebaseTransport.php#43073

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:5.3fromdima-gr:5.4
Sep 19, 2021
Merged

Conversation

@dima-gr
Copy link
Contributor

prevent setting null value from firebase response, previous pull request -#43040

QA
Branch?5.4 for features / 4.4 or 5.3 for bug fixes
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix #...
LicenseMIT
Doc PRsymfony/symfony-docs#...

@carsonbotcarsonbot changed the titleUpdate FirebaseTransport.php[Notifier] Update FirebaseTransport.phpSep 17, 2021

$sentMessage =newSentMessage($message, (string)$this);
$sentMessage->setMessageId($success['results'][0]['message_id']);
$sentMessage->setMessageId($success['results'][0]['message_id'] ??'');
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's wrap this in an if Statement and do not call the setMessageId method

@OskarStarkOskarStark added this to the5.3 milestoneSep 17, 2021
@fabpot
Copy link
Member

Thank you@dima-gr.

@fabpotfabpot merged commit99be574 intosymfony:5.3Sep 19, 2021
@OskarStark
Copy link
Contributor

Now one need to check for null and empty string.

I am still in favor of not calling the method to only return a string when it is a valid message id.

WDYT@fabpot

@fabpotfabpot mentioned this pull requestSep 28, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@fabpotfabpotfabpot approved these changes

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@jderussejderusseAwaiting requested review from jderusse

@lyrixxlyrixxAwaiting requested review from lyrixx

@srozesrozeAwaiting requested review from sroze

@wouterjwouterjAwaiting requested review from wouterj

@xabbuhxabbuhAwaiting requested review from xabbuh

@ycerutoycerutoAwaiting requested review from yceruto

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

5 participants

@dima-gr@fabpot@OskarStark@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp