Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Aug 28, 2024
1 parent c143e68 commit f93ce61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"phpstan/phpstan": "^1.11.8",
"phpstan/phpstan": "^1.12.0",
"tomasvotruba/type-coverage": "^0.3.1",
"pestphp/pest-plugin": "^3.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public static function supportsConstantTypes(): bool

$fallback = version_compare(PHP_VERSION, '8.3.0', '>=');

$composerJson = json_decode(file_get_contents($rootPath.'/composer.json'), true);
$composerJson = json_decode((string) file_get_contents($rootPath.'/composer.json'), true);

if (! is_array ($composerJson) || ! array_key_exists('require', $composerJson)) {
if (! is_array($composerJson) || ! array_key_exists('require', $composerJson)) {
return $fallback;
}

Expand Down

0 comments on commit f93ce61

Please sign in to comment.