Skip to content

Commit

Permalink
minor #5642 Deprecate parameter of Token::toJson() (keradus)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.19-dev branch.

Discussion
----------

Deprecate parameter of Token::toJson()

Commits
-------

4566a26 Deprecate parameter of Token::toJson()
  • Loading branch information
keradus committed Apr 18, 2021
2 parents 3799baf + 4566a26 commit d29da4a
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 d29da4a

Please sign in to comment.