Skip to content

Commit 02b120a

Browse files
committed
[OptionsResolver] Assert that the error type is valid in deprecations test
1 parent dd05a18 commit 02b120a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/OptionsResolverTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,9 @@ public function testDeprecationMessages(\Closure $configureOptions, array $optio
518518
{
519519
$count = 0;
520520
error_clear_last();
521-
set_error_handler(function () use (&$count) {
521+
set_error_handler(function (int $type) use (&$count) {
522+
$this->assertSame(\E_USER_DEPRECATED, $type);
523+
522524
++$count;
523525

524526
return false;

0 commit comments

Comments
 (0)