You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: Uninitialized string offset 0 in /tmp/test/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/PostsPerPageSniff.php on line
| | 81 (Internal.Exception)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bug Description
This code fails if the
$val
is an empty string.WordPress-Coding-Standards/WordPress/Sniffs/WP/PostsPerPageSniff.php
Line 81 in e02529f
Minimal Code Snippet
The issue happens when running this command:
... over a file containing this code:
Error Code
WordPress.WP.PostsPerPage
Environment
Additional Context (optional)
Tested Against
develop
Branch?develop
branch of WordPressCS.The text was updated successfully, but these errors were encountered: