Skip to content

PHP 8: RestrictedFunction test failure #574

Closed
@GaryJones

Description

@GaryJones

Bug Description

As seen, at https://travis-ci.org/github/Automattic/VIP-Coding-Standards/jobs/722253827, there is a test failure for PHP 8:

1) WordPressVIPMinimum\Tests\Functions\RestrictedFunctionsUnitTest::testSniff
[LINE 76] Expected 1 error(s) in RestrictedFunctionsUnitTest.inc but found 0 error(s).

It's related to this line

\add_role(); // Error.

We have it marked down as expecting 1 error on that line.

Environment

Use php -v and composer show to get versions.

Question Answer
PHP version 8.0.0-dev (5th August 2020)
PHP_CodeSniffer version 3.5.5
VIPCS version develop

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions