Skip to content

Commit 316b65f

Browse files
committed
- skip code coverage for default match
1 parent 331dabc commit 316b65f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

semver.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ function get_version_array(string $version): array
5353
/**
5454
* @internal
5555
*
56-
* Returns the array version of the Koded version.
56+
* Returns the array version from the VERSION file.
5757
* Checks the correctness of the provided version array.
5858
*
5959
* @param array $version
60-
* @return array Koded segmented version as array
60+
* @return array Segmented version as array
6161
*/
6262
function get_complete_version(array $version): array
6363
{
@@ -66,7 +66,9 @@ function get_complete_version(array $version): array
6666
defined('VERSION') && is_array(VERSION) => get_version_array(join('-', array_filter(VERSION))),
6767
is_file($version = __DIR__ . '/../../../VERSION'), // project dir relative to /vendor
6868
is_file($version = getcwd() . '/VERSION') => get_version_array(@file_get_contents($version)),
69+
// @codeCoverageIgnoreStart
6970
default => INVALID_VERSION_ARRAY
71+
// @codeCoverageIgnoreEnd
7072
};
7173
}
7274
assert(3 === count($version), 'version array should have exactly 3 parts');

0 commit comments

Comments
 (0)