Skip to content

Commit

Permalink
Load polyfill from application, not from composer'
Browse files Browse the repository at this point in the history
This way the polyfill won't be executed when
php-parallel-lint is loaded as composer dependency
but in application only.
  • Loading branch information
glensc authored and grogy committed Mar 30, 2021
1 parent c28c152 commit b2643dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"sort-packages": true
},
"autoload": {
"files": [ "src/polyfill.php" ],
"classmap": [
"./"
]
Expand Down
2 changes: 2 additions & 0 deletions parallel-lint
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ if (!$loaded) {
exit(254);
}

require_once __DIR__ . '/src/polyfill.php';

$app = new JakubOnderka\PhpParallelLint\Application();
exit($app->run());

0 comments on commit b2643dc

Please sign in to comment.