Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Conversation

@drm
Copy link

@drm drm commented Apr 17, 2013

Fixes the error "PHP Warning: require_once(SebastianBergmann/FinderFacade/autoload.php): failed to open stream: No such file or directory" by delegating autoload to vendor autoload of composer.

This error occurs on all install methods, except PEAR:

  • a dev checkout
  • tag dist download
  • composer require-dev
  • and the PHAR distribution.

Fixes the error  "PHP Warning:  require_once(SebastianBergmann/FinderFacade/autoload.php): failed to open stream: No such file or directory" by delegating autoload to vendor autoload of composer.

This error occurs on all install methods, except PEAR:
- a dev checkout
- tag dist download
- composer require-dev 
- and the PHAR distribution.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes you are using composer. This project is supposed to work also with PEAR.

@drm
Copy link
Author

drm commented Apr 29, 2013

So should it check for the vendor autoloader to exist?

@Ocramius
Copy link
Contributor

No, you should simply fix it by first reproducing it on an installation that is not using composer, but PEAR instead.

@drm
Copy link
Author

drm commented Apr 29, 2013

That makes no sense, because the composer installation is a documented installation method. In that case, the documentation should be updated.

@Ocramius
Copy link
Contributor

@drm the file you modified has nothing to do with the composer installation of phpcpd...

@drm
Copy link
Author

drm commented Apr 29, 2013

Yes it does, because the script assumes the dependencies are available on the include path, but the vendor dir isn't. Come to think of it, that might be a better solution...

@sebastianbergmann
Copy link
Owner

If you are using Composer to install PHPCPD the src/autoload.php script is not used.

@drm drm deleted the patch-1 branch May 29, 2013 12:37
@drm
Copy link
Author

drm commented May 29, 2013

For future reference: use the bin file in composer/bin/phpcpd in stead of the one in the root.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants