Skip to content

Commit 0cd9699

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages fixed some deprecation messages [2.7][DX] Use constant message contextualisation for deprecations
2 parents e406301 + 23e3443 commit 0cd9699

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Mapping/Factory/ClassMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(LoaderInterface $loader, Cache $cache = null)
3535
$this->cache = $cache;
3636

3737
if (null !== $cache) {
38-
@trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated since version 3.1. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED);
38+
@trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated since Symfony 3.1. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED);
3939
}
4040
}
4141

Normalizer/AbstractNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ protected function instantiateObject(array &$data, $class, array &$context, \Ref
315315
if (__CLASS__ !== get_class($this)) {
316316
$r = new \ReflectionMethod($this, __FUNCTION__);
317317
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
318-
@trigger_error(sprintf('Method %s::%s() will have a 6th `string $format = null` argument in version 4.0. Not defining it is deprecated since 3.2.', get_class($this), __FUNCTION__), E_USER_DEPRECATED);
318+
@trigger_error(sprintf('Method %s::%s() will have a 6th `string $format = null` argument in version 4.0. Not defining it is deprecated since Symfony 3.2.', get_class($this), __FUNCTION__), E_USER_DEPRECATED);
319319
}
320320
}
321321

Serializer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function supportsNormalization($data, $format = null/*, array $context =
196196
if (__CLASS__ !== get_class($this)) {
197197
$r = new \ReflectionMethod($this, __FUNCTION__);
198198
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
199-
@trigger_error(sprintf('Method %s() will have a third `$context = array()` argument in version 4.0. Not defining it is deprecated since 3.3.', __METHOD__), E_USER_DEPRECATED);
199+
@trigger_error(sprintf('Method %s() will have a third `$context = array()` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
200200
}
201201
}
202202

@@ -217,7 +217,7 @@ public function supportsDenormalization($data, $type, $format = null/*, array $c
217217
if (__CLASS__ !== get_class($this)) {
218218
$r = new \ReflectionMethod($this, __FUNCTION__);
219219
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
220-
@trigger_error(sprintf('Method %s() will have a fourth `$context = array()` argument in version 4.0. Not defining it is deprecated since 3.3.', __METHOD__), E_USER_DEPRECATED);
220+
@trigger_error(sprintf('Method %s() will have a fourth `$context = array()` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
221221
}
222222
}
223223

@@ -291,7 +291,7 @@ public function supportsEncoding($format/*, array $context = array()*/)
291291
if (__CLASS__ !== get_class($this)) {
292292
$r = new \ReflectionMethod($this, __FUNCTION__);
293293
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
294-
@trigger_error(sprintf('Method %s() will have a second `$context = array()` argument in version 4.0. Not defining it is deprecated since 3.3.', __METHOD__), E_USER_DEPRECATED);
294+
@trigger_error(sprintf('Method %s() will have a second `$context = array()` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
295295
}
296296
}
297297

@@ -312,7 +312,7 @@ public function supportsDecoding($format/*, array $context = array()*/)
312312
if (__CLASS__ !== get_class($this)) {
313313
$r = new \ReflectionMethod($this, __FUNCTION__);
314314
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
315-
@trigger_error(sprintf('Method %s() will have a second `$context = array()` argument in version 4.0. Not defining it is deprecated since 3.3.', __METHOD__), E_USER_DEPRECATED);
315+
@trigger_error(sprintf('Method %s() will have a second `$context = array()` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
316316
}
317317
}
318318

0 commit comments

Comments
 (0)