framework icon indicating copy to clipboard operation
framework copied to clipboard

Upgrading to Attributes

Open mihai-stancu opened this issue 11 months ago • 5 comments

Hello,

Are there any plans to migrate to Attributes?

mihai-stancu avatar Mar 19 '25 14:03 mihai-stancu

Hello, master branch partially works on attributes already, please check the dev version

lisachenko avatar Jul 09 '25 11:07 lisachenko

@lisachenko are we still waiting for this PR? https://github.com/laminas/laminas-code/pull/145

jakublabno avatar Jul 14 '25 22:07 jakublabno

@jakublabno I don't believe that laminas-code is maintained now, therefore there is a need to refactor all code-generation part or switch to another library.

I have some local PoC with php-parser codegen, but it is slow and I haven't time to work on this. And for AI it is too big task to process currently.

lisachenko avatar Jul 28 '25 11:07 lisachenko

Maybe I could help you with this?

jakublabno avatar Jul 28 '25 11:07 jakublabno

@jakublabno any help is appreciated here ) Whole src/Proxy should be reviewed/replaced with something modern and capable of generating modern code with attributes.

I've tried to do it on AST level + phpstan level 10 to make all code-gen happening from pure AST and covered with 100% of tests, but unfortunately failed to finish it. This is the main blocker to run on PHP8 with attributes code-generation

lisachenko avatar Jul 28 '25 11:07 lisachenko