File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments