Replies: 2 comments
-
side note: If you typed hinted the functions the dock block is useless. Why keep it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Troum What happens if you remove the dock block and put a new one that contains only @throws \Throwable? Maybe it has something to do with PHP 8 attributes and reflection.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.10
PHP Version
8.3.8
Database Driver & Version
No response
Description
Currently, I am using service with static methods and I am using annotations for describing methods params, something like:
Then I use this service in my
BaseFormRequest
class inrules()
method:When I try to post/patch any product -- I get an error in Postman: Error: socket hang up
If I remove annotations and left only comments, like that:
Everything works perfectly.
The same error if I paste methods from request right into Form Request validation class with annotations and use them via $this
Please help
Steps To Reproduce
php artisan make:request AnyRequest
Beta Was this translation helpful? Give feedback.
All reactions