{"action":"created","issue":{"url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/41","repository_url":"https://api.github.com/repos/BenConstable/phpspec-laravel","labels_url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/41/comments","events_url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/41/events","html_url":"https://github.com/BenConstable/phpspec-laravel/issues/41","id":202980888,"number":41,"title":"This broke when upgrading to Laravel 5.4","user":{"login":"simonhunt","id":2714455,"avatar_url":"https://avatars.githubusercontent.com/u/2714455?v=3","gravatar_id":"","url":"https://api.github.com/users/simonhunt","html_url":"https://github.com/simonhunt","followers_url":"https://api.github.com/users/simonhunt/followers","following_url":"https://api.github.com/users/simonhunt/following{/other_user}","gists_url":"https://api.github.com/users/simonhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/simonhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonhunt/subscriptions","organizations_url":"https://api.github.com/users/simonhunt/orgs","repos_url":"https://api.github.com/users/simonhunt/repos","events_url":"https://api.github.com/users/simonhunt/events{/privacy}","received_events_url":"https://api.github.com/users/simonhunt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-25T00:29:36Z","updated_at":"2017-01-25T21:06:40Z","closed_at":null,"body":"When running PHPSpec after upgrading to Laravel 5.4 returns the following:\r\n\r\n```                                                                        \r\n[ReflectionException]                                                   \r\nClass Illuminate\\Foundation\\Bootstrap\\DetectEnvironment does not exist \r\n```\r\n\r\nStack Trace:\r\n\r\n```\r\nException trace:\r\n () at /home/simon/Code/thephysics.guide/vendor/laravel/framework/src/Illuminate/Container/Container.php:681\r\n ReflectionClass->__construct() at /home/simon/Code/thephysics.guide/vendor/laravel/framework/src/Illuminate/Container/Container.php:681\r\n Illuminate\\Container\\Container->build() at /home/simon/Code/thephysics.guide/vendor/laravel/framework/src/Illuminate/Container/Container.php:565\r\n Illuminate\\Container\\Container->make() at /home/simon/Code/thephysics.guide/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:702\r\n Illuminate\\Foundation\\Application->make() at /home/simon/Code/thephysics.guide/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:208\r\n Illuminate\\Foundation\\Application->bootstrapWith() at /home/simon/Code/thephysics.guide/vendor/benconstable/phpspec-laravel/src/PhpSpec/Laravel/Util/Laravel.php:89\r\n PhpSpec\\Laravel\\Util\\Laravel->createApplication() at /home/simon/Code/thephysics.guide/vendor/benconstable/phpspec-laravel/src/PhpSpec/Laravel/Util/Laravel.php:54\r\n PhpSpec\\Laravel\\Util\\Laravel->refreshApplication() at /home/simon/Code/thephysics.guide/vendor/benconstable/phpspec-laravel/src/PhpSpec/Laravel/Listener/LaravelListener.php:52\r\n PhpSpec\\Laravel\\Listener\\LaravelListener->beforeSpecification() at n/a:n/a\r\n call_user_func() at /home/simon/Code/thephysics.guide/vendor/symfony/event-dispatcher/EventDispatcher.php:174\r\n Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch() at /home/simon/Code/thephysics.guide/vendor/symfony/event-dispatcher/EventDispatcher.php:43\r\n Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/src/PhpSpec/Runner/SpecificationRunner.php:50\r\n PhpSpec\\Runner\\SpecificationRunner->run() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/src/PhpSpec/Runner/SuiteRunner.php:56\r\n PhpSpec\\Runner\\SuiteRunner->run() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/src/PhpSpec/Console/Command/RunCommand.php:178\r\n PhpSpec\\Console\\Command\\RunCommand->execute() at /home/simon/Code/thephysics.guide/vendor/symfony/console/Command/Command.php:262\r\n Symfony\\Component\\Console\\Command\\Command->run() at /home/simon/Code/thephysics.guide/vendor/symfony/console/Application.php:848\r\n Symfony\\Component\\Console\\Application->doRunCommand() at /home/simon/Code/thephysics.guide/vendor/symfony/console/Application.php:189\r\n Symfony\\Component\\Console\\Application->doRun() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/src/PhpSpec/Console/Application.php:102\r\n PhpSpec\\Console\\Application->doRun() at /home/simon/Code/thephysics.guide/vendor/symfony/console/Application.php:120\r\n Symfony\\Component\\Console\\Application->run() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/bin/phpspec:26\r\n {closure}() at /home/simon/Code/thephysics.guide/vendor/phpspec/phpspec/bin/phpspec:28\r\n```"},"comment":{"url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/comments/275232918","html_url":"https://github.com/BenConstable/phpspec-laravel/issues/41#issuecomment-275232918","issue_url":"https://api.github.com/repos/BenConstable/phpspec-laravel/issues/41","id":275232918,"user":{"login":"simonhunt","id":2714455,"avatar_url":"https://avatars.githubusercontent.com/u/2714455?v=3","gravatar_id":"","url":"https://api.github.com/users/simonhunt","html_url":"https://github.com/simonhunt","followers_url":"https://api.github.com/users/simonhunt/followers","following_url":"https://api.github.com/users/simonhunt/following{/other_user}","gists_url":"https://api.github.com/users/simonhunt/gists{/gist_id}","starred_url":"https://api.github.com/users/simonhunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonhunt/subscriptions","organizations_url":"https://api.github.com/users/simonhunt/orgs","repos_url":"https://api.github.com/users/simonhunt/repos","events_url":"https://api.github.com/users/simonhunt/events{/privacy}","received_events_url":"https://api.github.com/users/simonhunt/received_events","type":"User","site_admin":false},"created_at":"2017-01-25T21:06:40Z","updated_at":"2017-01-25T21:06:40Z","body":"That's great Ben.\r\n\r\nThe first commit in the PR addresses the above exception (by replacing DetectEnvironment entry to LoadEnvironmentVariables as per the Laravel 5.4 extension guide - a simple fix.)\r\n\r\nThe second commit deals with another error which appears once the first exception has been removed. This has something to do with the logging entry in the Util/Laravel file:\r\n\r\n```\r\n[ReflectionException]                                                  \r\n  Class Illuminate\\Foundation\\Bootstrap\\ConfigureLogging does not exist\r\n```\r\n\r\nAt present, I've dealt with it simply by removing the offending line on the basis that it makes it work (but presumably will introduce bugs for anyone planning to use the logging functionality - I'm personally not at the moment). I'm aware that this will need looking into further but not sure where to start."}}
{"actor":{"display_login":"simonhunt"}}