diff --git a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php index dad06a653c348..4b47a89ab91b2 100644 --- a/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php +++ b/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php @@ -21,23 +21,11 @@ trait VarDumperTestTrait { public function assertDumpEquals($dump, $data, $filter = 0, $message = '') { - if (is_string($filter)) { - @trigger_error(sprintf('The $message argument of the "%s()" method at 3rd position is deprecated since version 3.4 and will be moved at 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED); - $message = $filter; - $filter = 0; - } - $this->assertSame(rtrim($dump), $this->getDump($data, null, $filter), $message); } public function assertDumpMatchesFormat($dump, $data, $filter = 0, $message = '') { - if (is_string($filter)) { - @trigger_error(sprintf('The $message argument of the "%s()" method at 3rd position is deprecated since version 3.4 and will be moved at 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED); - $message = $filter; - $filter = 0; - } - $this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data, null, $filter), $message); }