laravel/liferaft — pull request #14 by antonioribeiro (2014-10-19 16:46:24+00:00)
Title: Fix infinite recursion on errors

While trying to create a second liferaft here I ran into this

```
$ liferaft new bladeextend
What title should be assigned to your bug report? Extending sublayouts make foreach act weirdly
Forking Laravel... ✔
Renaming Repository... PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php on line 250
PHP Stack trace:
PHP 1. {main}() /usr/local/share/composer/vendor/laravel/liferaft/liferaft:0
PHP 2. Symfony\Component\Console\Application->run() /usr/local/share/composer/vendor/laravel/liferaft/liferaft:100
PHP 3. Symfony\Component\Console\Application->doRun() /usr/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:124
PHP 4. Symfony\Component\Console\Application->doRunCommand() /usr/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP 5. Symfony\Component\Console\Command\Command->run() /usr/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:889
PHP 6. Laravel\Liferaft\NewCommand->execute() /usr/local/share/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP 7. Laravel\Liferaft\Actions\CreateLiferaft->execute() /usr/local/share/composer/vendor/laravel/liferaft/src/NewCommand.php:62
PHP 8. Laravel\Liferaft\Actions\CreateLiferaft->renameForkedRepository() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:65
PHP 9. Laravel\Liferaft\Actions\CreateLiferaft->task() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:95
PHP 10. Laravel\Liferaft\Actions\CreateLiferaft->Laravel\Liferaft\Actions\{closure}() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/ActionTrait.php:28
PHP 11. Laravel\Liferaft\Actions\CreateLiferaft->renameRepository() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:94
PHP 12. Laravel\Liferaft\Actions\CreateLiferaft->renameRepository() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:162

...

PHP 76. Laravel\Liferaft\Actions\CreateLiferaft->renameRepository() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:162
PHP 77. Laravel\Liferaft\Services\KnpGithub->rename() /usr/local/share/composer/vendor/laravel/liferaft/src/Actions/CreateLiferaft.php:156
PHP 78. Github\Api\Repo->update() /usr/local/share/composer/vendor/laravel/liferaft/src/Services/KnpGithub.php:57
PHP 79. Github\Api\AbstractApi->patch() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/Api/Repo.php:158
PHP 80. Github\HttpClient\HttpClient->patch() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/Api/AbstractApi.php:149
PHP 81. Github\HttpClient\HttpClient->request() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/HttpClient/HttpClient.php:113
PHP 82. Guzzle\Http\Client->send() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/HttpClient/HttpClient.php:140
PHP 83. Guzzle\Http\Curl\CurlMultiProxy->send() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Client.php:284
PHP 84. Guzzle\Http\Curl\CurlMulti->send() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiProxy.php:94
PHP 85. Guzzle\Http\Curl\CurlMulti->perform() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:111
PHP 86. Guzzle\Http\Curl\CurlMulti->executeHandles() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:224
PHP 87. Guzzle\Http\Curl\CurlMulti->processMessages() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:240
PHP 88. Guzzle\Http\Curl\CurlMulti->processResponse() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:257
PHP 89. Guzzle\Http\Message\EntityEnclosingRequest->setState() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:303
PHP 90. Guzzle\Http\Message\Request->setState() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequest.php:49
PHP 91. Guzzle\Http\Message\Request->processResponse() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Request.php:378
PHP 92. Symfony\Component\EventDispatcher\EventDispatcher->dispatch() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Request.php:589
PHP 93. Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() /usr/local/share/composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:53
PHP 94. call_user_func:{/usr/local/share/composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:164}() /usr/local/share/composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/E
ventDispatcher.php:164
PHP 95. Github\HttpClient\Listener\ErrorListener->onRequestError() /usr/local/share/composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:164
PHP 96. Github\HttpClient\Message\ResponseMediator::getContent() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/HttpClient/Listener/ErrorListener.php:57
PHP 97. Guzzle\Http\Message\Response->getBody() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/HttpClient/Message/ResponseMediator.php:12
PHP 98. Guzzle\Stream\Stream->__toString() /usr/local/share/composer/vendor/knplabs/github-api/lib/Github/HttpClient/Message/ResponseMediator.php:187
PHP 99. Guzzle\Stream\Stream->ftell() /usr/local/share/composer/vendor/guzzle/guzzle/src/Guzzle/Stream/Stream.php:70
```