Skip to content

Failed to create config.php #9

@danmichaelo

Description

@danmichaelo

Just tried installing this. Upon git commit, I get

$ git commit
PHP Warning:  include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28

Warning: array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28
PHP Warning:  include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28

Warning: array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28
PHP Warning:  include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(/path/to/project/.git/php-composter/config.php): failed to open stream: No such file or directory in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25

Warning: include(): Failed opening '/path/to/project/.git/php-composter/config.php' for inclusion (include_path='.:') in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 25
PHP Warning:  array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28

Warning: array_key_exists() expects parameter 2 to be array, boolean given in /path/to/project/vendor/php-composter/php-composter/includes/bootstrap.php on line 28
Aborting commit due to empty commit message.

Background: I installed php-composter-phpcs-psr2 using composer require --dev php-composter/php-composter-phpcs-psr2:

Using version ^0.2.0 for php-composter/php-composter-phpcs-psr2
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 4 updates, 0 removals
  - Installing php-composter/php-composter (v0.2.0): Loading from cache
  - Updating nikic/php-parser (v3.1.0 => v3.1.1): Loading from cache
  - Updating doctrine/instantiator (1.0.5 => 1.1.0): Loading from cache
  - Updating phpdocumentor/reflection-docblock (3.2.3 => 4.1.1): Loading from cache
  - Updating phpspec/prophecy (v1.7.0 => v1.7.2): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
  - Installing php-composter/php-composter-phpcs-psr2 (v0.2.0): Loading from cache

Contents of .git/php-composter/:

ls -la .git/php-composter/
total 0
drwxr-xr-x  3 user group  96 Dec  5 22:55 ./
drwxr-xr-x 16 user group 512 Dec  5 22:50 ../
drwxr-xr-x  3 user group  96 Dec  5 22:55 includes/
22:56:56 project(master *+$%){3.5.1}$ ls -la .git/php-composter/includes/
total 0
drwxr-xr-x 3 user group 96 Dec  5 22:55 ./
drwxr-xr-x 3 user group 96 Dec  5 22:55 ../
lrwxr-xr-x 1 user group 66 Dec  5 22:55 bootstrap.php -> ../../../vendor/php-composter/php-composter/includes/bootstrap.php

I'm using git 2.15.0, PHP 7.2.0RC6 and Composer 1.5.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions