humanmade / humanmade/coding-standards

PHPCompatibility v10

Open
#323 2 comments 0 reactions 0 assignees View on GitHub
phpcs
Dominant language
PHP
Stars
160
Forks
17
PR merge metrics
No merged PRs in 30d

Description

It's currently in alpha, but it should fix a common issue with WPCS we're seeing, e.g.

```
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: trim(): Passing null to parameter #1 ($string) of
| | type string is deprecated in /Users/tomjn/dev/PHPBasicAuth/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniff.php on line
| | 131
| | The error originated in the .PHPCompatibility. sniff on line 131. (Internal.Exception)
------------------------------------------------------------------------------------------------------------------------------------------------------
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.