diff --git a/composer.json b/composer.json index 5faea3d..5d11539 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,12 @@ "allure-framework/allure-php-commons": "^2" }, "require-dev": { - "phpunit/phpunit": "^9", + "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.18.4", "remorhaz/php-json-data": "^0.5.3", "remorhaz/php-json-path": "^0.7.7", - "squizlabs/php_codesniffer": "^3.7.1", - "vimeo/psalm": "^5.2" + "squizlabs/php_codesniffer": "^3.7.2", + "vimeo/psalm": "^5.12" }, "autoload": { "psr-4": { diff --git a/src/Internal/TestLifecycle.php b/src/Internal/TestLifecycle.php index 5281234..970cc49 100644 --- a/src/Internal/TestLifecycle.php +++ b/src/Internal/TestLifecycle.php @@ -323,6 +323,10 @@ public function stopStep(): self { $stepStart = $this->getCurrentStepStart(); $this->lifecycle->stopStep($stepStart->getUuid()); + /** + * @psalm-var Step $step + * @psalm-var StepStartInfo $storedStart + */ foreach ($this->stepStarts as $step => $storedStart) { if ($storedStart === $stepStart) { unset($this->stepStarts[$step]);