composer / getcomposer.org

getcomposer.org sources

Home Page:http://getcomposer.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installer deprecation warning on failure: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated

dzuelke opened this issue · comments

If the install dir is not writable, installer/composer-setup.php throws a deprecation warning:

% php composer-setup.php --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197
The installation directory "/usr/local/bin" is not writable

If the install dir is not writable, installer/composer-setup.php throws a deprecation warning:

% php composer-setup.php --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197
The installation directory "/usr/local/bin" is not writable

% php composer-setup.php --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
PHP Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in composer-setup.php on line 1197
The installation directory "/usr/local/bin" is not writable