Skip to content

Commit

Permalink
Improves deprecation messages (#371)
Browse files Browse the repository at this point in the history
* Improves deprecation messages
* Useless verification removed
  • Loading branch information
Spomky committed Jan 24, 2023
1 parent 2e723b8 commit 753854e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ private function getServerPublicKeyCredentialCreationOptionsRequest(
string $content
): PublicKeyCredentialCreationOptionsRequest {
$data = $this->serializer->deserialize($content, PublicKeyCredentialCreationOptionsRequest::class, 'json');
$data instanceof PublicKeyCredentialCreationOptionsRequest || throw new BadRequestHttpException(
'Invalid data'
);
$errors = $this->validator->validate($data);
if (count($errors) > 0) {
$messages = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ private function getServerPublicKeyCredentialRequestOptionsRequest(
AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT => true,
]
);
$data instanceof ServerPublicKeyCredentialRequestOptionsRequest || throw new BadRequestHttpException(
'Invalid data'
);
$errors = $this->validator->validate($data);
if (count($errors) > 0) {
$messages = [];
Expand Down

0 comments on commit 753854e

Please sign in to comment.