You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
310
-
@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);
310
+
@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.', static::class, __FUNCTION__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Serializer.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ public function supportsNormalization($data, $format = null/*, array $context =
193
193
if (\func_num_args() > 2) {
194
194
$context = func_get_arg(2);
195
195
} else {
196
-
if (__CLASS__ !== \get_class($this)) {
196
+
if (__CLASS__ !== static::class) {
197
197
$r = new \ReflectionMethod($this, __FUNCTION__);
198
198
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
199
199
@trigger_error(sprintf('The "%s()" method will have a third `$context = []` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
@@ -214,7 +214,7 @@ public function supportsDenormalization($data, $type, $format = null/*, array $c
214
214
if (\func_num_args() > 3) {
215
215
$context = func_get_arg(3);
216
216
} else {
217
-
if (__CLASS__ !== \get_class($this)) {
217
+
if (__CLASS__ !== static::class) {
218
218
$r = new \ReflectionMethod($this, __FUNCTION__);
219
219
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
220
220
@trigger_error(sprintf('The "%s()" method will have a fourth `$context = []` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
@@ -292,7 +292,7 @@ public function supportsEncoding($format/*, array $context = []*/)
292
292
if (\func_num_args() > 1) {
293
293
$context = func_get_arg(1);
294
294
} else {
295
-
if (__CLASS__ !== \get_class($this)) {
295
+
if (__CLASS__ !== static::class) {
296
296
$r = new \ReflectionMethod($this, __FUNCTION__);
297
297
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
298
298
@trigger_error(sprintf('The "%s()" method will have a second `$context = []` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
@@ -313,7 +313,7 @@ public function supportsDecoding($format/*, array $context = []*/)
313
313
if (\func_num_args() > 1) {
314
314
$context = func_get_arg(1);
315
315
} else {
316
-
if (__CLASS__ !== \get_class($this)) {
316
+
if (__CLASS__ !== static::class) {
317
317
$r = new \ReflectionMethod($this, __FUNCTION__);
318
318
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
319
319
@trigger_error(sprintf('The "%s()" method will have a second `$context = []` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
0 commit comments