diff --git a/system/Test/Constraints/SeeInDatabase.php b/system/Test/Constraints/SeeInDatabase.php index 31297f53a0d7..faf874be9ce8 100644 --- a/system/Test/Constraints/SeeInDatabase.php +++ b/system/Test/Constraints/SeeInDatabase.php @@ -67,7 +67,7 @@ protected function failureDescription($table): string return sprintf( "a row in the table [%s] matches the attributes \n%s\n\n%s", $table, - $this->toString(JSON_PRETTY_PRINT), + $this->toString(false, JSON_PRETTY_PRINT), $this->getAdditionalInfo($table) ); } @@ -113,7 +113,7 @@ protected function getAdditionalInfo(string $table): string * * @param int $options */ - public function toString($options = 0): string + public function toString(bool $exportObjects = false, $options = 0): string { return json_encode($this->data, $options); }