2017 © Pedro Peláez
 

phpcodesniffer-standard php-compatibility

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

image

wimg/php-compatibility

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

  • Wednesday, August 1, 2018
  • by wimg
  • Repository
  • 63 Watchers
  • 877 Stars
  • 699,314 Installations
  • PHP
  • 145 Dependents
  • 0 Suggesters
  • 115 Forks
  • 70 Open issues
  • 99 Versions
  • 19 % Grown

The README.md

PHP Compatibility Coding Standard for PHP CodeSniffer

Latest Stable Version Latest Unstable Version Awesome License Flattr this git repo, (*1)

Build Status Scrutinizer Code Quality Coverage Status, (*2)

Minimum PHP Version Tested on PHP 5.3 to nightly, (*3)

This is a set of sniffs for PHP CodeSniffer that checks for PHP cross-version compatibility. It will allow you to analyse your code for compatibility with higher and lower versions of PHP., (*4)

PHP Version Support

The project aims to cover all PHP compatibility changes introduced since PHP 5.0 up to the latest PHP release. This is an ongoing process and coverage is not yet 100% (if, indeed, it ever could be). Progress is tracked on our GitHub issue tracker., (*5)

Pull requests that check for compatibility issues in PHP 4 code - in particular between PHP 4 and PHP 5.0 - are very welcome as there are still situations where people need help upgrading legacy systems. However, coverage for changes introduced before PHP 5.1 will remain patchy as sniffs for this are not actively being developed at this time., (*6)

Requirements

  • PHP 5.3+ for use with PHP CodeSniffer 2.x.
  • PHP 5.4+ for use with PHP CodeSniffer 3.x.

PHP CodeSniffer: 2.3.0+ or 3.0.2+., (*7)

The sniffs are designed to give the same results regardless of which PHP version you are using to run PHP CodeSniffer. You should get reasonably consistent results independently of the PHP version used in your test environment, though for the best results it is recommended to run the sniffs on PHP 5.4 or higher., (*8)

PHP CodeSniffer 2.3.0 is required for 90% of the sniffs, PHP CodeSniffer 2.6.0 or later is required for full support, notices may be thrown on older versions., (*9)

For running the sniffs on PHP 7.3, it is recommended to use PHP_CodeSniffer 3.3.1+, or, if needs be, PHP_CodeSniffer 2.9.2. PHP_CodeSniffer < 2.9.2/3.3.1 is not fully compatible with PHP 7.3, which effectively means that PHPCompatibility can't be either. While the sniffs will still work in most cases, you can expect PHP warnings to be thrown., (*10)

For running the sniffs on PHP 7.4, it is recommended to use PHP_CodeSniffer 3.5.0+., (*11)

As of version 8.0.0, the PHPCompatibility standard can also be used with PHP CodeSniffer 3.x., (*12)

As of version 9.0.0, support for PHP CodeSniffer 1.5.x and low 2.x versions < 2.3.0 has been dropped., (*13)

Thank you

Thanks to all contributors for their valuable contributions., (*14)

Thanks to WP Engine for their support on the PHP 7.0 sniffs., (*15)

:warning: Upgrading to PHPCompatibility 9.0.0 :warning:

This library has been reorganized. All sniffs have been placed in categories and a significant number of sniffs have been renamed., (*16)

If you use the complete PHPCompatibility standard without exclude directives in a custom ruleset and do not (yet) use the new-style PHP_CodeSniffer annotation as introduced in PHP_CodeSniffer 3.2.0, this will have no noticeable effect and everything should work as before., (*17)

However, if you do use exclude directives for PHPCompatibility sniffs in a custom ruleset or if you use the new-style PHP_CodeSniffer inline annotations, you will need to update these when upgrading. This should be a one-time only change. The changelog contains detailed information about all the sniff renames., (*18)

Please read the changelog for version 9.0.0 carefully before upgrading., (*19)

Installation in a Composer project (method 1)

  • Add the following lines to the require-dev section of your composer.json file. json "require-dev": { "phpcompatibility/php-compatibility": "*" }, "prefer-stable" : true
  • Next, PHP CodeSniffer has to be informed of the location of the standard., (*20)

    • If PHPCompatibility is the only external PHP CodeSniffer standard you use, you can add the following to your composer.json file to automatically run the necessary command: json "scripts": { "post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility", "post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility" }
    • Alternatively - and strongly recommended if you use more than one external PHP CodeSniffer standard - you can use any of the following Composer plugins to handle this for you., (*21)

      Just add the Composer plugin you prefer to the require-dev section of your composer.json file., (*22)

    • As a last alternative in case you use a custom ruleset, and only if you use PHP CodeSniffer version 2.6.0 or higher, you can tell PHP CodeSniffer the path to the PHPCompatibility standard by adding the following snippet to your custom ruleset: xml <config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
  • Run composer update --lock to install both PHP CodeSniffer, the PHPCompatibility coding standard and - optionally - the Composer plugin.
  • Verify that the PHPCompatibility standard is registered correctly by running ./vendor/bin/phpcs -i on the command line. PHPCompatibility should be listed as one of the available standards.
  • Now you can use the following command to inspect your code: bash ./vendor/bin/phpcs -p . --standard=PHPCompatibility

Installation via a git check-out to an arbitrary directory (method 2)

  • Install PHP CodeSniffer via your preferred method., (*23)

    PHP CodeSniffer offers a variety of installation methods to suit your work-flow: Composer, PEAR, a Phar file, zipped/tarred release archives or checking the repository out using Git., (*24)

    Pro-tip: Register the path to PHPCS in your system $PATH environment variable to make the phpcs command available from anywhere in your file system., (*25)

  • Download the latest PHPCompatibility release and unzip/untar it into an arbitrary directory., (*26)

    You can also choose to clone the repository using git to easily update your install regularly., (*27)

  • Add the path to the directory in which you placed your copy of the PHPCompatibility repo to the PHP CodeSniffer configuration using the below command from the command line:, (*28)

    phpcs --config-set installed_paths /path/to/PHPCompatibility
    

    I.e. if you placed the PHPCompatibility repository in the /my/custom/standards/PHPCompatibility directory, you will need to add that directory to the PHP CodeSniffer installed_paths configuration variable., (*29)

    Warning: :warning: The installed_paths command overwrites any previously set installed_paths. If you have previously set installed_paths for other external standards, run phpcs --config-show first and then run the installed_paths command with all the paths you need separated by comma's, i.e.:, (*30)

    phpcs --config-set installed_paths /path/1,/path/2,/path/3
    

    Pro-tip: Alternatively, in case you use a custom ruleset and only if you use PHP CodeSniffer version 2.6.0 or higher, you can tell PHP CodeSniffer the path to the PHPCompatibility standard(s) by adding the following snippet to your custom ruleset:, (*31)

    <config name="installed_paths" value="/path/to/PHPCompatibility" />
    
  • Verify that the PHPCompatibility standard is registered correctly by running phpcs -i on the command line. PHPCompatibility should be listed as one of the available standards.
  • Now you can use the following command to inspect your code: bash phpcs -p . --standard=PHPCompatibility

Sniffing your code for compatibility with specific PHP version(s)

  • Run the coding standard from the command-line with phpcs -p . --standard=PHPCompatibility.
  • By default, you will only receive notifications about deprecated and/or removed PHP features.
  • To get the most out of the PHPCompatibility standard, you should specify a testVersion to check against. That will enable the checks for both deprecated/removed PHP features as well as the detection of code using new PHP features.
    • You can run the checks for just one specific PHP version by adding --runtime-set testVersion 5.5 to your command line command.
    • You can also specify a range of PHP versions that your code needs to support. In this situation, compatibility issues that affect any of the PHP versions in that range will be reported: --runtime-set testVersion 5.3-5.5.
    • As of PHPCompatibility 7.1.3, you can omit one part of the range if you want to support everything above or below a particular version, i.e. use --runtime-set testVersion 7.0- to run all the checks for PHP 7.0 and above.
  • By default the report will be sent to the console, if you want to save the report to a file, add the following to the command line command: --report-full=path/to/report-file. For more information and other reporting options, check the PHP CodeSniffer wiki.

Using a framework/CMS/polyfill specific ruleset

As of mid 2018, a limited set of framework/CMS specific rulesets is available. These rulesets are hosted in their own repositories. * PHPCompatibilityJoomla GitHub | Packagist * PHPCompatibilityWP GitHub | Packagist, (*32)

Since the autumn of 2018, there are also a number of PHP polyfill specific rulesets available: * PHPCompatibilityPasswordCompat GitHub | Packagist: accounts for @ircmaxell's password_compat polyfill library. * PHPCompatibilityParagonie GitHub | Packagist: contains two rulesets which account for the Paragonie random_compat and sodium_compat polyfill libraries respectively. * PHPCompatibilitySymfony GitHub | Packagist: contains a number of rulesets which account for various PHP polyfill libraries offered by the Symfony project. For more details about the available rulesets, please check out the README of the PHPCompatibilitySymfony repository., (*33)

If you want to make sure you have all PHPCompatibility rulesets available at any time, you can use the PHPCompatibilityAll package GitHub | Packagist., (*34)

IMPORTANT: Framework/CMS/Polyfill specific rulesets do not set the minimum PHP version for your project, so you will still need to pass a testVersion to get the most accurate results., (*35)

Using a custom ruleset

Like with any PHP CodeSniffer standard, you can add PHPCompatibility to a custom PHP CodeSniffer ruleset., (*36)


<ruleset name="Custom ruleset">
    <description>My rules for PHP CodeSniffer</description>

    <!-- Run against the PHPCompatibility ruleset -->
    <rule ref="PHPCompatibility"/>

    <!-- Run against a second ruleset -->
    <rule ref="PSR2"/>

</ruleset>

You can also set the testVersion from within the ruleset:, (*37)

    <!-- Check for cross-version support for PHP 5.6 and higher. -->
    <config name="testVersion" value="5.6-"/>

Other advanced options, such as changing the message type or severity of select sniffs, as described in the PHPCS Annotated ruleset wiki page are, of course, also supported., (*38)

testVersion in the ruleset versus command-line

In PHPCS 3.2.0 and lower, once you set the testVersion in the ruleset, you could not overrule it from the command-line anymore. Starting with PHPCS 3.3.0, a testVersion set via the command-line will overrule the testVersion in the ruleset., (*39)

This allows for more flexibility when, for instance, your project needs to comply with PHP 5.5-, but you have a bootstrap file which needs to be compatible with PHP 5.2-., (*40)

PHPCompatibility specific options

At this moment, there is one sniff which has a property which can be set via the ruleset. More custom properties may become available in the future., (*41)

The PHPCompatibility.Extensions.RemovedExtensions sniff checks for removed extensions based on the function prefix used for these extensions. This might clash with userland functions using the same function prefix., (*42)

To whitelist userland functions, you can pass a comma-delimited list of function names to the sniff., (*43)

    <!-- Whitelist the mysql_to_rfc3339() and mysql_another_function() functions. -->
    <rule ref="PHPCompatibility.Extensions.RemovedExtensions">
        <properties>
            <property name="functionWhitelist" type="array" value="mysql_to_rfc3339,mysql_another_function"/>
        </properties>
    </rule>

This property was added in PHPCompatibility version 7.0.1. As of PHPCompatibility version 8.0.0, this custom property is only supported in combination with PHP CodeSniffer > 2.6.0 due to an upstream bug (which was fixed in PHPCS 2.6.0)., (*44)

Projects extending PHPCompatibility

There are hundreds of public projects using PHPCompatibility or extending on top of it. A short list of some that you might know or have a look at : * adamculp/php-code-quality - a Docker image doing a lot of code quality checks * VFAC/PHP7Compatibility - a Docker container to check PHP7 Compatibility * grumphp-php-compatibility - A plugin for GrumPHP * PHPCompatibility Checker WordPress plugin : Wordpress site and Github * WordPress Tide project * PHPStorm has built-in support for PHPCompatibility, (*45)

Contributing

Contributions are very welcome. Please read the CONTRIBUTING documentation to get started., (*46)

License

This code is released under the GNU Lesser General Public License (LGPL). For more information, visit http://www.gnu.org/copyleft/lesser.html, (*47)

The Versions

01/08 2018

dev-feature/724-fix-false-positive-generator-return

dev-feature/724-fix-false-positive-generator-return http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/08 2018

dev-feature/calltime-pass-by-reference-bugfix

dev-feature/calltime-pass-by-reference-bugfix http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-feature/readme-tested-on-badge

dev-feature/readme-tested-on-badge http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-feature/travis-badge

dev-feature/travis-badge http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-php-7.1/252-new-keyed-lists-sniff

dev-php-7.1/252-new-keyed-lists-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-php-5.5/new-foreach-referenced-expressions-sniff

dev-php-5.5/new-foreach-referenced-expressions-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-php-7.0/new-list-assignment-order-sniff

dev-php-7.0/new-list-assignment-order-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/07 2018

dev-php-5.3/649-new-array_reduce-initial-type

dev-php-5.3/649-new-array_reduce-initial-type http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

29/07 2018

dev-master

9999999-dev http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0 LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

17/07 2018

8.2.0

8.2.0.0 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

11/06 2018

dev-feature/new-pack-formats-sniff

dev-feature/new-pack-formats-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

11/06 2018

dev-php-7.1/253-new-negative-string-offsets-sniff

dev-php-7.1/253-new-negative-string-offsets-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

11/06 2018

dev-php-5.6/475-new-iconv-deprecated-type-sniff

dev-php-5.6/475-new-iconv-deprecated-type-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

11/06 2018

dev-php-5.5/new-lists-in-foreach-sniff

dev-php-5.5/new-lists-in-foreach-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

10/06 2018

dev-feature/faster-code-coverage

dev-feature/faster-code-coverage http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

31/05 2018

dev-feature/more-backfills-wp

dev-feature/more-backfills-wp http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

16/05 2018

dev-feature/composer-add-explanation-to-suggest

dev-feature/composer-add-explanation-to-suggest http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

10/05 2018

dev-feature/getreturntypehinttoken-bug-fix

dev-feature/getreturntypehinttoken-bug-fix http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

10/05 2018

dev-feature/newscalartypedeclarations-minor-message-adjustment

dev-feature/newscalartypedeclarations-minor-message-adjustment http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

10/05 2018

dev-feature/639-phpcs-x-compat-phpcs-3.3.0-changes

dev-feature/639-phpcs-x-compat-phpcs-3.3.0-changes http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

04/05 2018

dev-feature/sync-get-method-params-method-with-upstream

dev-feature/sync-get-method-params-method-with-upstream http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/04 2018

dev-php-7.3/is_countable

dev-php-7.3/is_countable http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/04 2018

dev-feature/heredocinit-extend-scalar-expr-sniff

dev-feature/heredocinit-extend-scalar-expr-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/04 2018

dev-feature/new-abstract-function-param-sniff

dev-feature/new-abstract-function-param-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/04 2018

dev-feature/is-short-list-utility-function

dev-feature/is-short-list-utility-function http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/04 2018

dev-feature/unit-test-allow-for-more-cats

dev-feature/unit-test-allow-for-more-cats http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/04 2018

dev-feature/travis-test-low-phpcs-3.x

dev-feature/travis-test-low-phpcs-3.x http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/03 2018

dev-php-7.3/new-function-call-trailing-comma-sniff

dev-php-7.3/new-function-call-trailing-comma-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/03 2018

dev-php-5.5/add-password-constants

dev-php-5.5/add-password-constants http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/03 2018

dev-php-7.2/add-more-sodium-functions

dev-php-7.2/add-more-sodium-functions http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/03 2018

dev-feature/isClassProperty-additional-unit-tests

dev-feature/isClassProperty-additional-unit-tests http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/03 2018

dev-php-5.4-7.0/new-class-member-access

dev-php-5.4-7.0/new-class-member-access http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

16/03 2018

dev-php5.6/399-scalar-expressions

dev-php5.6/399-scalar-expressions http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

11/03 2018

dev-php71/getenv-parameter-requirement-change

dev-php71/getenv-parameter-requirement-change http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

05/03 2018

dev-feature/readme-annotate-cl-overrules-ruleset

dev-feature/readme-annotate-cl-overrules-ruleset http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

04/03 2018

dev-feature/294-446-fix-bitshift-by-negative-number

dev-feature/294-446-fix-bitshift-by-negative-number http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

04/03 2018

dev-feature/new-utility-method-is-negative-number

dev-feature/new-utility-method-is-negative-number http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

03/03 2018

dev-feature/more-new-parameters-php-7

dev-feature/more-new-parameters-php-7 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/03 2018

dev-feature/more-new-functions

dev-feature/more-new-functions http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/03 2018

dev-php5.6/optionalrequired-add-recommended

dev-php5.6/optionalrequired-add-recommended http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/03 2018

dev-php56/optionalrequired-add-recommended

dev-php56/optionalrequired-add-recommended http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/03 2018

dev-feature/travis-coverage-in-separate-build

dev-feature/travis-coverage-in-separate-build http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/03 2018

dev-feature/composer-reorganize

dev-feature/composer-reorganize http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

01/03 2018

dev-feature/556-detect-new-PCRE-J-modifier

dev-feature/556-detect-new-PCRE-J-modifier http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

28/02 2018

dev-PHP71/new-hash-algorithms

dev-PHP71/new-hash-algorithms http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

28/02 2018

dev-php73/bcscale-parameter-change

dev-php73/bcscale-parameter-change http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

28/02 2018

dev-php72/new-bcmod-parameter

dev-php72/new-bcmod-parameter http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

26/02 2018

dev-PHP-5.3/372-new-argument-functions-usage-sniff

dev-PHP-5.3/372-new-argument-functions-usage-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

26/02 2018

dev-feature/nullabletypes-code-style-independence

dev-feature/nullabletypes-code-style-independence http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/02 2018

dev-feature/newscalartypedeclaration-parent-is-valid

dev-feature/newscalartypedeclaration-parent-is-valid http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

24/02 2018

dev-feature/deprnewref-removed-not-forbidden

dev-feature/deprnewref-removed-not-forbidden http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

24/02 2018

dev-feature/constantarrays-handle-multiconstant-declarations

dev-feature/constantarrays-handle-multiconstant-declarations http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

24/02 2018

dev-feature/deprecatedtypecasts-simplification

dev-feature/deprecatedtypecasts-simplification http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/02 2018

dev-argument_functions_report_current_value_php7

dev-argument_functions_report_current_value_php7 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

21/01 2018

dev-feature/new-interfaces-classes-as-returntype

dev-feature/new-interfaces-classes-as-returntype http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

21/01 2018

dev-feature/scrutinizer-send-pass-fail-feedback

dev-feature/scrutinizer-send-pass-fail-feedback http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

21/01 2018

dev-feature/newreturntypes-fix-test-case-file

dev-feature/newreturntypes-fix-test-case-file http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

27/12 2017

8.1.0

8.1.0.0 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

26/12 2017

dev-feature/fix-509-removed-extension-recognition-precision

dev-feature/fix-509-removed-extension-recognition-precision http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

26/11 2017

dev-feature/minor-testfile-syntax-fixes

dev-feature/minor-testfile-syntax-fixes http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

26/11 2017

dev-feature/update-own-ruleset

dev-feature/update-own-ruleset http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

29/10 2017

dev-feature/new-constants-sniff

dev-feature/new-constants-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

29/10 2017

dev-feature/improve-phpcs-exclude-patterns

dev-feature/improve-phpcs-exclude-patterns http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

28/10 2017

dev-php-7.2/deprecated-php-errormsg

dev-php-7.2/deprecated-php-errormsg http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-feature/test-fix-missing-test-case-bug

dev-feature/test-fix-missing-test-case-bug http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-feature/new-optionalrequiredfunctionparameter-sniff

dev-feature/new-optionalrequiredfunctionparameter-sniff http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-php-7.2/more-new-functions

dev-php-7.2/more-new-functions http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-php-7.2/lang-construct-update-coalesce-equals

dev-php-7.2/lang-construct-update-coalesce-equals http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-feature/test-skip-notices

dev-feature/test-skip-notices http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

25/10 2017

dev-feature/simplify-testversion-code

dev-feature/simplify-testversion-code http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

14/09 2017

dev-feature/travis-build-against-php-7.2

dev-feature/travis-build-against-php-7.2 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

08/08 2017

dev-complex-negative-bitshift

dev-complex-negative-bitshift http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

07/08 2017

8.0.1

8.0.1.0 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/08 2017

8.0.0

8.0.0.0 http://techblog.wimgodden.be/tag/codesniffer/

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

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

16/07 2017

7.1.5

7.1.5.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

by Wim Godden

phpcs standards compatibility

13/07 2017

dev-feature/cache-array-function-call-parsing-results

dev-feature/cache-array-function-call-parsing-results http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

by Wim Godden

phpcs standards compatibility

14/06 2017

dev-feature/changelog-7.1.5

dev-feature/changelog-7.1.5 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

16/05 2017

dev-feature/fix-102-107-directory-layout

dev-feature/fix-102-107-directory-layout http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

by Wim Godden

phpcs standards compatibility

14/05 2017

dev-test-scrutinizer-coverage

dev-test-scrutinizer-coverage http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

06/05 2017

7.1.4

7.1.4.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

03/04 2017

7.1.3

7.1.3.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

17/02 2017

7.1.2

7.1.2.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

14/12 2016

7.1.1

7.1.1.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

12/12 2016

dev-php72-deprecations

dev-php72-deprecations http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

12/12 2016

7.1.0

7.1.0.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

30/10 2016

7.0.8

7.0.8.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

20/10 2016

7.0.7

7.0.7.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

21/09 2016

7.0.6

7.0.6.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

08/09 2016

7.0.5

7.0.5.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

20/08 2016

7.0.4

7.0.4.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

20/08 2016

dev-codecoverage-fix

dev-codecoverage-fix http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

18/08 2016

7.0.3

7.0.3.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

03/08 2016

7.0.2

7.0.2.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

03/08 2016

7.0.1

7.0.1.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

02/07 2016

7.0

7.0.0.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

29/06 2016

dev-php70

dev-php70 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

03/10 2015

dev-revert-91-master

dev-revert-91-master http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

14/09 2015

5.6

5.6.0.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

The Development Requires

by Wim Godden

phpcs standards compatibility

04/04 2014

5.5

5.5.0.0 http://techblog.wimgodden.be/tag/codesniffer/

This is a set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.

  Sources   Download

LGPL

The Requires

 

by Wim Godden

phpcs standards compatibility