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

Change \Exception to \Throwable #19192

Merged
merged 5 commits into from
Jan 26, 2022

Conversation

Dmitrijlin
Copy link
Contributor

@Dmitrijlin Dmitrijlin commented Jan 25, 2022

Q A
Is bugfix? ✔️
New feature?
Breaks BC? ✔️
Fixed issues #19191
I've added Throwable interface to parameters in BadRequestHttpException and HttpException. There are problem with version of PHP. Throwable was added at PHP 7.0, so for that pull request required minimum version of PHP is 7.0

@bizley
Copy link
Member

bizley commented Jan 25, 2022

No, it's not that easy. We must ensure compatibility with PHP 5.4.

@Dmitrijlin
Copy link
Contributor Author

So, how to fix that problem on PHP >= 7.0?

framework/web/BadRequestHttpException.php Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
framework/web/HttpException.php Outdated Show resolved Hide resolved
Dmitrijlin and others added 3 commits January 25, 2022 13:49
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
@samdark samdark added this to the 2.0.45 milestone Jan 25, 2022
@samdark samdark added the type:bug Bug label Jan 25, 2022
Copy link
Member

@samdark samdark left a comment

Choose a reason for hiding this comment

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

Looks 👍 Please add a line for CHANGELOG. Thanks.

@samdark samdark merged commit 0eaa71d into yiisoft:master Jan 26, 2022
@samdark
Copy link
Member

samdark commented Jan 26, 2022

Thanks.

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.

None yet

3 participants