mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #13 from apeschar/console-error-suppression
Fix error suppression (`@` operator) in console
This commit is contained in:
commit
ead607a92d
2 changed files with 5 additions and 1 deletions
|
@ -55,6 +55,10 @@ It means that composer will look at `master` branch of repository configured und
|
|||
|
||||
## Changelog
|
||||
|
||||
### 2022-03-02
|
||||
|
||||
- Fixed `ConsoleErrorHandler::handleError` to respect error suppression.
|
||||
|
||||
### 2022-01-31
|
||||
|
||||
- Fixed `Folder->read`, `array_values` is used to remove keys to prevent usign named arguments in `call_user_func_array`
|
||||
|
|
|
@ -75,7 +75,7 @@ class ConsoleErrorHandler {
|
|||
* @return void
|
||||
*/
|
||||
public function handleError($code, $description, $file = null, $line = null, $context = null) {
|
||||
if (error_reporting() === 0) {
|
||||
if (!(error_reporting() & $code)) {
|
||||
return;
|
||||
}
|
||||
$stderr = static::getStderr();
|
||||
|
|
Loading…
Reference in a new issue