Skip to content

Commit b4a437d

Browse files
committed
Don't use sprintf in trigger_deprecation() calls
1 parent c8fec97 commit b4a437d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function previousAll()
502502
*/
503503
public function parents()
504504
{
505-
trigger_deprecation('symfony/dom-crawler', '5.3', sprintf('The %s() method is deprecated, use ancestors() instead.', __METHOD__));
505+
trigger_deprecation('symfony/dom-crawler', '5.3', 'The %s() method is deprecated, use ancestors() instead.', __METHOD__);
506506

507507
return $this->ancestors();
508508
}

0 commit comments

Comments
 (0)