Skip to content

Conversation

@Adnan-cds
Copy link
Contributor

squizlabs/php_codesniffer versions 3.5.7 and 3.5.8, the two latest ones, are
throwing PHP fatal errors. So sticking with version 3.5.6 for now.

Sample error message:

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function DrupalPractice\Sniffs\CodeAnalysis\ScopeInfo::__construct(), 0 passed in <snipped>/localgov-project/vendor/squizlabs/php_codesniffer/src/Ruleset.php on line 1209 and exactly 1 expected in <snipped>/localgov-project/vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php:49
...

Resolves #23

squizlabs/php_codesniffer versions 3.5.7 and 3.5.8, the two latest ones, are
throwing PHP fatal errors.  So sticking with version 3.5.6 for now.

Sample error message:
```
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function DrupalPractice\Sniffs\CodeAnalysis\ScopeInfo::__construct(), 0 passed in <snipped>/localgov-project/vendor/squizlabs/php_codesniffer/src/Ruleset.php on line 1209 and exactly 1 expected in <snipped>/localgov-project/vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php:49
...
```

Issue #23
Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @Adnan-cds - let's get this in to unblock all the other tests!

Copy link
Member

@stephen-cox stephen-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@finnlewis
Copy link
Member

Sorry @stephen-cox - I pressed the wrong thing and re-requested your review. That was not intentional.

@Adnan-cds
Copy link
Contributor Author

Thanks :)

@Adnan-cds Adnan-cds merged commit b41e466 into master Oct 28, 2020
@stephen-cox stephen-cox deleted the fix/23-phpcs-pin-to-3.5.6 branch May 27, 2021 07:42
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.

CodeSniffer is suffering PHP Fatal errors

4 participants