Skip to content

Commit 3d44fd8

Browse files
Merge branch '5.4' into 6.0
* 5.4: [DependencyInjection] Add `SubscribedService` attribute, deprecate current `ServiceSubscriberTrait` usage Use try/finally to restore error handlers Allow serializer default context configuration
2 parents 82a21e3 + 0a12248 commit 3d44fd8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Tests/OptionsResolverTest.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,13 @@ public function testDeprecationMessages(\Closure $configureOptions, array $optio
524524
});
525525
$e = error_reporting(0);
526526

527-
$configureOptions($this->resolver);
528-
$this->resolver->resolve($options);
529-
530-
error_reporting($e);
531-
restore_error_handler();
527+
try {
528+
$configureOptions($this->resolver);
529+
$this->resolver->resolve($options);
530+
} finally {
531+
error_reporting($e);
532+
restore_error_handler();
533+
}
532534

533535
$lastError = error_get_last();
534536
unset($lastError['file'], $lastError['line']);

0 commit comments

Comments
 (0)