Registry / build-tool / wimg-php-compatibility

wimg-php-compatibility

JSON →
library9.3.5phppackagistunverified

A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.

composer require wimg/php-compatibility
INSTALL
IMPORT
SIG · WIMG-PHP-COMPATIBI
W
wimg-php-compatibility
build-toolphpv9.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NewHashAlgorithmsSniff
use PHPCompatibility\PHPCompatibility\Sniffs\ParameterValues\NewHashAlgorithmsSniff;

Use via PHP_CodeSniffer command line.

// This package provides PHP_CodeSniffer sniffs, not a direct API. // Run: vendor/bin/phpcs --standard=PHPCompatibility /path/to/code
Debug
Known issues
gotchaSniffs may produce false positives for polyfilled functions.
fix
Use --runtime-set testVersion 7.4- to specify target PHP version.
affects: >=9.0.0
Upgrade
Version history
9.3.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
2
Resources
wimg-php-compatibility — pip install wimg-php-compatibility · libregistry