We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc4bac commit 3ad0ed8Copy full SHA for 3ad0ed8
1 file changed
src/Context/FeatureContext.php
@@ -411,12 +411,11 @@ public static function get_bin_path(): ?string {
411
foreach ( $bin_paths as $path ) {
412
$full_bin_path = $path . DIRECTORY_SEPARATOR . $bin;
413
if ( is_file( $full_bin_path ) && is_executable( $full_bin_path ) ) {
414
- $bin_path = $path;
415
- break;
+ return $path;
416
}
417
418
419
- return $bin_path;
+ return null;
420
421
422
/**
0 commit comments