orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Call to undefined method ReflectionUnionType::getName() #2703

Closed triumph-isingh closed 10 months ago

triumph-isingh commented 10 months ago

Describe the bug When visiting the route from browser I get the following error:

Call to undefined method ReflectionUnionType::getName()

Screenshots Screenshot 2023-08-30 at 13 19 29

Desktop (please complete the following information):

Server (please complete the following information):

Additional context I have located the issue in callMethod in Orchid\Screen\Screen.php [Line: 415]

Using Route::substituteBindings($route); instead of Route::substituteImplicitBindings($route); fixes the issue. I am not sure what the impact will be of making this change.

Screenshot 2023-08-30 at 13 22 08

tabuna commented 10 months ago

Please describe the steps to reproduce the issue. This will help us replicate the error on our end and narrow down the potential cause.

triumph-isingh commented 10 months ago

The issue was fixed with 14.10.0 version