Skip to content

Commit

Permalink
Fix compatibility with php version which does not support "[]" array …
Browse files Browse the repository at this point in the history
…declaration
  • Loading branch information
neilime authored Nov 10, 2016
1 parent 32adf8e commit 952b7e3
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 952b7e3

Please sign in to comment.