Skip to content

Commit de5f7d3

Browse files
committed
[Serializer] Remove deprecated withDefaultContructorArguments method
1 parent bdd79bd commit de5f7d3

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

UPGRADE-8.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ Security
305305
+}
306306
```
307307

308+
Serializer
309+
----------
310+
311+
* Remove `AbstractNormalizerContextBuilder::withDefaultContructorArguments()`, use `withDefaultConstructorArguments()` instead
312+
308313
TwigBridge
309314
----------
310315

src/Symfony/Component/Serializer/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
8.0
5+
---
6+
7+
* Remove `AbstractNormalizerContextBuilder::withDefaultContructorArguments()`, use `withDefaultConstructorArguments()` instead
8+
49
7.3
510
---
611

src/Symfony/Component/Serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,6 @@ public function withAllowExtraAttributes(?bool $allowExtraAttributes): static
103103
return $this->with(AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES, $allowExtraAttributes);
104104
}
105105

106-
/**
107-
* @deprecated since Symfony 7.1, use withDefaultConstructorArguments(?array $defaultConstructorArguments)" instead
108-
*
109-
* @param array<class-string, array<string, mixed>>|null $defaultContructorArguments
110-
*/
111-
public function withDefaultContructorArguments(?array $defaultContructorArguments): static
112-
{
113-
trigger_deprecation('symfony/serializer', '7.1', 'The "%s()" method is deprecated, use "withDefaultConstructorArguments(?array $defaultConstructorArguments)" instead.', __METHOD__);
114-
115-
return self::withDefaultConstructorArguments($defaultContructorArguments);
116-
}
117-
118106
/**
119107
* Configures a hashmap of classes containing hashmaps of constructor argument => default value.
120108
*

0 commit comments

Comments
 (0)