[3.x.dev] Call to undefined method ReflectionUnionType::getName()
Newbie to Twill here.
Fresh install of Laravel 10.4.1 / PHP 8.2.4 / MYSQL 8.0.32 on Ubuntu Budgie 22.04.02 Pro.
Fresh install of Twill 3.x.dev
Migrate
Twill:Install
All fine. Data written to database.
Can successfully login to superadmin account. However, when I use the 'Profile' option (admin/users/1/edit), I get the error shown in the screenshot.
Also, on creating another user, fails in the same way as it goes to admin/users/2/edit
I'll apologise in advance if this is something simple I've missed, but I've already had a good look around to try and fix this. I'd be tearing my hair out, if I actually had any.
(Twill 2 on Laravel 9 didn't have a problem)
Ask for any detail I've missed.
Thanks in advance
7 Replies
I can reproduce, Will check it
https://github.com/laravel/framework/pull/46511 looks like it will be fixed with the next laravel release.
GitHub
[10.x] Skip isParameterBackedEnumWithStringBackingType for non Refl...
#46483 May cause error Call to undefined method ReflectionUnionType::getName() at https://github.com/laravel/framework/blob/10.x/src/Illuminate/Support/Reflector.php#L151 if route action and parame...
Excellent! I hesitated to share for a few days, as I thought it was me!
..and I seemed to have missed finding that issue. Must do better!
Thanks, Rob
"laravel/framework": "^9.0|^10.0 !=10.4.1",
you can update composer like this (without the 9.0)
should be like this in fact ^10.0 !=10.4.1 !=10.4.0
as the bug is in 10.4 and 10.4.1That's going above and beyond, Rob.
I was just trying to figure out the correct syntax for this, and there you are!
It's only because I needed it myself because all tests are failing due to this bug 😄
I'm appalled that I thought it was twill, without considering that it might be Laravel!
I'm getting old! Cheers!