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

Fix incorrect default value for ‘linesCountBeforeDeclare’ #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pauljohnston
Copy link

Q A
Bug fix? yes
New feature? no
Fixed tickets #...

The option 'newlinesCountBeforeDeclare' hasn't existed since v7.0.0 and causes the warning 'Creation of dynamic property SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff::$newlinesCountBeforeDeclare is deprecated in /vendor/nunomaduro/phpinsights/src/Domain/InsightLoader/SniffLoader.php on line 40'. The correct option is 'linesCountBeforeDeclare', see https://github.com/slevomat/coding-standard/blob/master/doc/type-hints.md#slevomatcodingstandardtypehintsdeclarestricttypes-

@pauljohnston
Copy link
Author

The checks are failing on 1 error relating to return type on SniffDecorator::register(), and 2 issues relating to PHP version 8.0 conflicting with symfony/console and symfony/process being locked to v5.9 or v6.4+ (no versions available for 6.0 to 6.3).

The 2 issues with PHP 8.0 are never going to pass for those 2 as it is attempting to use the stable versions of Laravel 9 / Symfony Skeleton, however minimum versions of symfony/console and symfony/process for both are 6.0, therefore won't use 5.9, and 6.4 needs minimum PHP 8.1.

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

Successfully merging this pull request may close these issues.

None yet

1 participant