Skip to content

Commit 3941ff3

Browse files
committed
Add void return type
1 parent 25f0cf4 commit 3941ff3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Domain/DecisionContent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getStatus(): string
111111
*
112112
* @throws InvalidArgumentException
113113
*/
114-
private function setTitle(string $title)
114+
private function setTitle(string $title): void
115115
{
116116
if (strlen($title) > self::TITLE_MAX_LENGTH) {
117117
$message = sprintf(
@@ -132,7 +132,7 @@ private function setTitle(string $title)
132132
*
133133
* @throws InvalidArgumentException
134134
*/
135-
private function setStatus(string $status)
135+
private function setStatus(string $status): void
136136
{
137137
$map = [
138138
self::STATUS_PROPOSED,

src/Filesystem/Workspace.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function count(): int
5454
*
5555
* @param DecisionRecord $record
5656
*/
57-
public function add(DecisionRecord $record)
57+
public function add(DecisionRecord $record): void
5858
{
5959
file_put_contents($this->filename($record), $record->output());
6060
}
@@ -87,7 +87,7 @@ public function records(): array
8787
*
8888
* @throws RuntimeException
8989
*/
90-
private function set(string $directory)
90+
private function set(string $directory): void
9191
{
9292
if (! file_exists($directory)) {
9393
$this->make($directory);
@@ -103,7 +103,7 @@ private function set(string $directory)
103103
*
104104
* @throws RuntimeException When the permissions prevent creating the directory
105105
*/
106-
private function make(string $directory)
106+
private function make(string $directory): void
107107
{
108108
$parent = dirname($directory);
109109

0 commit comments

Comments
 (0)