We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38b5693 commit 988e3faCopy full SHA for 988e3fa
1 file changed
semver.php
@@ -64,8 +64,8 @@ function get_complete_version(array $version): array
64
if (empty($version)) {
65
$version = match (true) {
66
defined('VERSION') && is_array(VERSION) => get_version_array(join('-', array_filter(VERSION))),
67
- file_exists($version = __DIR__ . '/../../../VERSION'), // project dir relative to /vendor
68
- file_exists($version = getcwd() . '/VERSION') => get_version_array(@file_get_contents($version)),
+ is_file($version = __DIR__ . '/../../../VERSION'), // project dir relative to /vendor
+ is_file($version = getcwd() . '/VERSION') => get_version_array(@file_get_contents($version)),
69
default => INVALID_VERSION_ARRAY,
70
};
71
}
0 commit comments