Skip to content

Conversation

@najdanovicivan
Copy link
Contributor

Description
Currently the framework will always throw critical error on deprecation. This adds option to make deprecations only be logged as warnings.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

*/
public function errorHandler(int $severity, string $message, ?string $file = null, ?int $line = null)
{
if ($this->config->failOnDeprecated !== true && $severity === E_DEPRECATED) {
Copy link
Member

Choose a reason for hiding this comment

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

isset failOnDeprecated property exist should be applied

@paulbalandan
Copy link
Member

@najdanovicivan You didn't see my message on Slack? 😅 I also have a working implementation for this.

@kenjis kenjis added 4.3 enhancement PRs that improve existing functionalities labels Oct 17, 2022
@najdanovicivan
Copy link
Contributor Author

@paulbalandan I see you did much more detailed implementation in #6705. I'm going to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that improve existing functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants