diff --git a/tests/LongitudeOne/Spatial/Tests/OrmTestCase.php b/tests/LongitudeOne/Spatial/Tests/OrmTestCase.php index 3dfaf75..f6ec573 100644 --- a/tests/LongitudeOne/Spatial/Tests/OrmTestCase.php +++ b/tests/LongitudeOne/Spatial/Tests/OrmTestCase.php @@ -389,11 +389,7 @@ protected function getPlatform(): AbstractPlatform */ protected function getSchemaTool(): SchemaTool { - if (isset($this->schemaTool)) { - return $this->schemaTool; - } - - return new SchemaTool($this->getEntityManager()); + return $this->schemaTool ?? new SchemaTool($this->getEntityManager()); } /**