Skip to content

Commit d29da4a

Browse files
committed
minor #5642 Deprecate parameter of Token::toJson() (keradus)
This PR was merged into the 2.19-dev branch. Discussion ---------- Deprecate parameter of Token::toJson() Commits ------- 4566a26 Deprecate parameter of Token::toJson()
2 parents 3799baf + 4566a26 commit d29da4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tokenizer/Token.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ public function toArray()
615615
*/
616616
public function toJson(array $options = null)
617617
{
618+
if (null !== $options) {
619+
Utils::triggerDeprecation(sprintf('Arguments of "%s()" is deprecated since 2.19 and will be removed in 3.0.', __METHOD__));
620+
}
621+
618622
static $defaultOptions = null;
619623

620624
if (null === $options) {

0 commit comments

Comments
 (0)