From 926d18f2f910d37cd47d34b3886399422a93f7b3 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 24 Sep 2020 18:40:22 +0200 Subject: [PATCH] [OptionsResolver] Assert that the error type is valid in deprecations test --- .../Component/OptionsResolver/Tests/OptionsResolverTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php index 7fcfe2e6d9..941cee5fd4 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php @@ -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;