minor #26285 [FrameworkBundle] fix lowest supported Serializer version (xabbuh)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[FrameworkBundle] fix lowest supported Serializer version

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The `AbstractObjectNormalizer::setMaxDepthHandler()` method does not
exist before `symfony/serializer` 4.1.

Commits
-------

3b092a08ea fix lowest supported Serializer version
This commit is contained in:
Tobias Schultze 2018-02-24 03:18:53 +01:00
commit dc56a83e31
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@
"symfony/console": "<3.4",
"symfony/form": "<3.4",
"symfony/property-info": "<3.4",
"symfony/serializer": "<3.4",
"symfony/serializer": "<4.1",
"symfony/stopwatch": "<3.4",
"symfony/translation": "<3.4",
"symfony/validator": "<4.1",

View File

@ -214,7 +214,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
abstract protected function getAttributeValue($object, $attribute, $format = null, array $context = array());
/**
* Sets an handler function that will be called when the max depth is reached.
* Sets a handler function that will be called when the max depth is reached.
*/
public function setMaxDepthHandler(?callable $handler): void
{