From fa60f6ed804e6f7ea2c0debb3ded883a5c220260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20Rumi=C5=84ski?= Date: Tue, 20 Oct 2020 00:46:55 +0200 Subject: [PATCH] Fix circular package dependency (#11) --- src/PolyfillTrait.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PolyfillTrait.php b/src/PolyfillTrait.php index 805ce7d..7c9e840 100644 --- a/src/PolyfillTrait.php +++ b/src/PolyfillTrait.php @@ -11,9 +11,7 @@ namespace PHPUnitGoodPractices\Polyfill; -use PHPUnitGoodPractices\Traits\PHPUnitVersionRetriever; - -if (version_compare(PHPUnitVersionRetriever::getVersion(), '7.0.0') < 0) { +if (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0') < 0) { trait PolyfillTrait { public function expectException($exception)