File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
6262function 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 ' );
You can’t perform that action at this time.
0 commit comments