Skip to content

Commit 4a0d9b8

Browse files
committed
Update the deprecation message
1 parent 7d65a5f commit 4a0d9b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Serializer/JMSHandlerRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getHandler($direction, $typeName, $format)
5959
return $handler;
6060
}
6161

62-
@trigger_error(sprintf('Relying on the custom registry %s to inherit the JMS handler of type `%s` is deprecated since FOSRestBundle 3.1. It will be removed in version 4.0. Use the option `fos_rest.serializer.disable_custom_jms_registry` to disable it.', __CLASS__, $typeName), E_USER_DEPRECATED);
62+
@trigger_error(sprintf('Relying on the custom registry %s to inherit the JMS handler of type `%s` is deprecated since FOSRestBundle 3.1. It will be removed in version 4.0. Set the option `fos_rest.serializer.enable_jms_registry` to `false` to disable it.', __CLASS__, $typeName), E_USER_DEPRECATED);
6363
} while ($typeName = get_parent_class($typeName));
6464
}
6565
}

Serializer/JMSHandlerRegistryV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getHandler(int $direction, string $typeName, string $format)
5959
return $handler;
6060
}
6161

62-
@trigger_error(sprintf('Relying on the custom registry %s to inherit the JMS handler of type `%s` is deprecated since FOSRestBundle 3.1. It will be removed in version 4.0. Use the option `fos_rest.serializer.disable_custom_jms_registry` to disable it.', __CLASS__, $typeName), E_USER_DEPRECATED);
62+
@trigger_error(sprintf('Relying on the custom registry %s to inherit the JMS handler of type `%s` is deprecated since FOSRestBundle 3.1. It will be removed in version 4.0. Set the option `fos_rest.serializer.enable_jms_registry` to `false` to disable it.', __CLASS__, $typeName), E_USER_DEPRECATED);
6363
} while ($typeName = get_parent_class($typeName));
6464
}
6565
}

0 commit comments

Comments
 (0)