Permalink
Commits on Jan 19, 2018
  1. Merge pull request #573 from wimg/feature/more-new-classes

    wimg committed Jan 19, 2018
    NewClasses: add more classes
Commits on Jan 15, 2018
  1. Merge pull request #572 from wimg/feature/more-new-interfaces

    wimg committed Jan 15, 2018
    NewInterfaces: add another interface
  2. NewClasses: add more classes

    jrfnl committed Jan 15, 2018
    Includes a number of classes introduced in PHP 7.0 and 7.1, but not mentioned in the changelogs.
  3. NewInterfaces: add another interface

    jrfnl committed Jan 15, 2018
Commits on Jan 14, 2018
  1. Merge pull request #571 from wimg/feature/travis-validate-composer.json

    wimg committed Jan 14, 2018
    Travis/Build: validate the composer.json file
  2. Travis/Build: validate the composer.json file

    jrfnl committed Jan 14, 2018
    Validate the composer.json file on each build.
    Ref: https://getcomposer.org/doc/03-cli.md#validate
    
    Also updates the license identifier in the `composer.json` file.
    
    Notes:
    * This check has not been restricted to a specific PHP version as there may be different versions of Composer being run on different Travis PHP images, so validating the file once against each PHP/Composer combi should make sure the file is properly validated.
    * `--strict` checking is disabled with reason. As of Composer 1.6.0, the SPDX license identifiers v3.0 for GPL/LGPL/AGPL are supported and the old license identifiers are deprecated.
        So using the "new" license identifier would fail the validation for Composer < 1.6.0, using the old license idenfifier would fail the validation for Composer 1.6.0+. By ignoring warnings, this issue is bypassed.
    
    Refs:
    * https://github.com/composer/composer/releases/tag/1.6.0
    * https://spdx.org/news/news/2018/01/license-list-30-released
Commits on Jan 12, 2018
  1. Merge pull request #570 from wimg/feature/speed-up-travis

    wimg committed Jan 12, 2018
    Travis: speed up build times by disabling Xdebug
  2. Travis: speed up build times by disabling Xdebug

    jrfnl committed Jan 12, 2018
Commits on Dec 27, 2017
  1. Merge pull request #544 from wimg/changelog-8.1.0

    wimg committed Dec 27, 2017
    Changelog for 8.1.0
Commits on Dec 26, 2017
  1. Changelog for 8.1.0

    wimg committed with jrfnl Dec 17, 2017
  2. Merge pull request #567 from wimg/php-7.2/removed-opcache.fast-shutdown

    wimg committed Dec 26, 2017
    PHP 7.2 / DeprecatedIniDirectives: add removed `opcache.fast_shutdown` directive
  3. PHP 7.2 / DeprecatedIniDirectives: add removed `opcache.fast_shutdown…

    jrfnl committed Dec 23, 2017
Commits on Dec 25, 2017
  1. Merge pull request #564 from wimg/feature/537-fix-false-positive-forb…

    wimg committed Dec 25, 2017
    …idden-global-variable-variable
    
    ForbiddenGlobalVariableVariable: fix false positives and more
  2. Merge pull request #552 from wimg/feature/fix-grammer

    wimg committed Dec 25, 2017
    Readme: Improve grammar of the reporting information
  3. Merge pull request #565 from wimg/php7.2/add-spl-object-id-function

    wimg committed Dec 25, 2017
    PHP 7.2/New Functions: add spl_object_id()
  4. Merge pull request #566 from wimg/php-7.2/removed-mcrypt-extension

    wimg committed Dec 25, 2017
    PHP 7.2: account for removed mcrypt extension
Commits on Dec 24, 2017
  1. PHP 7.2 / DeprecatedFunctions: add the removal of the mcrypt functions

    jrfnl committed Dec 23, 2017
    Includes:
    * Fixed the deprecation version of a mcrypt function which was already removed.
    * Adjusted the alternative for one mcrypt function based on the documentation.
  2. Readme: Improve grammar of the reporting information

    jrfnl committed Dec 23, 2017
    The same message was now shown twice, with one still containing a typo.
    
    This PR moves the message out of the installation instructions, to the readme section on running PHPCompatibility.
    It also improves the grammer of the text.
  3. PHP 7.2/New Functions: add spl_object_id()

    jrfnl committed Dec 23, 2017
    Refs:
    * http://php.net/manual/en/migration72.new-functions.php#migration72.new-functions.spl
    * php/php-src@5097e2e
    
    Note: other than in the changelog, this function is currently undocumented and not yet mentioned in the manual!
    The missing documentation has been reported: https://bugs.php.net/bug.php?id=75723
  4. Merge pull request #563 from wimg/feature/fix-codestyle-independence-…

    wimg committed Dec 24, 2017
    …variable-variables
    
    VariableVariables: improve code style independent sniffing
  5. Merge pull request #562 from wimg/feature/39-fix-false-positive-callt…

    wimg committed Dec 24, 2017
    …ime-pass-by-ref
    
    ForbiddenCallTimePassByReference: fix false positive for "bitwise and" preceded by global constant
  6. Merge pull request #561 from wimg/php-7.2/deprecated-read-exif-data

    wimg committed Dec 24, 2017
    PHP 7.2: DeprecatedFunctions: add read_exif_data()
  7. Merge pull request #551 from wimg/php-7.2/add-sodium-extension

    wimg committed Dec 24, 2017
    PHP 7.2: add sodium extension functions & constants
  8. Merge pull request #550 from wimg/feature/update-coveralls-config

    wimg committed Dec 24, 2017
    Travis: Use stable versions of Coveralls
  9. Merge pull request #548 from wimg/feature/update-version-recommended-…

    wimg committed Dec 24, 2017
    …plugin
    
    Up the version for recommended Composer plugin.
  10. ForbiddenGlobalVariableVariable: fix false positives and more

    jrfnl committed Dec 24, 2017
    The `ForbiddenGlobalVariableVariable` sniff was a little overzealous and would throw errors for valid variable variables.
    
    The sniff has now been partially refactored.
    
    The following improvements were made:
    * Don't throw errors for non-complex variable variables. Issue 537.
    * Correctly handle variable variables with whitespace or comments within the variable.
    * Throw an `error` for *each* forbidden variable. Previously only one error would be thrown per `global` statement.
        - The error is now thrown on the line containing the variable, not the line containing the `global` keyword.
        - The error message now shows the problem variable encountered.
    * Throw a `warning` for non-bare variables encountered in a `global` statement.
        - This warning has a separate errorcode allowing for easy exclusion.
        - The warning, like the error, will show the problem variable encountered.
    
    The unit tests have been redone to account for these changes.
    
    Fixes 537
  11. VariableVariables: improve code style independent sniffing

    jrfnl committed Dec 24, 2017
    Whitespace and comments are allowed to be interspersed in variables, so the sniff should take this into account.
    
    Includes additional unit tests.
Commits on Dec 23, 2017
  1. ForbiddenCallTimePassByReference: fix false positive for "bitwise and…

    jrfnl committed Dec 23, 2017
    …" preceded by global constant
    
    This was a known false positive and annotated as such in the unit test files.
    
    Simplified the `isCallTimePassByReferenceParam()` method by using the upstream `isReference()` function to determine whether a _bitwise and_ is a reference or not.
    The upstream method has some issues pre PHPCS 3.1.1, but none which impact this sniff.
    
     Fixes 39
  2. PHP 7.2: DeprecatedFunctions: add read_exif_data()

    jrfnl committed Dec 23, 2017
  3. PHP7.2: NewConstants sniff: add new Sodium extension constants

    jrfnl committed Dec 23, 2017