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] Fix notifier profiler when transport name is null#49326

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
nicolas-grekas merged 1 commit intosymfony:5.4fromfabpot:notifier-profiler-fix
Feb 13, 2023

Conversation

@fabpot
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Ticketsn/a

When the transport name isnull, the profiler is currently broken (JS error).

{
$this->events[] =$event;
$this->transports[$event->getMessage()->getTransport()] =true;
$this->transports[(string)$event->getMessage()->getTransport()] =true;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

null is anyway converted to an empty string by PHP. Let's be explicit here.

$events = [];
foreach ($this->eventsas$event) {
if ($name ===$event->getMessage()->getTransport()) {
if ($name ===(string)$event->getMessage()->getTransport()) {

Choose a reason for hiding this comment

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

not sure about this one: do we support the empty string as transport name?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yes

@nicolas-grekas
Copy link
Member

Thank you@fabpot.

@nicolas-grekasnicolas-grekas merged commit8cf5f02 intosymfony:5.4Feb 13, 2023
This was referencedFeb 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@OskarStarkOskarStarkAwaiting requested review from OskarStarkOskarStark is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp