cakephp-phpstan icon indicating copy to clipboard operation
cakephp-phpstan copied to clipboard

Support for PHPStan 2.0 with CakePHP 4.x

Open Harfusha opened this issue 1 year ago • 11 comments

Harfusha avatar Nov 13 '24 08:11 Harfusha

We would be interested, too.

If help through testing would be necessary, we could provide some.

ravage84 avatar Nov 13 '24 10:11 ravage84

https://github.com/CakeDC/cakephp-phpstan/releases/tag/4.0.0

Duplicate of https://github.com/CakeDC/cakephp-phpstan/issues/40

dereuromark avatar Nov 14 '24 23:11 dereuromark

The version 4.x is for cakephp 5, i wanted support for cakephp 4

Harfusha avatar Nov 15 '24 04:11 Harfusha

how do I install the correct version for cake 4.x?

acidhexe avatar Jan 27 '25 17:01 acidhexe

@acidhexe Version 2.1.0 of this plugin is compatible with CakePHP 4

rochamarcelo avatar Jan 27 '25 19:01 rochamarcelo

@rochamarcelo If I understood correctly, but only with stan 1.0 and there are other dependencies in the project that require stan 2.+... or have I misunderstood something?

acidhexe avatar Jan 27 '25 21:01 acidhexe

@acidhexe The version 2.1.0 is compatible with CakePHP 4.0 and PHPSstan 1.0 , the newer versions of the plugin requires CakePHP 5.

rochamarcelo avatar Jan 27 '25 23:01 rochamarcelo

but can you make version of this package that supports cakephp 4 + phpstan 2.x?

Harfusha avatar Jan 28 '25 03:01 Harfusha

but can you make version of this package that supports cakephp 4 + phpstan 2.x?

OK! how? I know this is not a support forum but do you have a tip

acidhexe avatar Jan 28 '25 11:01 acidhexe

@Harfusha I can't promisse, I have not worked on CakePHP 4 for a long time. Pull requests are welcome.

rochamarcelo avatar Jan 28 '25 13:01 rochamarcelo

okay thanks, maybe I'll be able to update my project to 5 sooner... :)

acidhexe avatar Jan 28 '25 15:01 acidhexe

Its also ok to close this for now as "not happening". If someone wants it they can make a PR with it.

dereuromark avatar Oct 14 '25 16:10 dereuromark