Skip to content

Commit

Permalink
bug #35710 [ErrorHandler] silence warning when zend.assertions=-1 (ni…
Browse files Browse the repository at this point in the history
…colas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] silence warning when zend.assertions=-1

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Reported at symfony/orm-pack@1000287#commitcomment-37276894

Commits
-------

67ef532 [ErrorHandler] silence warning when zend.assertions=-1
  • Loading branch information
fabpot committed Feb 14, 2020
2 parents e87b599 + 67ef532 commit a6773c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/ErrorHandler/Debug.php
Expand Up @@ -29,7 +29,7 @@ public static function enable(): ErrorHandler
ini_set('display_errors', 1);
}

ini_set('zend.assertions', 1);
@ini_set('zend.assertions', 1);
ini_set('assert.active', 1);
ini_set('assert.warning', 0);
ini_set('assert.exception', 1);
Expand Down

0 comments on commit a6773c1

Please sign in to comment.