Skip to content

Instantly share code, notes, and snippets.

@clue clue/Phakefile.php
Created Dec 20, 2013

Embed
What would you like to do?
jaz303/phake Loading vendor/autoload.php fails https://github.com/jaz303/phake/issues/33
{
"require-dev": {
"jaz303/phake": "dev-master"
}
}
me@me-dev:~/workspace/phake-test$ phake
(in /home/me/workspace/phake-test)
PHP Fatal error: Cannot redeclare builder() (previously declared in phar:///usr/local/bin/phake/lib/global_helpers.php:2) in /home/me/workspace/phake-test/vendor/jaz303/phake/lib/functions.php on line 7
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/phake:0
PHP 2. require() /usr/local/bin/phake:10
PHP 3. phake\load_runfile() phar:///usr/local/bin/phake/bin/phake:71
PHP 4. require() phar:///usr/local/bin/phake/lib/utils.php:22
PHP 5. require() /home/me/workspace/phake-test/Phakefile.php:3
PHP 6. ComposerAutoloaderInit160d2ad4d1d9ee0068ef0797b4d424ab::getLoader() /home/me/workspace/phake-test/vendor/autoload.php:
me@me-dev:~/workspace/phake-test$ ./vendor/bin/phake
(in /home/me/workspace/phake-test)
PHP Fatal error: Cannot redeclare builder() (previously declared in /home/me/workspace/phake-test/vendor/jaz303/phake/lib/functions.php:2) in /home/me/workspace/phake-test/vendor/jaz303/phake/lib/functions.php on line 7
PHP Stack trace:
PHP 1. {main}() /home/me/workspace/phake-test/vendor/jaz303/phake/bin/phake:0
PHP 2. phake\Bin->execute() /home/me/workspace/phake-test/vendor/jaz303/phake/bin/phake:7
PHP 3. phake\Builder->load_runfile() /home/me/workspace/phake-test/vendor/jaz303/phake/lib/phake/Bin.php:77
PHP 4. require() /home/me/workspace/phake-test/vendor/jaz303/phake/lib/phake/Builder.php:99
PHP 5. require() /home/me/workspace/phake-test/Phakefile.php:3
PHP 6. ComposerAutoloaderInit160d2ad4d1d9ee0068ef0797b4d424ab::getLoader() /home/me/workspace/phake-test/vendor/autoload.php:7
<?php
require __DIR__ . '/vendor/autoload.php';
task('default', function() {
echo 'Does not work.';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.