[OptionsResolver] Assert that the error type is valid in deprecations test
This commit is contained in:
parent
caab0f1b4f
commit
926d18f2f9
@ -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;
|
||||
|
Reference in New Issue
Block a user