Skip to content

Conversation

@fabpot
Copy link
Member

@fabpot fabpot commented Apr 21, 2020

Q A
Branch? master
Bug fix? yes-ish
New feature? yes-ish
Deprecations? no
Tickets n/a
License MIT
Doc PR n/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).


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 during getOriginalDsn call

Copy link
Member Author

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

@fabpot fabpot mentioned this pull request May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants