diff --git a/src/Tokenizer/Token.php b/src/Tokenizer/Token.php index d29915e9c3c..cc5d3e80135 100644 --- a/src/Tokenizer/Token.php +++ b/src/Tokenizer/Token.php @@ -615,6 +615,10 @@ public function toArray() */ public function toJson(array $options = null) { + if (null !== $options) { + Utils::triggerDeprecation(sprintf('Arguments of "%s()" is deprecated since 2.19 and will be removed in 3.0.', __METHOD__)); + } + static $defaultOptions = null; if (null === $options) {