Closed sypets closed 1 year ago
Hi Sybille, I just copied the exact test setup from the core. There are lots of packages using it actually: https://packagist.org/packages/friendsoftypo3/phpstan-typo3/dependents?order_by=downloads
For now I'm inclined to keep it like this. I tried to install Saschas package and phpstan is still green. So there is no real reason to switch at the moment.
I'll close it for now. Will keep it in my head though if this becomes necessary.
@nhovratov Thanks for the reply.
For me it is not so much about mask (you are free to use whatever you want, of course), but to research what are the currently used and recommended dev packages and to clarify open questions.
Having 2 packages for phpstan TYPO3 is potentially a bit confusing, thought in practice it is probably not much of a problem.
But, if extension maintainers say it is only for the core, but extensions are using it, I think it might be a good solution to either update the README of phpstan-typo3 (it is maybe appropriate to say use at your own risk, may be subject to changes without notice, rather than not recommended to use) or recommend not to use it.
My main intention and focus here are the extension developers and contributors - if similar dev packages and setup are used (at least for the basic stuff) across extensions (and core) - this makes contribution much easier.
As you are already using a lot of the setup from the core your extension is a good example.
Anyhow, I do not wish to annoy and pester the extension authors with unnecessary questions and suggestions, it is sometimes difficult to find a good course of action here.
@sypets It's not annoying at all, thanks for bringing this up! I haven't had it on my radar at all, that there is another package. I like to stick as close as possible to the core utilities, as this basically guarantees me updates for free. Now, I'm probably not the one to decide what is the right way. You are totally right about unifying used packages across third-party extensions. This will simplify contribution immensely.
Is there a reason mask uses friendsoftypo3/phpstan-typo3 and not for example saschaegerer/phpstan-typo3 in composer.json?
See
https://packagist.org/packages/friendsoftypo3/phpstan-typo3