Skip to content

Commit

Permalink
Revert "Skip PHP-5.6-only composer autoloader."
Browse files Browse the repository at this point in the history
Updated to PHP 5.6 on dev.horde.org.

This reverts commit da8a07c.
  • Loading branch information
yunosh committed Jun 28, 2016
1 parent bf621ad commit 9576454
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions git-hooks/pre-receive.d/php-syntax-check
Expand Up @@ -42,9 +42,7 @@ function parseDiff($oldrev, $newrev, $diffcmd, $regex)
function syntaxCheckFile($blob, $filename)
{
$needle = '/(\.php)$/';
if (preg_match($needle, $filename) &&
// @todo Skip until updated to PHP 5.6.
$filename != 'autoload_static.php') {
if (preg_match($needle, $filename)) {
$dummy = array();
exec("git show $blob | /usr/bin/env php -l", $output, $returnCode);
if ($returnCode != 0) {
Expand Down

0 comments on commit 9576454

Please sign in to comment.