Skip to content

Commit

Permalink
Deprecate parameter of Token::toJson()
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Apr 18, 2021
1 parent 3799baf commit 4566a26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Tokenizer/Token.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 4566a26

Please sign in to comment.