foundry icon indicating copy to clipboard operation
foundry copied to clipboard

[2.x] remove `@method` from `make:factory`

Open nikophil opened this issue 1 year ago • 2 comments

since in Foundry 2.x, autocompletion comes out of the box (in recent phpstorm versions, and I'm pretty sure it works in VS code as well)

instead, provide an option --with-phpdoc which would only add the doc if the option is provided

nikophil avatar May 01 '24 17:05 nikophil

It (almost) works out of the box: it has a return type hint equal to mixed, so static analyzers will complain if you pass the returned object somewhere the accepted type is YourEntity as it is marked as mixed.

The annotation serves to specify the correct returned type.

Aerendir avatar Jun 19 '24 15:06 Aerendir

Hi!

Which method are you talking about?

nikophil avatar Jun 19 '24 19:06 nikophil