Permalink
Browse files

Lint all the things

Signed-off-by: John Rayes <live627@gmail.com>
  • Loading branch information...
1 parent 60363da commit 4cf6bbc933329b399f7e85e8791f7c162196d713 @live627 live627 committed Dec 11, 2016
Showing with 14 additions and 2 deletions.
  1. +9 −0 .travis.yml
  2. +5 −2 Sources/Subs.php
View
@@ -0,0 +1,9 @@
+language: php
+
+php:
+ - 5.3
+ - 5.6
+ - 7.0
+
+script:
+ - if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
View
@@ -5715,7 +5715,10 @@ function build_regex($strings, $delim = null)
$sub_regex = $index_to_regex($value, $delim);
if (count(array_keys($value)) == 1)
- $new_key .= explode('(?'.'>', $sub_regex)[0];
+ {
+ $new_key_array = explode('(?'.'>', $sub_regex);
+ $new_key .= $new_key_array[0];
+ }
else
$sub_regex = '(?'.'>' . $sub_regex . ')';
}
@@ -5766,4 +5769,4 @@ function build_regex($strings, $delim = null)
return $regexes;
}
-?>
+?>

0 comments on commit 4cf6bbc

Please sign in to comment.