-
Notifications
You must be signed in to change notification settings - Fork 571
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
PHP 7.4 warning #1389
Comments
Definitely likely valid by all means. I am amused that that line in question, is inside a |
Wanted to check on this. I could submit a PR with the line of code I mentioned, although since it's in a deprecated method I'm not really sure how I would test it. |
Please do submit a PR. To test, set a default callback using the |
Describe the bug
When running a PHPCS compatibility check for PHP 7.4, the only thing CMB2 seems to report is this, in the file
/cmb2/includes/CMB2_Base.php
:Steps to reproduce (I have confirmed I can reproduce this issue on the
develop
branch):./vendor/bin/phpcs -p . --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.3-
Possible Solution
Possibly, the solution is to move
$args = func_get_args();
before theif ( is_numeric( $message ) ) {
call.Possible Solution's Risk Level
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Browser name and version:
Operating System and version (desktop or mobile): macOS Catalina.
The text was updated successfully, but these errors were encountered: