[OptionsResolver] Assert that the error type is valid in deprecations test

This commit is contained in:
Thomas Calvet 2020-09-24 18:40:22 +02:00
parent caab0f1b4f
commit 926d18f2f9

View File

@ -518,7 +518,9 @@ class OptionsResolverTest extends TestCase
{
$count = 0;
error_clear_last();
set_error_handler(function () use (&$count) {
set_error_handler(function (int $type) use (&$count) {
$this->assertSame(\E_USER_DEPRECATED, $type);
++$count;
return false;