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

Move HintException to OCP #26681

Merged
merged 1 commit into from
Jul 1, 2021
Merged

Move HintException to OCP #26681

merged 1 commit into from
Jul 1, 2021

Conversation

juliushaertl
Copy link
Member

There are plenty of exceptions in OCP that are extending from it and it is also used by some apps:

image

Makes psalm more happy when running with only the public namespace

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Looks good to me then.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

🚀

@MorrisJobke
Copy link
Member

Please squash and rebase :)

index.php Outdated Show resolved Hide resolved
* @param \Exception|null $previous
* @since 22.0.0
*/
public function __construct($message, $hint = '', $code = 0, \Exception $previous = null) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function __construct($message, $hint = '', $code = 0, \Exception $previous = null) {
public function __construct(string $message, string $hint = '', int $code = 0, ?\Exception $previous = null) {

Can we do this or will it do boom?

Copy link
Member

Choose a reason for hiding this comment

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

Will do boom because of the exceptions that extend it and then they don't match anymore 🙈

@nickvergessen
Copy link
Member

So, I know you just string replaced, but the import order is now not alphabetically anymore, @kesselb will be sad

@MorrisJobke
Copy link
Member

@juliushaertl Mind to fix the comments?

@MorrisJobke MorrisJobke mentioned this pull request May 26, 2021
98 tasks
@blizzz blizzz mentioned this pull request Jun 2, 2021
57 tasks
@blizzz
Copy link
Member

blizzz commented Jun 2, 2021

@juliushaertl Mind to fix the comments?

@juliushaertl

@MorrisJobke MorrisJobke mentioned this pull request Jun 10, 2021
59 tasks
@blizzz blizzz mentioned this pull request Jun 16, 2021
45 tasks
@blizzz
Copy link
Member

blizzz commented Jun 16, 2021

also conflicts. move to 23?

@juliushaertl
Copy link
Member Author

Yes, lets move that.

@gary-kim
Copy link
Member

@juliushaertl Mind if I take over this PR?

@juliushaertl
Copy link
Member Author

@gary-kim Sure, feel free to go ahead with it :)

@gary-kim gary-kim force-pushed the techdebt/hint-exception-ocp branch 5 times, most recently from 4cea5b9 to e7089dd Compare June 29, 2021 23:44
@gary-kim
Copy link
Member

Rebased, reordered the imports, and addressed the comments that I could.

@ChristophWurst

This comment has been minimized.

@gary-kim gary-kim force-pushed the techdebt/hint-exception-ocp branch from e7089dd to 61806dc Compare June 30, 2021 12:25
@gary-kim
Copy link
Member

Rebased

@gary-kim

This comment has been minimized.

@gary-kim gary-kim force-pushed the techdebt/hint-exception-ocp branch from 61806dc to 3302a20 Compare June 30, 2021 16:45
@gary-kim gary-kim force-pushed the techdebt/hint-exception-ocp branch from 3302a20 to b78f3a5 Compare June 30, 2021 19:28
@juliushaertl juliushaertl merged commit 3853307 into master Jul 1, 2021
@juliushaertl juliushaertl deleted the techdebt/hint-exception-ocp branch July 1, 2021 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants