From 2a80fce277ccd8ccaa15a4dfe7e09d8c761cc924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kone=C4=8Dn=C3=BD?= Date: Mon, 16 Dec 2024 21:57:22 +0100 Subject: [PATCH] BC break: removed method TAssertions::showStringOrArray --- CHANGELOG.md | 2 +- src/TAssertions.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3d3fc72..b1eeb1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ Version 7.0.0-dev - BC break: replaced method IResultsFormatter::render with outputResults - BC break: only array can be passed to attribute Skip (if any value is passed) - improved error message for assertions assertSame and assertNotSame when any passed value is boolean -- deprecated method TAssertions::showStringOrArray in favor of new showValue (the latter accepts value of any type) +- BC break: replaced method TAssertions::showStringOrArray with showValue (the latter accepts value of any type) - allowing skipping tests based on OS family with default skip checker - BC break: renamed TestsStartedEvent to TestsStarted and TestsFinishedEvent to TestsFinished - BC break: made Job::getSkip() protected diff --git a/src/TAssertions.php b/src/TAssertions.php index 22155c51..e318e63c 100644 --- a/src/TAssertions.php +++ b/src/TAssertions.php @@ -48,15 +48,6 @@ protected function showValue(mixed $variable): string return var_export($variable, true); } - #[\Deprecated("Use method showValue instead")] - /** - * @deprecated Use method {@see self::showValue()} instead - */ - protected function showStringOrArray(string|array $variable): string - { - return $this->showValue($variable); - } - /** * Tries an assertion */