Skip to content

Commit

Permalink
fix(provider): fix file JSON verification
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBellas committed Aug 14, 2023
1 parent 1913650 commit 3b078b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DuskApiConfServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function boot(): void
$decoded = json_decode($contents, true);

if (
json_last_error() !== JSON_ERROR_NONE &&
json_last_error() === JSON_ERROR_NONE &&
gettype($decoded) === 'array'
) {
foreach (array_keys($decoded) as $key) {
Expand Down

0 comments on commit 3b078b9

Please sign in to comment.