mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
includeIfExists function now works properly(return false now)
This commit is contained in:
parent
5701f60157
commit
2cb697a4bb
1 changed files with 1 additions and 3 deletions
|
@ -12,9 +12,7 @@
|
|||
|
||||
function includeIfExists($file)
|
||||
{
|
||||
if (file_exists($file)) {
|
||||
return include $file;
|
||||
}
|
||||
return file_exists($file)===true ? include $file : false;
|
||||
}
|
||||
|
||||
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue