Skip to content

Commit 9d63c3b

Browse files
committed
Fix syntax error on PHP < 5.6
Follow-up on 39fbb5f: static variables can only be initialized with an expression starting with PHP 5.6, so remove static keyword to support >= 5.3.2.
1 parent 4012304 commit 9d63c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceGithub/SourceGithub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function update_repo( $p_repo ) {
214214
# Git branch name validation regex, based on rules defined in man page
215215
# http://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
216216
# @TODO this should probably be moved to Source so the logic can be reused in other git-based plugins
217-
static $s_valid_branch_regex = '%'
217+
$s_valid_branch_regex = '%'
218218
# Must not start with '/'; cannot contain '/.', '//', '@{' or '\';
219219
# cannot be a single '@'.
220220
. '^(?!/|.*([/.]\.|//|@\{|\\)|@$)'

0 commit comments

Comments
 (0)