Skip to content

Commit 5fc8f38

Browse files
committed
Add back strtolower
1 parent 8704c6a commit 5fc8f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dist_Archive_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private function get_version( $source_dir_path ) {
305305
continue;
306306
}
307307
$contents = (string) file_get_contents( $php_file, false, null, 0, 5000 );
308-
$ver = $this->get_version_in_code( $contents );
308+
$ver = $this->get_version_in_code( $contents );
309309
if ( ! empty( $ver ) ) {
310310
$version = trim( $ver );
311311
break;
@@ -417,7 +417,7 @@ private function parse_doc_block( $docblock ) {
417417
}
418418
}
419419

420-
$tag_name = trim( isset( $matches[1] ) ? $matches[1] : '' );
420+
$tag_name = trim( isset( $matches[1] ) ? strtolower( $matches[1] ) : '' );
421421
$metadata = trim( isset( $matches[2] ) ? $matches[2] : '' );
422422

423423
$tags[ $tag_name ] = $metadata;

0 commit comments

Comments
 (0)