-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug: errorHandler removes Faker's deprecated errors #6764
Comments
Hmm. How do you want to approach this? Always throw even if the error is silenced? Or instead log if silenced? Or else? |
To note, in 4.3, these deprecations are loggable now. > git diff
diff --git a/app/Config/Exceptions.php b/app/Config/Exceptions.php
index ca0713a33..3e5beffc2 100644
--- a/app/Config/Exceptions.php
+++ b/app/Config/Exceptions.php
@@ -60,7 +60,7 @@ class Exceptions extends BaseConfig
* Use this option to temporarily cease the warnings and instead log those.
* This option also works for user deprecations.
*/
- public bool $logDeprecationsOnly = false;
+ public bool $logDeprecationsOnly = true;
/**
* --------------------------------------------------------------------------
@@ -73,5 +73,5 @@ class Exceptions extends BaseConfig
* The related `Config\Logger::$threshold` should be adjusted, if needed,
* to capture logging the deprecations.
*/
- public string $deprecationLogLevel = LogLevel::WARNING;
+ public string $deprecationLogLevel = LogLevel::ERROR;
} In the logs:
|
Since Other deprecated errors will cause the test to fail, and shouldn't the test fail by default? |
See also: https://github.com/symfony/deprecation-contracts We can declare our own |
I have considered this after the merge of the deprecation logging feature in 4.3. But decided against to because that would entail declaring the framework to $ composer why symfony/deprecation-contracts
fakerphp/faker v1.20.0 requires symfony/deprecation-contracts (^2.2 || ^3.0)
guzzlehttp/guzzle 7.5.0 requires symfony/deprecation-contracts (^2.2 || ^3.0)
symfony/config v6.1.3 requires symfony/deprecation-contracts (^2.1|^3)
symfony/console v6.1.6 requires symfony/deprecation-contracts (^2.1|^3)
symfony/options-resolver v6.1.0 requires symfony/deprecation-contracts (^2.1|^3) |
By "approved workaround" I mean it is what Symfony recommends on their own package. I wouldn't consider that a conflict so much as CodeIgniter replacing a library deprecation handler with its own. |
From #6758 (comment)
What happened?
Anything else?
The value of
error_reporting()
will change in error handler when using@
.See
The text was updated successfully, but these errors were encountered: