Hello Team,
Here was my previous Composer.json
"require": {
"php": ">=5.6.4",
"laravel/lumen-framework": "5.3.*",
"vlucas/phpdotenv": "~2.2",
"dusterio/lumen-passport": "^0.1.2",
"guzzlehttp/guzzle": "^6.2",
"illuminate/mail": "^5.3",
"intervention/image": "^2.3",
"illuminate/filesystem": "^5.3"
}
Initially my installation was consisting Lumen 5.3.1
I ran a Composer Update which converted my Lumen to 5.3.2
All of sudden My API Endpoints started throwing Reflection Exception because namespace started appearing Twice
*App\Http\Controllers*App\Http\Controllers\UserController
Thanks in advance.
It seems that the \Laravel\Lumen\Concerns\RoutesRequests::group method was changed so the calls in the bootstrap/app.php and in your routes.php will both add the namespace App/Http/Controllers.
You can remove the namespace from your routes.php and you're good to go.
To have such an issue in a patch level version is ... uncool
The early point releases are considered a little bit "beta" typically. Expect breaking changes around .0 -> .4 ish in general.
There are naming conventions for alpha and beta versions as well on semver.org. If your releases are unstable, please mark them as such.
A real release shouldn't break on a new path level version.
This is why i should remove the composer auto update from our build process. This crashed our production build today.. Took me two hours to find this haha 馃
Things always change because people always complain about things that were changed in a new minor release and force us to change them.
I mean, we don't intentionally set out to break stuff, we'd rather get it perfect first time, but in software engineering, that often doesn't happen. :)
Most helpful comment
There are naming conventions for alpha and beta versions as well on semver.org. If your releases are unstable, please mark them as such.
A real release shouldn't break on a new path level version.