Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PHPCompatibility/PHPCompatibilityWP
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.2
Choose a base ref
...
head repository: PHPCompatibility/PHPCompatibilityWP
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.1.3
Choose a head ref
  • 10 commits
  • 5 files changed
  • 3 contributors

Commits on Dec 23, 2021

  1. Composer: allow the PHPCS plugin

    The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS.
    
    As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run. This adds the necessary configuration for that.
    
    Refs:
    * https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
    jrfnl committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    778f975 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2021

  1. GH Actions: always use --no-interaction for Composer

    Adding `--no-interaction` to "plain" Composer commands to potentially prevent CI hanging if, for whatever reason, interaction would be needed in the future.
    jrfnl committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    30ecff2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #33 from PHPCompatibility/feature/composer-allow-p…

    …hpcs-plugin
    
    Composer: allow the PHPCS plugin
    jrfnl authored Dec 24, 2021
    Configuration menu
    Copy the full SHA
    fd32322 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #34 from PHPCompatibility/feature/ghactions-compos…

    …er-no-interaction
    
    GH Actions: always use --no-interaction for Composer
    jrfnl authored Dec 24, 2021
    Configuration menu
    Copy the full SHA
    80cb451 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. WP 5.9: account for new function polyfills

    WP 5.9 contains polyfills for five new PHP native functions:
    * `array_key_first()` and `array_key_last()`, which were both introduced in PHP 7.3.
    * `str_contains()`, `str_starts_with()` and `str_ends_with()`, which were introduced in PHP 8.0.
    
    While the PHP 8.0 functions are not yet flagged by the latest release of PHPCompatibility, they will be once PHPCompatibility 10.0 comes out.
    
    As `exclude`-ing error codes which don't exist yet does not lead to errors in PHPCS, we may as well add the exclusions for all WP 5.9 polyfills in one go.
    
    Refs:
    * https://core.trac.wordpress.org/changeset/52038
    * https://core.trac.wordpress.org/changeset/52039
    * https://core.trac.wordpress.org/changeset/52040
    * https://core.trac.wordpress.org/browser/trunk/src/wp-includes/compat.php#L398-L479
    jrfnl committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    cff118c View commit details
    Browse the repository at this point in the history
  2. README: update for Composer 2.2

    Using the `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is recommended to register external PHPCS standards with PHPCS.
    
    As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run.
    
    This commit adds the CLI command to set those permissions to the installation instructions.
    
    Includes removing a few redundant `composer install`s.
    
    Refs:
    * https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
    jrfnl committed Dec 29, 2021
    Configuration menu
    Copy the full SHA
    52174dd View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2021

  1. Merge pull request #36 from PHPCompatibility/feature/readme-update-fo…

    …r-composer-2.2
    
    README: update for Composer 2.2
    wimg authored Dec 30, 2021
    Configuration menu
    Copy the full SHA
    ab5a0e6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #35 from PHPCompatibility/feature/update-for-wp-5.9

    WP 5.9: account for new function polyfills
    wimg authored Dec 30, 2021
    Configuration menu
    Copy the full SHA
    d752c8a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f315e59 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #37 from PHPCompatibility/feature/changelog-2.1.3

    Changelog for the release of version 2.1.3
    wimg authored Dec 30, 2021
    Configuration menu
    Copy the full SHA
    d55de55 View commit details
    Browse the repository at this point in the history
Loading