Skip to content
New issue

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

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

Already on GitHub? # to your account

PHP deprecations errors shown when running phpinsights #695

Open
gremo opened this issue Oct 6, 2024 · 1 comment
Open

PHP deprecations errors shown when running phpinsights #695

gremo opened this issue Oct 6, 2024 · 1 comment

Comments

@gremo
Copy link

gremo commented Oct 6, 2024

Q A
Bug report? no
Feature request? no
Library version v2.10.0
PHP version 8.3.12

First... that you for this such good tool! I've started used it today (Symfony framework here). Just a quick report: not a big deal but, php deprecations are reported when running the tool:

root@76c2985d039a:/app# vendor/bin/phpinsights          
PHP Deprecated:  Creation of dynamic property SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::$newlinesCountBeforeDeclare is deprecated in /app/vendor/nunomaduro/phpinsights/src/Domain/InsightLoader/SniffLoader.php on line 40

Deprecated: Creation of dynamic property SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::$newlinesCountBeforeDeclare is deprecated in /app/vendor/nunomaduro/phpinsights/src/Domain/InsightLoader/SniffLoader.php on line 40

Is there any why to suppress it?

@Jibbarth
Copy link
Collaborator

Linked to #652 (comment)

This property doesn't exist anymore and should be replaced by linesCountBeforeDeclare in DefaultPreset.

Jibbarth added a commit to Jibbarth/phpinsights that referenced this issue Oct 13, 2024
See slevomat/coding-standard@b71f8d7
The property we set has been renamed since V7 of slevomat coding standard
cmgmyr pushed a commit that referenced this issue Nov 11, 2024
See slevomat/coding-standard@b71f8d7
The property we set has been renamed since V7 of slevomat coding standard
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants