Skip to content

Commit

Permalink
remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Jan 2, 2024
1 parent 3895600 commit 4604673
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ModelDescriber/FormModelDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ public function __construct(
) {
$this->formFactory = $formFactory;
$this->doctrineReader = $reader;

if (null === $mediaTypes) {
$mediaTypes = ['json'];
@trigger_error(sprintf('Not passing media types to the constructor of %s is deprecated since version 4.1 and won\'t be allowed in version 5.', self::class), E_USER_DEPRECATED);
}
$this->mediaTypes = $mediaTypes;
$this->mediaTypes = $mediaTypes ?? ['json'];
$this->useValidationGroups = $useValidationGroups;
}

Expand Down

0 comments on commit 4604673

Please sign in to comment.