Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Oct 2, 2024
1 parent 0644b21 commit 8b52e3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,11 @@ public function getJson(): string
*/
public function setJson(string $json)
{
$message = 'Generally this value should be placed in your projects webroot directory.';

if (!str_starts_with(haystack: $json, needle: '/')) {
throw new InvalidArgumentException(
sprintf(
"Invalid json: `%s`. Value should start with a `/` and be relative to your
applications ROOT. $message",
applications ROOT. Generally this value should be placed in your projects webroot directory.",
$json
)
);
Expand Down

0 comments on commit 8b52e3d

Please sign in to comment.