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] Throw an exception when the Slack DSN is not valid#36516

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:masterfromfabpot:notifier-slack-dsn
Apr 21, 2020

Conversation

fabpot
Copy link
Member

QA
Branch?master
Bug fix?yes-ish
New feature?yes-ish
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/a

Improved errors in case of a DSN issue.

  • proper error for the Slack DSN when path is empty (will help catch when people haven't updated their Slack DSN for 5.1).

@@ -59,7 +60,10 @@ public static function fromString(string $dsn): self
$path = $parsedDsn['path'] ?? null;
parse_str($parsedDsn['query'] ?? '', $query);

return new self($parsedDsn['scheme'], $parsedDsn['host'], $user, $password, $port, $query, $path);
$dsnObject = new self($parsedDsn['scheme'], $parsedDsn['host'], $user, $password, $port, $query, $path);
$dsnObject->dsn = $dsn;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems that this property can be non-initialized in case when Dsn object constructed through standard public constructor. This can lead to errors duringgetOriginalDsn call

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Indeed, can you submit a PR to fix that?

Copy link
Contributor

Choose a reason for hiding this comment

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

of course, will do

@fabpotfabpot mentioned this pull requestMay 5, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@KocKocKoc left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@fabpot@Koc@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp