chore: refactors exceptions

This commit is contained in:
nuno maduro
2026-08-07 15:26:55 +01:00
parent 42d9b777bf
commit 8c554a81e2
54 changed files with 145 additions and 94 deletions
+5 -1
View File
@@ -51,12 +51,16 @@ final class Configuration
/**
* @return $this
*/
public function baselined(): self
public function baselined(?string $workflow = null): self
{
/** @var WatchPatterns $watchPatterns */
$watchPatterns = Container::getInstance()->get(WatchPatterns::class);
$watchPatterns->markBaselined();
if ($workflow !== null) {
$watchPatterns->setBaselineWorkflow($workflow);
}
return $this;
}