Skip to content

Commit c264e26

Browse files
committed
Fix strpos() arg order in vcsDetectSvn()
1 parent b530b73 commit c264e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer-lock-diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function vcsDetectSvn($fileish, $base_path, $default_fileish) {
346346
exec('sh -c "svn --version" > /dev/null 2>&1', $_out, $exit);
347347
if ($exit !== 0) return array(false, "'svn --version' exited with non-zero code '$exit'");
348348

349-
if (strpos('svn://', $fileish) === 0) {
349+
if (strpos($fileish, 'svn://') === 0) {
350350
return array(true, false);
351351
}
352352

0 commit comments

Comments
 (0)