Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from wakeapp/HUB-366
Browse files Browse the repository at this point in the history
[HUB-366] added support of symfony/option-resolver with version >= 5.0
  • Loading branch information
kryakozyablik committed Sep 4, 2020
2 parents fd1c742 + 1ef0e51 commit 0812788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.4.8] - 2020-09-04
### Fixed
- Added support of `symfony/option-resolver` with version `>=5.0`

## [0.4.7] - 2020-09-04
### Patch
- Added Symfony 5 support
Expand Down
4 changes: 2 additions & 2 deletions Resolver/SwaggerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function clear(): self
/**
* {@inheritdoc}
*/
public function offsetGet($option)
public function offsetGet($option, bool $triggerDeprecation = true)
{
$resolvedValue = parent::offsetGet($option);
$resolvedValue = parent::offsetGet($option, $triggerDeprecation);
$property = $this->schema->getProperties()->get($option);

foreach ($this->validators as $validator) {
Expand Down

0 comments on commit 0812788

Please sign in to comment.