Skip to content

Commit

Permalink
codesniffer: Enable and fix Modernize.FunctionCalls.Dirname.Nested
Browse files Browse the repository at this point in the history
…sniff (#34218)

The WordPress-Extra ruleset turns this off. Now that we've dropped PHP
5.6, we can turn it on.

Then, of course, we have to fix all the existing instances of the
problem.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6941880745
  • Loading branch information
anomiex authored and matticbot committed Nov 21, 2023
1 parent aa23761 commit 3ade406
Show file tree
Hide file tree
Showing 46 changed files with 221 additions and 211 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {
"automattic/jetpack-autoloader": "^3.0.0",
"automattic/jetpack-autoloader": "^3.0.1-alpha",
"automattic/jetpack-composer-plugin": "^2.0.0",
"automattic/jetpack-config": "^2.0.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-identity-crisis": "^0.12.0",
"automattic/jetpack-my-jetpack": "^4.0.1-alpha",
"automattic/jetpack-search": "^0.40.0",
Expand All @@ -17,7 +17,7 @@
"automattic/jetpack-plugins-installer": "^0.3.0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"yoast/phpunit-polyfills": "1.1.0"
},
"autoload": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-admin-ui/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/jetpack-logo": "^2.0.0",
"automattic/wordbless": "dev-master"
},
Expand Down
5 changes: 5 additions & 0 deletions jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [2.0.0] - 2023-11-20
### Changed
- Updated required PHP version to >= 7.0. [#34192]
Expand Down Expand Up @@ -382,6 +386,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Statically access asset tools

[2.0.1-alpha]: https://github.com/Automattic/jetpack-assets/compare/v2.0.0...v2.0.1-alpha
[2.0.0]: https://github.com/Automattic/jetpack-assets/compare/v1.18.15...v2.0.0
[1.18.15]: https://github.com/Automattic/jetpack-assets/compare/v1.18.14...v1.18.15
[1.18.14]: https://github.com/Automattic/jetpack-assets/compare/v1.18.13...v1.18.14
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-assets/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-config/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
5 changes: 5 additions & 0 deletions jetpack_vendor/automattic/jetpack-connection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [2.0.0] - 2023-11-20
### Added
- Confirm blog ID and access token were saved before proceeding with connection flow. [#34136]
Expand Down Expand Up @@ -923,6 +927,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Separate the connection library into its own package.

[2.0.1-alpha]: https://github.com/Automattic/jetpack-connection/compare/v2.0.0...v2.0.1-alpha
[2.0.0]: https://github.com/Automattic/jetpack-connection/compare/v1.60.1...v2.0.0
[1.60.1]: https://github.com/Automattic/jetpack-connection/compare/v1.60.0...v1.60.1
[1.60.0]: https://github.com/Automattic/jetpack-connection/compare/v1.59.0...v1.60.0
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-connection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"automattic/wordbless": "@dev",
"yoast/phpunit-polyfills": "1.1.0",
"brain/monkey": "2.6.1",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '2.0.0';
const PACKAGE_VERSION = '2.0.1-alpha';

const PACKAGE_SLUG = 'connection';

Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-constants/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-constants": "^2.0.0",
"automattic/jetpack-status": "^2.0.0",
"automattic/jetpack-logo": "^2.0.0",
"automattic/jetpack-assets": "^2.0.0"
"automattic/jetpack-assets": "^2.0.1-alpha"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/wordbless": "@dev"
},
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-ip/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-jitm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"require": {
"php": ">=7.0",
"automattic/jetpack-a8c-mc-stats": "^2.0.0",
"automattic/jetpack-assets": "^2.0.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-assets": "^2.0.1-alpha",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-device-detection": "^2.0.0",
"automattic/jetpack-logo": "^2.0.0",
"automattic/jetpack-redirect": "^2.0.0",
Expand All @@ -16,7 +16,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
4 changes: 2 additions & 2 deletions jetpack_vendor/automattic/jetpack-licensing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.0.0"
"automattic/jetpack-connection": "^2.0.1-alpha"
},
"require-dev": {
"automattic/wordbless": "@dev",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-logo/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-my-jetpack/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"require": {
"php": ">=7.0",
"automattic/jetpack-admin-ui": "^0.3.0",
"automattic/jetpack-assets": "^2.0.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-assets": "^2.0.1-alpha",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-jitm": "^3.0.0",
"automattic/jetpack-licensing": "^2.0.1-alpha",
"automattic/jetpack-plugins-installer": "^0.3.0",
Expand All @@ -17,7 +17,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/wordbless": "@dev",
"automattic/jetpack-videopress": "^0.21.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/wordbless": "@dev",
"yoast/phpunit-polyfills": "1.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-redirect/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-roles/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0"
"automattic/jetpack-changelogger": "^4.0.1-alpha"
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-search/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-assets": "^2.0.0",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-assets": "^2.0.1-alpha",
"automattic/jetpack-constants": "^2.0.0",
"automattic/jetpack-status": "^2.0.0",
"automattic/jetpack-config": "^2.0.0",
"automattic/jetpack-my-jetpack": "^4.0.1-alpha"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/wordbless": "0.4.2"
},
Expand Down
6 changes: 3 additions & 3 deletions jetpack_vendor/automattic/jetpack-stats/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-assets": "^2.0.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-assets": "^2.0.1-alpha",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-constants": "^2.0.0",
"automattic/jetpack-status": "^2.0.0"
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/wordbless": "dev-master"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-status/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require-dev": {
"brain/monkey": "2.6.1",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/jetpack-ip": "^0.2.0"
},
"suggest": {
Expand Down
4 changes: 2 additions & 2 deletions jetpack_vendor/automattic/jetpack-sync/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.0.0",
"automattic/jetpack-connection": "^2.0.1-alpha",
"automattic/jetpack-constants": "^2.0.0",
"automattic/jetpack-identity-crisis": "^0.12.0",
"automattic/jetpack-password-checker": "^0.3.0",
Expand All @@ -14,7 +14,7 @@
"automattic/jetpack-status": "^2.0.0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"yoast/phpunit-polyfills": "1.1.0",
"automattic/wordbless": "@dev"
},
Expand Down
4 changes: 2 additions & 2 deletions jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
),
'jetpack-assets' => array(
'path' => 'jetpack_vendor/automattic/jetpack-assets',
'ver' => '2.0.0',
'ver' => '2.0.1-alpha1700559279',
),
'jetpack-config' => array(
'path' => 'jetpack_vendor/automattic/jetpack-config',
'ver' => '2.0.0',
),
'jetpack-connection' => array(
'path' => 'jetpack_vendor/automattic/jetpack-connection',
'ver' => '2.0.0',
'ver' => '2.0.1-alpha1700559279',
),
'jetpack-idc' => array(
'path' => 'jetpack_vendor/automattic/jetpack-identity-crisis',
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload_packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpb462338fb66be23595d68a93345c9e3d_jetpack_searchⓥ2_0_0_alpha\al3_0_0;
namespace Automattic\Jetpack\Autoloader\jpb462338fb66be23595d68a93345c9e3d_jetpack_searchⓥ2_0_0_alpha\al3_0_1_alpha;

// phpcs:ignore

Expand Down
4 changes: 2 additions & 2 deletions vendor/automattic/jetpack-plans/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-connection": "^2.0.0"
"automattic/jetpack-connection": "^2.0.1-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "1.1.0",
"automattic/jetpack-changelogger": "^4.0.0",
"automattic/jetpack-changelogger": "^4.0.1-alpha",
"automattic/jetpack-status": "^2.0.0",
"automattic/wordbless": "@dev"
},
Expand Down
Loading

0 comments on commit 3ade406

Please sign in to comment.