Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws ugly warning if installed.json does not exist #148

Merged
merged 3 commits into from Sep 3, 2014

Conversation

elliotchance
Copy link
Owner

Running concise may print this:

PHP Warning:  file_get_contents(/home/travis/build/kounta/kounta/vendor/elliotchance/concise/src/Concise/../../vendor/composer/installed.json): failed to open stream: No such file or directory in /home/travis/build/kounta/kounta/vendor/elliotchance/concise/src/Concise/Version.php on line 9
PHP Stack trace:
PHP   1. {main}() /home/travis/build/kounta/kounta/vendor/elliotchance/concise/bin/concise:0
PHP   2. Concise\Version->getConciseVersion() /home/travis/build/kounta/kounta/vendor/elliotchance/concise/bin/concise:7
PHP   3. Concise\Version->getVersionForPackage() /home/travis/build/kounta/kounta/vendor/elliotchance/concise/src/Concise/Version.php:21
PHP   4. file_get_contents() /home/travis/build/kounta/kounta/vendor/elliotchance/concise/src/Concise/Version.php:9

@elliotchance
Copy link
Owner Author

The path is also wrong, it should be /mnt/hgfs/git/kounta/vendor/elliotchance/concise/src/Concise/../../../../composer/installed.json

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) when pulling 9d26563 on 1.3.1/148-installed-json-does-not-exist into f58e5a6 on release/1.3.1.

@scrutinizer-notifier
Copy link

A new inspection was created.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) when pulling fc26bf4 on 1.3.1/148-installed-json-does-not-exist into f58e5a6 on release/1.3.1.

elliotchance added a commit that referenced this pull request Sep 3, 2014
…es-not-exist

Throws ugly warning if installed.json does not exist
@elliotchance elliotchance merged commit 420865f into release/1.3.1 Sep 3, 2014
@elliotchance elliotchance deleted the 1.3.1/148-installed-json-does-not-exist branch September 3, 2014 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants