Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommentingTrait is not working with phpstan/phpdoc-parser >= 1.18.1 #379

Open
kfrohwein opened this issue Dec 19, 2024 · 2 comments
Open

Comments

@kfrohwein
Copy link

$constExprParser = new ConstExprParser();

https://github.com/phpstan/phpdoc-parser/blob/22dcdfd725ddf99583bfe398fc624ad6c5004a0f/src/Parser/ConstExprParser.php#L31

From Version 1.18.1 they added a constructor parameter that you are missing.
Please add a constrain to your composer file.
And make an updated version with minimum constrain to we can update to the later packages of phpstan.

dasann pushed a commit to dasann/code-sniffer that referenced this issue Feb 12, 2025
dasann added a commit to dasann/code-sniffer that referenced this issue Feb 12, 2025
@kfrohwein
Copy link
Author

kfrohwein commented Feb 17, 2025

Thanks for the Patch! Please Spryker team update your trait! As this is a trait I cannot override it by injection on project level and we have to fork your module as dasann did!

@kfrohwein
Copy link
Author

kfrohwein commented Feb 17, 2025

We did exclude basically all comment rules for now!

<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml"> <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> <exclude name="Spryker.Commenting.FullyQualifiedClassNameInDocBlock"/> <exclude name="Spryker.Commenting.DocBlockApiAnnotation"/> <exclude name="Spryker.Commenting.DocBlockConst"/> <exclude name="Spryker.Commenting.DocBlockInherit"/> <exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue"/> <exclude name="Spryker.Commenting.DocBlockParamArray"/> <exclude name="Spryker.Commenting.DocBlockParamNotJustNull"/> <exclude name="Spryker.Commenting.DocBlockParam"/> <exclude name="Spryker.Commenting.DocBlockReturnNullableType"/> <exclude name="Spryker.Commenting.DocBlockReturnNull"/> <exclude name="Spryker.Commenting.DocBlockReturnTag"/> <exclude name="Spryker.Commenting.DocBlockReturnVoid"/> <exclude name="Spryker.Commenting.DocBlock"/> <exclude name="Spryker.Commenting.DocBlockStructure"/> <exclude name="Spryker.Commenting.DocBlockTagGrouping"/> <exclude name="Spryker.Commenting.DocBlockTagIterable"/> <exclude name="Spryker.Commenting.DocBlockTagOrder"/> <exclude name="Spryker.Commenting.DocBlockTypeOrder"/> <exclude name="Spryker.Commenting.DocBlockVar"/> <exclude name="Spryker.Commenting.TypeHint"/> </rule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant