Skip to content

Commit

Permalink
Remove because reasons, because reasons
Browse files Browse the repository at this point in the history
Was funny back then but maybe it's not anymore. Also it doesn't really indicate that the message could be changed.
  • Loading branch information
spaze committed Nov 26, 2023
1 parent 1500f90 commit 626c4be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/DisallowedAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public function getExcludes(): array
}


public function getMessage(): string
public function getMessage(): ?string
{
return $this->message ?? 'because reasons';
return $this->message;
}


Expand Down
4 changes: 2 additions & 2 deletions src/DisallowedCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public function getDefinedIn(): array
}


public function getMessage(): string
public function getMessage(): ?string
{
return $this->message ?? 'because reasons';
return $this->message;
}


Expand Down
4 changes: 2 additions & 2 deletions src/DisallowedConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public function getConstant(): string
}


public function getMessage(): string
public function getMessage(): ?string
{
return $this->message ?? 'because reasons';
return $this->message;
}


Expand Down
4 changes: 2 additions & 2 deletions src/DisallowedNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public function getExcludes(): array
}


public function getMessage(): string
public function getMessage(): ?string
{
return $this->message ?? 'because reasons';
return $this->message;
}


Expand Down

0 comments on commit 626c4be

Please sign in to comment.