Skip to content

Commit

Permalink
Merge pull request #89 from jvdhehvg/fix-subscriber-priotity
Browse files Browse the repository at this point in the history
Fixed JsonRequestBodyDeserializationSubscriber priority in combination with the RequestValidationSubscriber
  • Loading branch information
niels-nijens authored Mar 27, 2024
2 parents 2faf0f2 + 7ad4357 commit d4745f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function getSubscribedEvents(): array
{
return [
KernelEvents::REQUEST => [
['deserializeRequestBody', 27],
['deserializeRequestBody', 6],
],
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testCanGetSubscribedEvents(): void
static::assertSame(
[
KernelEvents::REQUEST => [
['deserializeRequestBody', 27],
['deserializeRequestBody', 6],
],
],
$subscribedEvents
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/DeserializationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DeserializationTest extends WebTestCase

protected function setUp(): void
{
$this->client = static::createClient();
$this->client = static::createClient(['environment' => 'exception_handling_and_validation']);
}

public function testCanDeserializeRequestBodyIntoObject(): void
Expand Down

0 comments on commit d4745f9

Please sign in to comment.