[wp-trac] [WordPress Trac] #46152: Add PHPCompatibility checks to test suite
WordPress Trac
noreply at wordpress.org
Wed Sep 25 13:47:06 UTC 2019
#46152: Add PHPCompatibility checks to test suite
------------------------------+-------------------------------
Reporter: desrosj | Owner: desrosj
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.3
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by desrosj):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"46290" 46290]:
{{{
#!CommitTicketReference repository="" revision="46290"
Build/Test Tools: Introduce automated PHP compatibility checking.
This change introduces a new Composer script, `compat` that will scan the
codebase for (detectable) potential PHP compatibility issues using the
`PHP_CodeSniffer` and a custom ruleset based off of the
`PHPCompayibilityWP` ruleset (`phpcompat.xml.dist`).
The command will be run as a separate job within each Travis build. While
many compatibility issues and false positives have already been corrected
in this commit and other Trac tickets, there are still some remaining. For
that reason, the job is allowed to fail while the remainder of the
potential compatibility issues are investigated and addressed. After those
are resolved, the job should be set as required to pass to help prevent
new compatibility issues from being introduced.
Props desrosj, jrf, all PHPCompatibilityWP and PHPCompatibility
contributors.
Fixes #46152.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46152#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list