Skip to content

Commit 2d38a51

Browse files
committed
Cast to string
1 parent e438c09 commit 2d38a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/behat-tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function version_tags(
2727
$feature_files = glob( $features_folder . DIRECTORY_SEPARATOR . '*.feature' );
2828
if ( ! empty( $feature_files ) ) {
2929
foreach ( $feature_files as $feature_file ) {
30-
$contents = file_get_contents( $feature_file );
30+
$contents = (string) file_get_contents( $feature_file );
3131
if ( preg_match_all( '/@' . $prefix . '-[0-9\.]+/', $contents, $matches ) ) {
3232
$existing_tags = array_merge( $existing_tags, $matches[0] );
3333
}
@@ -130,7 +130,7 @@ function extension_tags( $features_folder = 'features' ) {
130130
$feature_files = glob( $features_folder . DIRECTORY_SEPARATOR . '*.feature' );
131131
if ( ! empty( $feature_files ) ) {
132132
foreach ( $feature_files as $feature_file ) {
133-
$contents = file_get_contents( $feature_file );
133+
$contents = (string) get_contents( $feature_file );
134134
if ( preg_match_all( '/@require-extension-[A-Za-z_]*/', $contents, $matches ) ) {
135135
$extension_tags = array_merge( $extension_tags, $matches[0] );
136136
}

0 commit comments

Comments
 (0)