Skip to content

Commit

Permalink
add default case for switches
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Feb 12, 2017
1 parent 5c5b61b commit 96c07af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Projection/PdoEventStoreProjection.php
Expand Up @@ -445,6 +445,8 @@ public function run(bool $keepRunning = true): void
case ProjectionStatus::RESETTING():
$this->reset();
break;
default:
break;
}

$this->createProjection();
Expand Down Expand Up @@ -500,6 +502,8 @@ public function run(bool $keepRunning = true): void
case ProjectionStatus::RESETTING():
$this->reset();
break;
default:
break;
}
} while ($keepRunning && ! $this->isStopped);
} finally {
Expand Down
4 changes: 4 additions & 0 deletions src/Projection/PdoEventStoreReadModelProjection.php
Expand Up @@ -423,6 +423,8 @@ public function run(bool $keepRunning = true): void
case ProjectionStatus::RESETTING():
$this->reset();
break;
default:
break;
}

$this->createProjection();
Expand Down Expand Up @@ -478,6 +480,8 @@ public function run(bool $keepRunning = true): void
case ProjectionStatus::RESETTING():
$this->reset();
break;
default:
break;
}
} while ($keepRunning && ! $this->isStopped);
} finally {
Expand Down

0 comments on commit 96c07af

Please sign in to comment.