Skip to content

Commit

Permalink
Merge pull request #2 from neilime/patch-1
Browse files Browse the repository at this point in the history
Fix compatibility with php version which does not support "[]" array declaration
  • Loading branch information
j13k authored Nov 11, 2016
2 parents 32adf8e + 952b7e3 commit 9efb848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yaml-lint.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

// Composer bootstrap
$pathToTry = null;
foreach (['/../../../', '/../vendor/'] as $pathToTry) {
foreach (array('/../../../', '/../vendor/') as $pathToTry) {
if (is_readable(__DIR__ . $pathToTry . 'autoload.php')) {
/** @noinspection PhpIncludeInspection */
require __DIR__ . $pathToTry . 'autoload.php';
Expand Down

0 comments on commit 9efb848

Please sign in to comment.