diff --git a/.github/files/phpcompatibility-dev-phpcs.xml b/.github/files/phpcompatibility-dev-phpcs.xml
index 300dc543d04cb..59c6bab7d92c8 100644
--- a/.github/files/phpcompatibility-dev-phpcs.xml
+++ b/.github/files/phpcompatibility-dev-phpcs.xml
@@ -8,8 +8,5 @@
-
-
-
diff --git a/.github/versions.sh b/.github/versions.sh
index 0064576962d11..839057a1c8579 100644
--- a/.github/versions.sh
+++ b/.github/versions.sh
@@ -5,5 +5,5 @@ NODE_VERSION=22.9.0
PNPM_VERSION=9.3.0
# Other useful version numbers.
-MIN_PHP_VERSION=7.0
+MIN_PHP_VERSION=7.2
MAX_PHP_VERSION=8.3
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index dce7a5cd5d839..df0f263673272 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -171,7 +171,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- php-versions: [ '7.0', '7.2', '7.4', '8.0', '8.1', '8.2', '8.3' ]
+ php-versions: [ '7.2', '7.4', '8.0', '8.1', '8.2', '8.3' ]
experimental: [ false ]
steps:
diff --git a/.phan/config.base.php b/.phan/config.base.php
index 9ffd5b166aa90..97c272c219115 100644
--- a/.phan/config.base.php
+++ b/.phan/config.base.php
@@ -268,11 +268,5 @@ function make_phan_config( $dir, $options = array() ) {
$config['minimum_target_php_version'] = $m[1];
}
- // Disable PhanDeprecatedImplicitNullableParam if still supporting PHP 7.0
- // @todo Remove this once we drop PHP 7.0 support everywhere.
- if ( isset( $config['minimum_target_php_version'] ) && version_compare( $config['minimum_target_php_version'], '7.1.0', '<' ) ) {
- $config['suppress_issue_types'][] = 'PhanDeprecatedImplicitNullableParam';
- }
-
return $config;
}
diff --git a/.phpcs.config.xml b/.phpcs.config.xml
index da1eccf39ea3b..3b2916e6d59b4 100644
--- a/.phpcs.config.xml
+++ b/.phpcs.config.xml
@@ -3,7 +3,7 @@
-
+
diff --git a/composer.lock b/composer.lock
index 6f94c302cd1f3..827ca54d3572c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -13,10 +13,10 @@
"dist": {
"type": "path",
"url": "projects/packages/ignorefile",
- "reference": "f50f9c9e55fbcb3cb0e8bbdcce950bf8fec6b107"
+ "reference": "8f2d11d1b20847517f10a70eef2e362084bdffdc"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -187,11 +187,11 @@
"dist": {
"type": "path",
"url": "projects/packages/phpcs-filter",
- "reference": "dbe1ec842434405b5f5e1805bcfddb851b821199"
+ "reference": "0425b29cbd8e6ee012478f89f605f593f3beda54"
},
"require": {
"automattic/ignorefile": "@dev",
- "php": ">=7.0",
+ "php": ">=7.2",
"squizlabs/php_codesniffer": "^3.6.1"
},
"require-dev": {
diff --git a/docs/development-environment.md b/docs/development-environment.md
index 79a541d12811c..bb939ef5d6f02 100644
--- a/docs/development-environment.md
+++ b/docs/development-environment.md
@@ -384,9 +384,9 @@ We strongly recommend that you install tools to review your code in your IDE. It
composer phpcs:lint
```
-* ### Checking Jetpack's PHP for compatibility with different versions of PHP since 7.0
+* ### Checking Jetpack's PHP for compatibility with different versions of PHP
- We have a handy `composer` script that will just run the PHP CodeSniffer `PHPCompatibilityWP` ruleset checking for code not compatible with PHP 7.0
+ We have a handy `composer` script that will just run the PHP CodeSniffer `PHPCompatibilityWP` ruleset checking for code not compatible with supported PHP versions:
```sh
composer phpcs:compatibility
diff --git a/docs/monorepo.md b/docs/monorepo.md
index ca7b1c57f019c..32969cf38e041 100644
--- a/docs/monorepo.md
+++ b/docs/monorepo.md
@@ -41,7 +41,7 @@ All GitHub Actions configuration for the monorepo, including CI, lives in `.gith
## Compatibility
-All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.0 to 8.3.
+All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.2 to 8.3.
## First Time
@@ -266,7 +266,7 @@ If a project contains PHP tests (typically PHPUnit), it must define `.scripts.te
A MySQL database is available if needed; credentials may be found in `~/.my.cnf`. Note that the host must be specified as `127.0.0.1`, as when passed `localhost` PHP will try to connect via a Unix domain socket which is not available in the Actions environment.
-Tests are run with a variety of supported PHP versions from 7.0 to 8.3. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
+Tests are run with a variety of supported PHP versions from 7.2 to 8.3. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
#### PHP tests for non-plugins
@@ -274,7 +274,7 @@ For all project types other than WordPress plugins, the necessary version of PHP
We currently make use of the following packages in testing; it's encouraged to use these rather than introducing other tools that serve the same purpose.
-* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 6.5 to 9.0, to support PHP 7.0 to 8.3.
+* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 8.5 to 9.6, to support PHP 7.2 to 8.3.
* Do not use `Yoast\PHPUnitPolyfills\TestCases\TestCase` or `Yoast\PHPUnitPolyfills\TestCases\XTestCase`. Just use the `@before`, `@after`, `@beforeClass`, and `@afterClass` annotations directly.
* PHPUnit's built-in mocking is used for class mocks.
* [brain/monkey](https://packagist.org/packages/brain/monkey) is used for mocking functions, and can also provide some functions for minimal WordPress compatibility.
diff --git a/docs/testing/regression-checklist/regression-checklist.md b/docs/testing/regression-checklist/regression-checklist.md
index 73ac25801ec83..f1daf606aee41 100644
--- a/docs/testing/regression-checklist/regression-checklist.md
+++ b/docs/testing/regression-checklist/regression-checklist.md
@@ -21,7 +21,7 @@ NOTE: it might become outdated, so it could be a good idea to generate this file
### PHP versions(Low)
-- 7.0 - current
+- 7.2 - current
### Hosting providers(High)
diff --git a/projects/packages/a8c-mc-stats/changelog/update-bump_min_php_to_7.2 b/projects/packages/a8c-mc-stats/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/a8c-mc-stats/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/a8c-mc-stats/composer.json b/projects/packages/a8c-mc-stats/composer.json
index 0fbedf48ad2aa..11d5edb086b3a 100644
--- a/projects/packages/a8c-mc-stats/composer.json
+++ b/projects/packages/a8c-mc-stats/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/admin-ui/changelog/update-bump_min_php_to_7.2 b/projects/packages/admin-ui/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/admin-ui/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/admin-ui/composer.json b/projects/packages/admin-ui/composer.json
index 63caa0fe2cc9e..b0f000a419c74 100644
--- a/projects/packages/admin-ui/composer.json
+++ b/projects/packages/admin-ui/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/analyzer/changelog/update-bump_min_php_to_7.2 b/projects/packages/analyzer/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/analyzer/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/analyzer/composer.json b/projects/packages/analyzer/composer.json
index 1478edbe4c422..025c69c8ecb13 100644
--- a/projects/packages/analyzer/composer.json
+++ b/projects/packages/analyzer/composer.json
@@ -8,7 +8,7 @@
"static analysis"
],
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"nikic/php-parser": "4.13.2"
},
"require-dev": {
diff --git a/projects/packages/assets/changelog/update-bump_min_php_to_7.2 b/projects/packages/assets/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/assets/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/assets/composer.json b/projects/packages/assets/composer.json
index d7d0211082f31..2318c0dc6ee4e 100644
--- a/projects/packages/assets/composer.json
+++ b/projects/packages/assets/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-constants": "@dev"
},
"require-dev": {
diff --git a/projects/packages/assets/tests/php/test-assets.php b/projects/packages/assets/tests/php/test-assets.php
index 426fea7dc6cb0..a05ef64ad4b2a 100644
--- a/projects/packages/assets/tests/php/test-assets.php
+++ b/projects/packages/assets/tests/php/test-assets.php
@@ -343,9 +343,8 @@ public function test_register_script( $args, $expect, $extra = array() ) {
$this->expectExceptionMessage( $extra['exception']->getMessage() );
}
if ( isset( $extra['enqueue'] ) ) {
- // @phan-suppress-next-line PhanDeprecatedFunction -- Keep using setMethods until we drop PHP 7.0 support.
$obj = $this->getMockBuilder( \stdClass::class )
- ->setMethods( array( 'get_data' ) )
+ ->addMethods( array( 'get_data' ) )
->getMock();
$obj->method( 'get_data' )->with( ...$extra['enqueue'][0] )->willReturn( $extra['enqueue'][1] );
Functions\expect( 'wp_scripts' )->andReturn( $obj );
@@ -727,9 +726,8 @@ function ( $v ) {
$obj->andReturn( $options['filter'] );
}
- // @phan-suppress-next-line PhanDeprecatedFunction -- Keep using setMethods until we drop PHP 7.0 support.
$mock = $this->getMockBuilder( \stdClass::class )
- ->setMethods( array( 'add', 'add_inline_script', 'add_data' ) )
+ ->addMethods( array( 'add', 'add_inline_script', 'add_data' ) )
->getMock();
// Unfortunately PHPUnit deprecated withConsecutive with no replacement, so we have to roll our own version.
diff --git a/projects/packages/autoloader/changelog/update-bump_min_php_to_7.2 b/projects/packages/autoloader/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/autoloader/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/autoloader/composer.json b/projects/packages/autoloader/composer.json
index e4deacf03eee0..6f4d2963ccfb4 100644
--- a/projects/packages/autoloader/composer.json
+++ b/projects/packages/autoloader/composer.json
@@ -12,7 +12,7 @@
"wordpress"
],
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"composer-plugin-api": "^1.1 || ^2.0"
},
"require-dev": {
diff --git a/projects/packages/autoloader/tests/php/tests/unit/PHPAutoloaderTest.php b/projects/packages/autoloader/tests/php/tests/unit/PHPAutoloaderTest.php
index 73d73faf2f4e3..1a73144fc6793 100644
--- a/projects/packages/autoloader/tests/php/tests/unit/PHPAutoloaderTest.php
+++ b/projects/packages/autoloader/tests/php/tests/unit/PHPAutoloaderTest.php
@@ -70,10 +70,9 @@ public function test_unregister_autoloader() {
* Tests that class files are loaded correctly.
*/
public function test_load_class() {
- // @phan-suppress-next-line PhanDeprecatedFunction -- Keep using setMethods until we drop PHP 7.0 support.
$loader = $this->getMockBuilder( Version_Loader::class )
->disableOriginalConstructor()
- ->setMethods( array( 'find_class_file' ) )
+ ->onlyMethods( array( 'find_class_file' ) )
->getMock();
global $jetpack_autoloader_loader;
@@ -91,10 +90,9 @@ public function test_load_class() {
* Tests that nothing happens when a class file isn't found.
*/
public function test_load_class_does_nothing_without_class() {
- // @phan-suppress-next-line PhanDeprecatedFunction -- Keep using setMethods until we drop PHP 7.0 support.
$loader = $this->getMockBuilder( Version_Loader::class )
->disableOriginalConstructor()
- ->setMethods( array( 'find_class_file' ) )
+ ->onlyMethods( array( 'find_class_file' ) )
->getMock();
global $jetpack_autoloader_loader;
diff --git a/projects/packages/backup-helper-script-manager/changelog/update-bump_min_php_to_7.2 b/projects/packages/backup-helper-script-manager/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/backup-helper-script-manager/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/backup-helper-script-manager/composer.json b/projects/packages/backup-helper-script-manager/composer.json
index 45272dfe82812..c86ec225a3498 100644
--- a/projects/packages/backup-helper-script-manager/composer.json
+++ b/projects/packages/backup-helper-script-manager/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/backup/changelog/update-bump_min_php_to_7.2 b/projects/packages/backup/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/backup/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/backup/composer.json b/projects/packages/backup/composer.json
index 66b8922f23d54..e324f5c4ac7d0 100644
--- a/projects/packages/backup/composer.json
+++ b/projects/packages/backup/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-admin-ui": "@dev",
"automattic/jetpack-autoloader": "@dev",
diff --git a/projects/packages/blaze/changelog/update-bump_min_php_to_7.2 b/projects/packages/blaze/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/blaze/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/blaze/composer.json b/projects/packages/blaze/composer.json
index 12d0795eea18b..064b4c85c494c 100644
--- a/projects/packages/blaze/composer.json
+++ b/projects/packages/blaze/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
diff --git a/projects/packages/blocks/changelog/update-bump_min_php_to_7.2 b/projects/packages/blocks/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/blocks/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/blocks/composer.json b/projects/packages/blocks/composer.json
index cff434c9924a0..8cd79f853a41c 100644
--- a/projects/packages/blocks/composer.json
+++ b/projects/packages/blocks/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-constants": "@dev"
},
"require-dev": {
diff --git a/projects/packages/boost-core/changelog/update-bump_min_php_to_7.2 b/projects/packages/boost-core/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/boost-core/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/boost-core/composer.json b/projects/packages/boost-core/composer.json
index 1f13a329ee7a9..702e82adf1a49 100644
--- a/projects/packages/boost-core/composer.json
+++ b/projects/packages/boost-core/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev"
},
"require-dev": {
diff --git a/projects/packages/boost-speed-score/changelog/update-bump_min_php_to_7.2 b/projects/packages/boost-speed-score/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/boost-speed-score/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/boost-speed-score/composer.json b/projects/packages/boost-speed-score/composer.json
index 1f105771bc52c..88d004cccd692 100644
--- a/projects/packages/boost-speed-score/composer.json
+++ b/projects/packages/boost-speed-score/composer.json
@@ -14,7 +14,7 @@
}
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-boost-core": "@dev"
},
"autoload": {
diff --git a/projects/packages/calypsoify/changelog/update-bump_min_php_to_7.2 b/projects/packages/calypsoify/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/calypsoify/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/calypsoify/composer.json b/projects/packages/calypsoify/composer.json
index 3ab2ff0d01caf..7d2eb3e7cb0c7 100644
--- a/projects/packages/calypsoify/composer.json
+++ b/projects/packages/calypsoify/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev"
},
diff --git a/projects/packages/changelogger/changelog/update-bump_min_php_to_7.2 b/projects/packages/changelogger/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/changelogger/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/changelogger/composer.json b/projects/packages/changelogger/composer.json
index 7dd64ff4b2f07..a306ed0da19e1 100644
--- a/projects/packages/changelogger/composer.json
+++ b/projects/packages/changelogger/composer.json
@@ -10,7 +10,7 @@
"dev"
],
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/packages/changelogger/src/CommandLoader.php b/projects/packages/changelogger/src/CommandLoader.php
index 1cbeca07f67d8..a707fd74b3aa8 100644
--- a/projects/packages/changelogger/src/CommandLoader.php
+++ b/projects/packages/changelogger/src/CommandLoader.php
@@ -70,7 +70,6 @@ protected function doGetNames() {
* Checks if a command exists.
*
* @param string $name Command name.
- * @phan-suppress-previous-line PhanParamSignatureRealMismatchHasNoParamType -- Parameter type widening is allowed since php 7.2, and this only widens since symfony/console 5.0 which requires 7.2.5. Adding `string` would break compatibility with earlier symfony/console versions needed to support 7.0 and 7.1.
* @return bool
*/
public function has( $name ): bool {
@@ -81,7 +80,6 @@ public function has( $name ): bool {
* Loads a command.
*
* @param string $name Command name.
- * @phan-suppress-previous-line PhanParamSignatureRealMismatchHasNoParamType -- Parameter type widening is allowed since php 7.2, and this only widens since symfony/console 5.0 which requires 7.2.5. Adding `string` would break compatibility with earlier symfony/console versions needed to support 7.0 and 7.1.
* @return Command
* @throws CommandNotFoundException If the command is not found.
*/
diff --git a/projects/packages/changelogger/tests/php/tests/src/Plugins/SemverVersioningTest.php b/projects/packages/changelogger/tests/php/tests/src/Plugins/SemverVersioningTest.php
index c69198d11006d..56e41aa756481 100644
--- a/projects/packages/changelogger/tests/php/tests/src/Plugins/SemverVersioningTest.php
+++ b/projects/packages/changelogger/tests/php/tests/src/Plugins/SemverVersioningTest.php
@@ -256,9 +256,8 @@ public function provideNormalizeVersion() {
public function testNextVersion( $version, array $changes, array $extra, $expect, $expectOutput = '' ) {
$obj = new SemverVersioning();
- // @phan-suppress-next-line PhanDeprecatedFunction -- Hopefully we drop PHP <7.2 before having to deal with this, as the designated replacement isn't until PHPUnit 8.
$out1 = $this->getMockBuilder( BufferedOutput::class )
- ->setMethods( array( 'getErrorOutput' ) )
+ ->addMethods( array( 'getErrorOutput' ) )
->getMock();
$out2 = new BufferedOutput();
$out1->method( 'getErrorOutput' )->willReturn( $out2 );
diff --git a/projects/packages/changelogger/tests/php/tests/src/Plugins/WordpressVersioningTest.php b/projects/packages/changelogger/tests/php/tests/src/Plugins/WordpressVersioningTest.php
index 1eff386c02396..d4add25c9524b 100644
--- a/projects/packages/changelogger/tests/php/tests/src/Plugins/WordpressVersioningTest.php
+++ b/projects/packages/changelogger/tests/php/tests/src/Plugins/WordpressVersioningTest.php
@@ -339,9 +339,8 @@ public function provideNormalizeVersion() {
public function testNextVersion( $version, array $changes, array $extra, $expect, $expectPoint = null ) {
$obj = new WordpressVersioning();
- // @phan-suppress-next-line PhanDeprecatedFunction -- Hopefully we drop PHP <7.2 before having to deal with this, as the designated replacement isn't until PHPUnit 8.
$out1 = $this->getMockBuilder( BufferedOutput::class )
- ->setMethods( array( 'getErrorOutput' ) )
+ ->addMethods( array( 'getErrorOutput' ) )
->getMock();
$out2 = new BufferedOutput();
$out1->method( 'getErrorOutput' )->willReturn( $out2 );
diff --git a/projects/packages/changelogger/tests/php/tests/src/SquashCommandTest.php b/projects/packages/changelogger/tests/php/tests/src/SquashCommandTest.php
index 05e83ed1999e6..9f6e441ac20da 100644
--- a/projects/packages/changelogger/tests/php/tests/src/SquashCommandTest.php
+++ b/projects/packages/changelogger/tests/php/tests/src/SquashCommandTest.php
@@ -612,9 +612,8 @@ public function testWriteChangelog_writeError() {
* Test execute handling of writeChangelog failing.
*/
public function testExecute_writeChangelog_fail() {
- // @phan-suppress-next-line PhanDeprecatedFunction -- Hopefully we drop PHP <7.2 before having to deal with this, as the designated replacement isn't until PHPUnit 8.
$command = $this->getMockBuilder( SquashCommand::class )
- ->setMethods( array( 'writeChangelog', 'deleteChanges' ) )
+ ->onlyMethods( array( 'writeChangelog', 'deleteChanges' ) )
->getMock();
$command->setApplication( $this->getCommand( 'squash' )->getApplication() );
$command->method( 'writeChangelog' )->willReturn( SquashCommand::FATAL_EXIT );
diff --git a/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php b/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php
index 1ea6e7d0c1f6d..ca4df65b2eacf 100644
--- a/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php
+++ b/projects/packages/changelogger/tests/php/tests/src/WriteCommandTest.php
@@ -1186,9 +1186,8 @@ public function testDeleteChanges_error() {
* Test execute handling of writeChangelog failing.
*/
public function testExecute_writeChangelog_fail() {
- // @phan-suppress-next-line PhanDeprecatedFunction -- Hopefully we drop PHP <7.2 before having to deal with this, as the designated replacement isn't until PHPUnit 8.
$command = $this->getMockBuilder( WriteCommand::class )
- ->setMethods( array( 'writeChangelog', 'deleteChanges' ) )
+ ->onlyMethods( array( 'writeChangelog', 'deleteChanges' ) )
->getMock();
$command->setApplication( $this->getCommand( 'write' )->getApplication() );
$command->method( 'writeChangelog' )->willReturn( WriteCommand::FATAL_EXIT );
diff --git a/projects/packages/chatbot/changelog/update-bump_min_php_to_7.2 b/projects/packages/chatbot/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/chatbot/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/chatbot/composer.json b/projects/packages/chatbot/composer.json
index e01286bb90664..bcc49a83b367e 100644
--- a/projects/packages/chatbot/composer.json
+++ b/projects/packages/chatbot/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/classic-theme-helper/changelog/update-bump_min_php_to_7.2 b/projects/packages/classic-theme-helper/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/classic-theme-helper/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/classic-theme-helper/composer.json b/projects/packages/classic-theme-helper/composer.json
index 00bdf5c7a6e13..08fe9a41285e2 100644
--- a/projects/packages/classic-theme-helper/composer.json
+++ b/projects/packages/classic-theme-helper/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev"
},
"require-dev": {
diff --git a/projects/packages/codesniffer/changelog/update-bump_min_php_to_7.2 b/projects/packages/codesniffer/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/codesniffer/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.fixed b/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.fixed
index f1ef232733899..e9a3d806cdd59 100644
--- a/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.fixed
+++ b/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.fixed
@@ -36,7 +36,7 @@ class Dummy_Test extends TestCase {
$this->assertSame( 1, $u->var );
// MediaWiki.PHPUnit.MockBoilerplate
- $mock = $this->getMockBuilder( Foo::class )->setMethods( array( 'foobar' ) )->getMock();
+ $mock = $this->getMockBuilder( Foo::class )->onlyMethods( array( 'foobar' ) )->getMock();
$mock->expects( $this->once() )
->method( 'foobar' )
->willReturn( 42 );
diff --git a/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.tolint b/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.tolint
index 24023b79e9b74..5346e5a1d0bf0 100644
--- a/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.tolint
+++ b/projects/packages/codesniffer/tests/php/tests/files/mediawiki-imports-phpunit.php.tolint
@@ -36,7 +36,7 @@ class Dummy_Test extends TestCase {
$this->assertSame( $u->var, 1 );
// MediaWiki.PHPUnit.MockBoilerplate
- $mock = $this->getMockBuilder( Foo::class )->setMethods( array( 'foobar' ) )->getMock();
+ $mock = $this->getMockBuilder( Foo::class )->onlyMethods( array( 'foobar' ) )->getMock();
$mock->expects( $this->exactly( 1 ) )
->method( 'foobar' )
->will( $this->returnValue( 42 ) );
diff --git a/projects/packages/compat/changelog/update-bump_min_php_to_7.2 b/projects/packages/compat/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/compat/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/compat/composer.json b/projects/packages/compat/composer.json
index d5fd22351e1fe..f532c84674daa 100644
--- a/projects/packages/compat/composer.json
+++ b/projects/packages/compat/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev"
diff --git a/projects/packages/composer-plugin/changelog/update-bump_min_php_to_7.2 b/projects/packages/composer-plugin/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/composer-plugin/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/composer-plugin/composer.json b/projects/packages/composer-plugin/composer.json
index f88408cbf64a6..e20233ada99d1 100644
--- a/projects/packages/composer-plugin/composer.json
+++ b/projects/packages/composer-plugin/composer.json
@@ -10,7 +10,7 @@
"i18n"
],
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"composer-plugin-api": "^2.1.0"
},
"require-dev": {
diff --git a/projects/packages/composer-plugin/src/class-manager.php b/projects/packages/composer-plugin/src/class-manager.php
index 7577edb31963c..731ed6dae5352 100644
--- a/projects/packages/composer-plugin/src/class-manager.php
+++ b/projects/packages/composer-plugin/src/class-manager.php
@@ -33,7 +33,6 @@ public function getInstallPath( PackageInterface $package ) {
*
* @param string $package_type a package type string.
* @return boolean whether the package is supported.
- * @phan-suppress PhanParamSignatureRealMismatchHasNoParamType -- contravariant params are ok, and needed to continue to support Composer <2.3.
*/
public function supports( $package_type ) {
return 'jetpack-library' === $package_type;
diff --git a/projects/packages/config/changelog/update-bump_min_php_to_7.2 b/projects/packages/config/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/config/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/config/composer.json b/projects/packages/config/composer.json
index 3c9dee1f34aba..e22a115f95d88 100644
--- a/projects/packages/config/composer.json
+++ b/projects/packages/config/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
diff --git a/projects/packages/connection/.phan/baseline.php b/projects/packages/connection/.phan/baseline.php
index a405b30cfd3c8..fd61210a7bcf7 100644
--- a/projects/packages/connection/.phan/baseline.php
+++ b/projects/packages/connection/.phan/baseline.php
@@ -11,18 +11,18 @@
// # Issue statistics:
// PhanParamTooMany : 40+ occurrences
// PhanTypeMismatchArgument : 40+ occurrences
- // PhanDeprecatedFunction : 15+ occurrences
// PhanPluginDuplicateConditionalNullCoalescing : 15+ occurrences
// PhanTypeMismatchReturn : 15+ occurrences
// PhanTypeMismatchArgumentProbablyReal : 9 occurrences
// PhanTypeMismatchPropertyProbablyReal : 9 occurrences
// PhanNoopNew : 8 occurrences
// PhanTypeMismatchReturnProbablyReal : 8 occurrences
- // PhanRedundantCondition : 5 occurrences
+ // PhanRedundantCondition : 6 occurrences
// PhanTypeArraySuspiciousNullable : 5 occurrences
// PhanTypeMismatchDefault : 5 occurrences
// PhanTypeMismatchArgumentInternal : 3 occurrences
// PhanTypeObjectUnsetDeclaredProperty : 3 occurrences
+ // PhanDeprecatedFunction : 2 occurrences
// PhanNonClassMethodCall : 2 occurrences
// PhanPluginUnreachableCode : 2 occurrences
// PhanPossiblyUndeclaredVariable : 2 occurrences
@@ -60,19 +60,15 @@
'src/sso/class-user-admin.php' => ['PhanPluginUnreachableCode', 'PhanTypeMismatchArgument'],
'src/webhooks/class-authorize-redirect.php' => ['PhanUndeclaredClassMethod'],
'tests/php/test-class-nonce-handler.php' => ['PhanPluginDuplicateAdjacentStatement', 'PhanTypeMismatchArgument'],
- 'tests/php/test-class-webhooks.php' => ['PhanDeprecatedFunction'],
- 'tests/php/test-partner-coupon.php' => ['PhanDeprecatedFunction'],
'tests/php/test-rest-endpoints.php' => ['PhanNoopNew', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal'],
- 'tests/php/test-tracking.php' => ['PhanDeprecatedFunction'],
'tests/php/test_Error_Handler.php' => ['PhanParamTooMany', 'PhanTypeMismatchArgument'],
'tests/php/test_Manager_integration.php' => ['PhanParamTooMany'],
'tests/php/test_Manager_unit.php' => ['PhanDeprecatedFunction', 'PhanParamTooMany', 'PhanTypeArraySuspiciousNullable', 'PhanTypeObjectUnsetDeclaredProperty'],
- 'tests/php/test_Rest_Authentication.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgument'],
+ 'tests/php/test_Rest_Authentication.php' => ['PhanTypeMismatchArgument'],
'tests/php/test_Server_Sandbox.php' => ['PhanTypeArraySuspiciousNullable'],
'tests/php/test_Signature.php' => ['PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/test_Tokens.php' => ['PhanDeprecatedFunction', 'PhanTypeObjectUnsetDeclaredProperty'],
- 'tests/php/test_jetpack_xmlrpc_server.php' => ['PhanDeprecatedFunction', 'PhanPluginSimplifyExpressionBool', 'PhanTypeMismatchArgument'],
- 'tests/php/test_package_version_tracker.php' => ['PhanDeprecatedFunction'],
+ 'tests/php/test_Tokens.php' => ['PhanTypeObjectUnsetDeclaredProperty'],
+ 'tests/php/test_jetpack_xmlrpc_server.php' => ['PhanPluginSimplifyExpressionBool', 'PhanTypeMismatchArgument'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
diff --git a/projects/packages/connection/changelog/update-bump_min_php_to_7.2 b/projects/packages/connection/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/connection/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/connection/composer.json b/projects/packages/connection/composer.json
index 392e01d1100d4..055b9ebf0e592 100644
--- a/projects/packages/connection/composer.json
+++ b/projects/packages/connection/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-admin-ui": "@dev",
"automattic/jetpack-assets": "@dev",
diff --git a/projects/packages/connection/src/class-manager.php b/projects/packages/connection/src/class-manager.php
index 2b5a10d653b99..8783dbff1126f 100644
--- a/projects/packages/connection/src/class-manager.php
+++ b/projects/packages/connection/src/class-manager.php
@@ -209,7 +209,7 @@ public function setup_xmlrpc_handlers(
$deprecated,
$has_connected_owner,
$is_signed,
- Jetpack_XMLRPC_Server $xmlrpc_server = null
+ ?Jetpack_XMLRPC_Server $xmlrpc_server = null
) {
add_filter( 'xmlrpc_blog_options', array( $this, 'xmlrpc_options' ), 1000, 2 );
if ( $deprecated !== null ) {
diff --git a/projects/packages/connection/tests/php/test-class-webhooks.php b/projects/packages/connection/tests/php/test-class-webhooks.php
index 86b05fab21a23..513de69adc32e 100644
--- a/projects/packages/connection/tests/php/test-class-webhooks.php
+++ b/projects/packages/connection/tests/php/test-class-webhooks.php
@@ -125,7 +125,7 @@ public function test_handle_authorize_success() {
public function test_controller() {
$webhooks = $this->getMockBuilder( Webhooks::class )
->setConstructorArgs( array( new Manager() ) )
- ->setMethods( array( 'do_exit', 'handle_authorize', 'handle_authorize_redirect' ) )
+ ->onlyMethods( array( 'do_exit', 'handle_authorize', 'handle_authorize_redirect' ) )
->getMock();
$webhooks->controller();
@@ -162,7 +162,7 @@ public function test_controller() {
public function test_handle_connect_url_redirect() {
$webhooks = $this->getMockBuilder( Webhooks::class )
->setConstructorArgs( array( new Manager() ) )
- ->setMethods( array( 'do_exit' ) )
+ ->onlyMethods( array( 'do_exit' ) )
->getMock();
Constants::set_constant( 'JETPACK__API_BASE', 'https://example.com/api/base.' );
diff --git a/projects/packages/connection/tests/php/test-partner-coupon.php b/projects/packages/connection/tests/php/test-partner-coupon.php
index 74f34a821521c..0038adc466a41 100644
--- a/projects/packages/connection/tests/php/test-partner-coupon.php
+++ b/projects/packages/connection/tests/php/test-partner-coupon.php
@@ -268,7 +268,7 @@ public function test_maybe_purge_coupon_by_availability_check( $mock_response, $
}
$mock_client = $this->getMockBuilder( \stdClass::class )
- ->setMethods( array( 'wpcom_json_api_request_as_blog' ) )
+ ->addMethods( array( 'wpcom_json_api_request_as_blog' ) )
->getMock();
$mock_client
diff --git a/projects/packages/connection/tests/php/test-tracking.php b/projects/packages/connection/tests/php/test-tracking.php
index 38a3cde08afac..208bc28ae24c1 100644
--- a/projects/packages/connection/tests/php/test-tracking.php
+++ b/projects/packages/connection/tests/php/test-tracking.php
@@ -38,7 +38,7 @@ public function set_up() {
Monkey\setUp();
$this->connection = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Manager' )
- ->setMethods( array( 'is_user_connected' ) )
+ ->onlyMethods( array( 'is_user_connected' ) )
->getMock();
$this->tracking = new Tracking( 'jetpack', $this->connection );
}
@@ -63,14 +63,14 @@ public function tear_down() {
*/
public function test_should_enable_tracking( $inputs, $expected_output ) {
$tos = $this->getMockBuilder( 'Automattic\Jetpack\Terms_Of_Service' )
- ->setMethods( array( 'has_agreed' ) )
+ ->onlyMethods( array( 'has_agreed' ) )
->getMock();
$tos->method( 'has_agreed' )
->willReturn( $inputs['has_agreed'] );
$status = $this->getMockBuilder( 'Automattic\Jetpack\Status' )
- ->setMethods( array( 'is_offline_mode' ) )
+ ->onlyMethods( array( 'is_offline_mode' ) )
->getMock();
$status->method( 'is_offline_mode' )
diff --git a/projects/packages/connection/tests/php/test_Manager_unit.php b/projects/packages/connection/tests/php/test_Manager_unit.php
index 818ae6abb082a..315fac06d92ad 100644
--- a/projects/packages/connection/tests/php/test_Manager_unit.php
+++ b/projects/packages/connection/tests/php/test_Manager_unit.php
@@ -57,11 +57,11 @@ class ManagerTest extends TestCase {
*/
public function set_up() {
$this->manager = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Manager' )
- ->setMethods( array( 'get_tokens', 'get_connection_owner_id', 'unlink_user_from_wpcom', 'update_connection_owner_wpcom', 'disconnect_site_wpcom' ) )
+ ->onlyMethods( array( 'get_tokens', 'get_connection_owner_id', 'unlink_user_from_wpcom', 'update_connection_owner_wpcom', 'disconnect_site_wpcom' ) )
->getMock();
$this->tokens = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Tokens' )
- ->setMethods( array( 'get_access_token', 'disconnect_user' ) )
+ ->onlyMethods( array( 'get_access_token', 'disconnect_user' ) )
->getMock();
$this->manager->method( 'get_tokens' )->willReturn( $this->tokens );
diff --git a/projects/packages/connection/tests/php/test_Rest_Authentication.php b/projects/packages/connection/tests/php/test_Rest_Authentication.php
index f5f33928893b6..4ad5004be00b2 100644
--- a/projects/packages/connection/tests/php/test_Rest_Authentication.php
+++ b/projects/packages/connection/tests/php/test_Rest_Authentication.php
@@ -37,7 +37,7 @@ public function set_up() {
$this->rest_authentication = Rest_Authentication::init();
$this->manager = $this->getMockBuilder( Manager::class )
- ->setMethods( array( 'verify_xml_rpc_signature', 'reset_saved_auth_state' ) )
+ ->onlyMethods( array( 'verify_xml_rpc_signature', 'reset_saved_auth_state' ) )
->getMock();
$reflection_class = new \ReflectionClass( get_class( $this->rest_authentication ) );
diff --git a/projects/packages/connection/tests/php/test_Tokens.php b/projects/packages/connection/tests/php/test_Tokens.php
index 661619cfb30a2..b8cc7ffb48f01 100644
--- a/projects/packages/connection/tests/php/test_Tokens.php
+++ b/projects/packages/connection/tests/php/test_Tokens.php
@@ -41,7 +41,7 @@ class TokensTest extends TestCase {
*/
public function set_up() {
$this->tokens = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Tokens' )
- ->setMethods( array( 'get_access_token' ) )
+ ->onlyMethods( array( 'get_access_token' ) )
->getMock();
}
diff --git a/projects/packages/connection/tests/php/test_jetpack_xmlrpc_server.php b/projects/packages/connection/tests/php/test_jetpack_xmlrpc_server.php
index 781987e75c1d8..894838710676b 100644
--- a/projects/packages/connection/tests/php/test_jetpack_xmlrpc_server.php
+++ b/projects/packages/connection/tests/php/test_jetpack_xmlrpc_server.php
@@ -433,7 +433,7 @@ public function return_nonce_404_status() {
*/
protected function get_mocked_ixr_client( $query_called = false, $response = '', $query_return = true, $error = null ) {
$xml = $this->getMockBuilder( 'Jetpack_IXR_Client' )
- ->setMethods(
+ ->onlyMethods(
array(
'query',
'isError',
diff --git a/projects/packages/connection/tests/php/test_package_version_tracker.php b/projects/packages/connection/tests/php/test_package_version_tracker.php
index 4dd3e7eea7d27..a97b8f8d4a921 100644
--- a/projects/packages/connection/tests/php/test_package_version_tracker.php
+++ b/projects/packages/connection/tests/php/test_package_version_tracker.php
@@ -96,7 +96,7 @@ public function reset_connection_status() {
*/
public function test_maybe_update_package_versions( $option_value, $filter_value, $expected_value, $updated ) {
$tracker = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Package_Version_Tracker' )
- ->setMethods( array( 'update_package_versions_option' ) )
+ ->onlyMethods( array( 'update_package_versions_option' ) )
->getMock();
update_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION, $option_value );
@@ -265,7 +265,7 @@ public function test_maybe_update_package_versions_with_rate_limit() {
set_transient( Package_Version_Tracker::RATE_LIMITER_KEY, time() );
$tracker = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Package_Version_Tracker' )
- ->setMethods( array( 'update_package_versions_option' ) )
+ ->onlyMethods( array( 'update_package_versions_option' ) )
->getMock();
update_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION, self::PACKAGE_VERSIONS );
@@ -294,7 +294,7 @@ public function test_maybe_update_package_versions_with_init_hook_not_fired() {
unset( $wp_actions['init'] );
$tracker = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Package_Version_Tracker' )
- ->setMethods( array( 'update_package_versions_option' ) )
+ ->onlyMethods( array( 'update_package_versions_option' ) )
->getMock();
update_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION, self::PACKAGE_VERSIONS );
@@ -437,7 +437,7 @@ function () {
*/
public function test_maybe_update_package_versions_with_sync_enabled() {
$tracker = $this->getMockBuilder( 'Automattic\Jetpack\Connection\Package_Version_Tracker' )
- ->setMethods( array( 'update_package_versions_via_remote_request', 'is_sync_enabled' ) )
+ ->onlyMethods( array( 'update_package_versions_via_remote_request', 'is_sync_enabled' ) )
->getMock();
update_option( Package_Version_Tracker::PACKAGE_VERSION_OPTION, self::PACKAGE_VERSIONS );
diff --git a/projects/packages/constants/changelog/update-bump_min_php_to_7.2 b/projects/packages/constants/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/constants/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/constants/composer.json b/projects/packages/constants/composer.json
index 55e48dcdaecc5..649075796c3c2 100644
--- a/projects/packages/constants/composer.json
+++ b/projects/packages/constants/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"brain/monkey": "2.6.1",
diff --git a/projects/packages/device-detection/changelog/update-bump_min_php_to_7.2 b/projects/packages/device-detection/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/device-detection/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/device-detection/composer.json b/projects/packages/device-detection/composer.json
index 30c659173ca12..a8c39238e1f1a 100644
--- a/projects/packages/device-detection/composer.json
+++ b/projects/packages/device-detection/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/error/changelog/update-bump_min_php_to_7.2 b/projects/packages/error/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/error/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/error/composer.json b/projects/packages/error/composer.json
index 03468fa95a339..0e3972459b73e 100644
--- a/projects/packages/error/composer.json
+++ b/projects/packages/error/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/explat/changelog/update-bump_min_php_to_7.2 b/projects/packages/explat/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/explat/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/explat/composer.json b/projects/packages/explat/composer.json
index 3509ed21b6f26..dd6b7f0234cac 100644
--- a/projects/packages/explat/composer.json
+++ b/projects/packages/explat/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev"
},
"require-dev": {
diff --git a/projects/packages/forms/.phan/baseline.php b/projects/packages/forms/.phan/baseline.php
index d7a12292e960f..86ad86c26202b 100644
--- a/projects/packages/forms/.phan/baseline.php
+++ b/projects/packages/forms/.phan/baseline.php
@@ -14,7 +14,6 @@
// PhanTypeMismatchReturnProbablyReal : 9 occurrences
// PhanTypeMismatchArgumentInternal : 7 occurrences
// PhanTypeMismatchArgumentProbablyReal : 6 occurrences
- // PhanDeprecatedFunction : 5 occurrences
// PhanRedundantCondition : 4 occurrences
// PhanTypePossiblyInvalidDimOffset : 3 occurrences
// PhanPluginRedundantAssignment : 2 occurrences
@@ -42,7 +41,6 @@
'src/dashboard/class-dashboard-view-switch.php' => ['PhanUnreferencedUseNormal'],
'src/service/class-google-drive.php' => ['PhanTypeMismatchReturnProbablyReal'],
'tests/php/contact-form/test-class.contact-form-plugin.php' => ['PhanPluginMixedKeyNoKey'],
- 'tests/php/contact-form/test-class.contact-form.php' => ['PhanDeprecatedFunction'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
diff --git a/projects/packages/forms/changelog/update-bump_min_php_to_7.2 b/projects/packages/forms/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/forms/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/forms/composer.json b/projects/packages/forms/composer.json
index c04fe52a94bb1..5361e8522cf94 100644
--- a/projects/packages/forms/composer.json
+++ b/projects/packages/forms/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-blocks": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-connection": "@dev",
diff --git a/projects/packages/forms/tests/php/contact-form/test-class.contact-form.php b/projects/packages/forms/tests/php/contact-form/test-class.contact-form.php
index 21210f0fcc53a..0148b98822261 100644
--- a/projects/packages/forms/tests/php/contact-form/test-class.contact-form.php
+++ b/projects/packages/forms/tests/php/contact-form/test-class.contact-form.php
@@ -1218,7 +1218,7 @@ public function test_get_export_data_for_posts_fully_valid_data() {
* @var Contact_Form_Plugin $mock
*/
$mock = $this->getMockBuilder( Contact_Form_Plugin::class )
- ->setMethods(
+ ->onlyMethods(
array(
'get_post_meta_for_csv_export',
'get_parsed_field_contents_of_post',
@@ -1338,7 +1338,7 @@ public function test_get_export_data_for_posts_invalid_single_entry_meta() {
* @var Contact_Form_Plugin $mock
* */
$mock = $this->getMockBuilder( Contact_Form_Plugin::class )
- ->setMethods(
+ ->onlyMethods(
array(
'get_post_meta_for_csv_export',
'get_parsed_field_contents_of_post',
@@ -1443,7 +1443,7 @@ public function test_get_export_data_for_posts_invalid_all_entries_meta() {
* @var Contact_Form_Plugin $mock
*/
$mock = $this->getMockBuilder( Contact_Form_Plugin::class )
- ->setMethods(
+ ->onlyMethods(
array(
'get_post_meta_for_csv_export',
'get_parsed_field_contents_of_post',
@@ -1533,7 +1533,7 @@ public function test_get_export_data_for_posts_single_invalid_entry_for_parse_fi
* @var Contact_Form_Plugin $mock
* */
$mock = $this->getMockBuilder( Contact_Form_Plugin::class )
- ->setMethods(
+ ->onlyMethods(
array(
'get_post_meta_for_csv_export',
'get_parsed_field_contents_of_post',
@@ -1646,7 +1646,7 @@ public function test_get_export_data_for_posts_all_entries_for_parse_fields_inva
* @var Contact_Form_Plugin $mock
*/
$mock = $this->getMockBuilder( Contact_Form_Plugin::class )
- ->setMethods(
+ ->onlyMethods(
array(
'get_post_meta_for_csv_export',
'get_parsed_field_contents_of_post',
diff --git a/projects/packages/google-analytics/changelog/update-bump_min_php_to_7.2 b/projects/packages/google-analytics/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/google-analytics/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/google-analytics/composer.json b/projects/packages/google-analytics/composer.json
index fd3a8e2ff0b48..b9dbd1fdbc25b 100644
--- a/projects/packages/google-analytics/composer.json
+++ b/projects/packages/google-analytics/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-status": "@dev"
},
"require-dev": {
diff --git a/projects/packages/google-analytics/tests/php/test-ga-manager.php b/projects/packages/google-analytics/tests/php/test-ga-manager.php
index 387cb4171873c..31721b3542c23 100644
--- a/projects/packages/google-analytics/tests/php/test-ga-manager.php
+++ b/projects/packages/google-analytics/tests/php/test-ga-manager.php
@@ -149,9 +149,8 @@ function () {
set_current_screen( 'front' );
// Mock `Jetpack_Google_Analytics_Legacy` instance to disable the constructor class.
- // @phan-suppress-next-line PhanDeprecatedFunction -- Conflict between PHPUnit versions, will replace with `anyMethods()` later on.
$instance = $this->getMockBuilder( Legacy::class )
- ->setMethods( null )
+ ->onlyMethods( array() )
->disableOriginalConstructor()
->getMock();
diff --git a/projects/packages/ignorefile/changelog/update-bump_min_php_to_7.2 b/projects/packages/ignorefile/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/ignorefile/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/ignorefile/composer.json b/projects/packages/ignorefile/composer.json
index 00b57b68913f2..863b10adaf4c2 100644
--- a/projects/packages/ignorefile/composer.json
+++ b/projects/packages/ignorefile/composer.json
@@ -4,7 +4,7 @@
"type": "library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
diff --git a/projects/packages/image-cdn/changelog/update-bump_min_php_to_7.2 b/projects/packages/image-cdn/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/image-cdn/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/image-cdn/composer.json b/projects/packages/image-cdn/composer.json
index 421f42cf0e4ea..d84a24ba29f00 100644
--- a/projects/packages/image-cdn/composer.json
+++ b/projects/packages/image-cdn/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev"
},
diff --git a/projects/packages/image-cdn/tests/php/test_class.image_cdn.php b/projects/packages/image-cdn/tests/php/test_class.image_cdn.php
index b7295c343f488..d4b045b259336 100644
--- a/projects/packages/image-cdn/tests/php/test_class.image_cdn.php
+++ b/projects/packages/image-cdn/tests/php/test_class.image_cdn.php
@@ -1462,7 +1462,6 @@ public function test_image_cdn_in_rest_response_with_edit_context() {
* The endpoint sets the context to edit, but not before the callback executes.
* @author kraftbj
- * @requires PHPUnit 7.5
* @group rest-api
*/
public function test_image_cdn_cdn_in_rest_response_with_created_item() {
@@ -1497,7 +1496,6 @@ public function test_image_cdn_cdn_in_rest_response_with_created_item() {
* Photonized URLs.
*
* @author ebinnion
- * @requires PHPUnit 7.5
* @group rest-api
*/
public function test_image_cdn_in_rest_response_external_media() {
diff --git a/projects/packages/import/changelog/update-bump_min_php_to_7.2 b/projects/packages/import/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/import/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/import/composer.json b/projects/packages/import/composer.json
index 0a2d79449af20..3e8d4f689fd79 100644
--- a/projects/packages/import/composer.json
+++ b/projects/packages/import/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-sync": "@dev"
},
diff --git a/projects/packages/ip/changelog/update-bump_min_php_to_7.2 b/projects/packages/ip/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/ip/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/ip/composer.json b/projects/packages/ip/composer.json
index 061bea7b8ea00..b481b2d2ae031 100644
--- a/projects/packages/ip/composer.json
+++ b/projects/packages/ip/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"brain/monkey": "2.6.1",
diff --git a/projects/packages/jetpack-mu-wpcom/changelog/update-bump_min_php_to_7.2 b/projects/packages/jetpack-mu-wpcom/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/jetpack-mu-wpcom/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/jetpack-mu-wpcom/composer.json b/projects/packages/jetpack-mu-wpcom/composer.json
index 467eeb299e116..6055fc30067d3 100644
--- a/projects/packages/jetpack-mu-wpcom/composer.json
+++ b/projects/packages/jetpack-mu-wpcom/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-blocks": "@dev",
"automattic/jetpack-calypsoify": "@dev",
diff --git a/projects/packages/jetpack-mu-wpcom/src/features/block-patterns/class-wpcom-block-patterns-from-api.php b/projects/packages/jetpack-mu-wpcom/src/features/block-patterns/class-wpcom-block-patterns-from-api.php
index 78a31b75cfeb9..96bee410c4677 100644
--- a/projects/packages/jetpack-mu-wpcom/src/features/block-patterns/class-wpcom-block-patterns-from-api.php
+++ b/projects/packages/jetpack-mu-wpcom/src/features/block-patterns/class-wpcom-block-patterns-from-api.php
@@ -28,7 +28,7 @@ class Wpcom_Block_Patterns_From_Api {
*
* @param Wpcom_Block_Patterns_Utils|null $utils A class dependency containing utils methods.
*/
- public function __construct( Wpcom_Block_Patterns_Utils $utils = null ) {
+ public function __construct( ?Wpcom_Block_Patterns_Utils $utils = null ) {
$this->utils = empty( $utils ) ? new Wpcom_Block_Patterns_Utils() : $utils;
}
diff --git a/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx b/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx
index 0eb6d3f32e52d..2263c65e57710 100644
--- a/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx
+++ b/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx
@@ -42,10 +42,8 @@ export function PagePatternsPlugin( props: PagePatternsPluginProps ) {
isOpen: isOpen(),
isWelcomeGuideActive: (
select( 'core/edit-post' ) as CoreEditPostPlaceholder
- ).isFeatureActive( 'welcomeGuide' ) as boolean, // Gutenberg 7.2.0 or higher
- areTipsEnabled: select( 'core/nux' )
- ? ( ( select( 'core/nux' ) as CoreNuxPlaceholder ).areTipsEnabled() as boolean )
- : false, // Gutenberg 7.1.0 or lower
+ ).isFeatureActive( 'welcomeGuide' ) as boolean,
+ areTipsEnabled: ( select( 'core/nux' ) as CoreNuxPlaceholder ).areTipsEnabled() as boolean,
...( isPatternPicker() && {
title: __( 'Choose a Pattern', 'jetpack-mu-wpcom' ),
description: __(
diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/index.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/index.php
index 4c65d25da33e0..cd1bc2fd6ece8 100644
--- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/index.php
+++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/index.php
@@ -590,7 +590,7 @@ class="launch-bar-global-styles-reset"
*
* @return bool
*/
-function wpcom_is_previewing_global_styles( int $user_id = null ) {
+function wpcom_is_previewing_global_styles( ?int $user_id = null ) {
if ( null === $user_id ) {
$user_id = get_current_user_id();
}
diff --git a/projects/packages/jitm/changelog/update-bump_min_php_to_7.2 b/projects/packages/jitm/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/jitm/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/jitm/composer.json b/projects/packages/jitm/composer.json
index 90beadbb7a794..4550c23351a1d 100644
--- a/projects/packages/jitm/composer.json
+++ b/projects/packages/jitm/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-connection": "@dev",
diff --git a/projects/packages/licensing/changelog/update-bump_min_php_to_7.2 b/projects/packages/licensing/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/licensing/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/licensing/composer.json b/projects/packages/licensing/composer.json
index 5e85bbceba237..ebd3b3dc799f7 100644
--- a/projects/packages/licensing/composer.json
+++ b/projects/packages/licensing/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev"
},
"require-dev": {
diff --git a/projects/packages/logo/changelog/update-bump_min_php_to_7.2 b/projects/packages/logo/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/logo/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/logo/composer.json b/projects/packages/logo/composer.json
index 5fd08180285c8..04e15aa246fc1 100644
--- a/projects/packages/logo/composer.json
+++ b/projects/packages/logo/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/masterbar/changelog/update-bump_min_php_to_7.2 b/projects/packages/masterbar/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/masterbar/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/masterbar/composer.json b/projects/packages/masterbar/composer.json
index 08ad21f57012b..4843be46c314b 100644
--- a/projects/packages/masterbar/composer.json
+++ b/projects/packages/masterbar/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-blaze": "@dev",
"automattic/jetpack-compat": "@dev",
diff --git a/projects/packages/masterbar/tests/php/test-class-domain-only-admin-menu.php b/projects/packages/masterbar/tests/php/test-class-domain-only-admin-menu.php
index 6cd2cac27dcb1..414da790ef553 100644
--- a/projects/packages/masterbar/tests/php/test-class-domain-only-admin-menu.php
+++ b/projects/packages/masterbar/tests/php/test-class-domain-only-admin-menu.php
@@ -100,8 +100,7 @@ public function tear_down() {
public function test_reregister_menu_items_without_email_subscriptions() {
global $menu;
- // @phan-suppress-next-line PhanDeprecatedFunction -- Needed for PHP 7.0 and 7.1 CI tests. We can replace with onlyMethods once WP 6.7 comes out.
- $mock_email_checker = $this->getMockBuilder( WPCOM_Email_Subscription_Checker::class )->setMethods( array( 'has_email' ) )->getMock();
+ $mock_email_checker = $this->getMockBuilder( WPCOM_Email_Subscription_Checker::class )->onlyMethods( array( 'has_email' ) )->getMock();
$mock_email_checker->method( 'has_email' )->willReturn( false ); // always returns false
static::$admin_menu->set_email_subscription_checker( $mock_email_checker );
@@ -120,8 +119,7 @@ public function test_reregister_menu_items_without_email_subscriptions() {
public function test_reregister_menu_items_with_email_subscriptions() {
global $menu;
- // @phan-suppress-next-line PhanDeprecatedFunction -- Needed for PHP 7.0 and 7.1 CI tests. We can replace with onlyMethods once WP 6.7 comes out.
- $mock_email_checker = $this->getMockBuilder( WPCOM_Email_Subscription_Checker::class )->setMethods( array( 'has_email' ) )->getMock();
+ $mock_email_checker = $this->getMockBuilder( WPCOM_Email_Subscription_Checker::class )->onlyMethods( array( 'has_email' ) )->getMock();
$mock_email_checker->method( 'has_email' )->willReturn( true ); // always returns true
static::$admin_menu->set_email_subscription_checker( $mock_email_checker );
diff --git a/projects/packages/masterbar/tests/php/test-class-wpcom-admin-menu.php b/projects/packages/masterbar/tests/php/test-class-wpcom-admin-menu.php
index 005f62ea4db7c..caa17a37f399a 100644
--- a/projects/packages/masterbar/tests/php/test-class-wpcom-admin-menu.php
+++ b/projects/packages/masterbar/tests/php/test-class-wpcom-admin-menu.php
@@ -85,10 +85,9 @@ public function set_up() {
wp_set_current_user( static::$user_id );
- // @phan-suppress-next-line PhanDeprecatedFunction -- Needed for PHP 7.0 and 7.1 CI tests. We can replace with onlyMethods once WP 6.7 comes out.
$admin_menu = $this->getMockBuilder( WPcom_Admin_Menu::class )
->disableOriginalConstructor()
- ->setMethods( array( 'should_link_to_wp_admin' ) )
+ ->onlyMethods( array( 'should_link_to_wp_admin' ) )
->getMock();
$admin_menu->method( 'should_link_to_wp_admin' )->willReturn( false );
diff --git a/projects/packages/my-jetpack/changelog/update-bump_min_php_to_7.2 b/projects/packages/my-jetpack/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/my-jetpack/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/my-jetpack/composer.json b/projects/packages/my-jetpack/composer.json
index dde294d3ed924..4135fc1b688da 100644
--- a/projects/packages/my-jetpack/composer.json
+++ b/projects/packages/my-jetpack/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-admin-ui": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-boost-speed-score": "@dev",
diff --git a/projects/packages/password-checker/changelog/update-bump_min_php_to_7.2 b/projects/packages/password-checker/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/password-checker/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/password-checker/composer.json b/projects/packages/password-checker/composer.json
index ec80a3c731cb8..a29fa311dd0a9 100644
--- a/projects/packages/password-checker/composer.json
+++ b/projects/packages/password-checker/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
diff --git a/projects/packages/patchwork-redefine-exit/changelog/update-bump_min_php_to_7.2 b/projects/packages/patchwork-redefine-exit/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/patchwork-redefine-exit/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/patchwork-redefine-exit/composer.json b/projects/packages/patchwork-redefine-exit/composer.json
index 7a05c66101b21..f9e4be8d63aae 100644
--- a/projects/packages/patchwork-redefine-exit/composer.json
+++ b/projects/packages/patchwork-redefine-exit/composer.json
@@ -11,7 +11,7 @@
],
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"antecedent/patchwork": "^2.1"
},
"require-dev": {
diff --git a/projects/packages/phpcs-filter/changelog/update-bump_min_php_to_7.2 b/projects/packages/phpcs-filter/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/phpcs-filter/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/phpcs-filter/composer.json b/projects/packages/phpcs-filter/composer.json
index bc8dd8966bfa8..a0efd612a835a 100644
--- a/projects/packages/phpcs-filter/composer.json
+++ b/projects/packages/phpcs-filter/composer.json
@@ -13,7 +13,7 @@
"testing"
],
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/ignorefile": "@dev",
"squizlabs/php_codesniffer": "^3.6.1"
},
diff --git a/projects/packages/phpcs-filter/src/PhpcsFilter.php b/projects/packages/phpcs-filter/src/PhpcsFilter.php
index c433b946c23f2..c9d4d46b65469 100644
--- a/projects/packages/phpcs-filter/src/PhpcsFilter.php
+++ b/projects/packages/phpcs-filter/src/PhpcsFilter.php
@@ -88,7 +88,7 @@ class PhpcsFilter extends Filter {
* @param PhpcsFilter|null $copyFrom Used from getChildren().
* @throws DeepExitException On error.
*/
- public function __construct( $iterator, $basedir, Config $config, Ruleset $ruleset, PhpcsFilter $copyFrom = null ) {
+ public function __construct( $iterator, $basedir, Config $config, Ruleset $ruleset, ?PhpcsFilter $copyFrom = null ) {
parent::__construct( $iterator, $basedir, $config, $ruleset );
if ( $copyFrom ) {
diff --git a/projects/packages/plans/changelog/update-bump_min_php_to_7.2 b/projects/packages/plans/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/plans/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/plans/composer.json b/projects/packages/plans/composer.json
index 0658512ca8ae2..0320475e5ba08 100644
--- a/projects/packages/plans/composer.json
+++ b/projects/packages/plans/composer.json
@@ -4,7 +4,7 @@
"type": "library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev"
},
"require-dev": {
diff --git a/projects/packages/plugin-deactivation/changelog/update-bump_min_php_to_7.2 b/projects/packages/plugin-deactivation/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/plugin-deactivation/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/plugin-deactivation/composer.json b/projects/packages/plugin-deactivation/composer.json
index f5eab26afad32..c6d8e3316e58d 100644
--- a/projects/packages/plugin-deactivation/composer.json
+++ b/projects/packages/plugin-deactivation/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev"
},
"require-dev": {
diff --git a/projects/packages/plugins-installer/changelog/update-bump_min_php_to_7.2 b/projects/packages/plugins-installer/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/plugins-installer/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/plugins-installer/composer.json b/projects/packages/plugins-installer/composer.json
index c5e3a721b7142..e44b900f2e574 100644
--- a/projects/packages/plugins-installer/composer.json
+++ b/projects/packages/plugins-installer/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev"
},
diff --git a/projects/packages/post-list/changelog/update-bump_min_php_to_7.2 b/projects/packages/post-list/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/post-list/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/post-list/composer.json b/projects/packages/post-list/composer.json
index ab8ce5ea8008b..b5e1d50272a6f 100644
--- a/projects/packages/post-list/composer.json
+++ b/projects/packages/post-list/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev"
},
"require-dev": {
diff --git a/projects/packages/protect-models/changelog/update-bump_min_php_to_7.2 b/projects/packages/protect-models/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/protect-models/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/protect-models/composer.json b/projects/packages/protect-models/composer.json
index 28fbf5b341813..3fdf9cd104393 100644
--- a/projects/packages/protect-models/composer.json
+++ b/projects/packages/protect-models/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/protect-status/changelog/update-bump_min_php_to_7.2 b/projects/packages/protect-status/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/protect-status/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/protect-status/composer.json b/projects/packages/protect-status/composer.json
index 7814402b1250a..f348b19984e00 100644
--- a/projects/packages/protect-status/composer.json
+++ b/projects/packages/protect-status/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-sync": "@dev",
diff --git a/projects/packages/publicize/.phan/baseline.php b/projects/packages/publicize/.phan/baseline.php
index b3e516345e315..276871afd3219 100644
--- a/projects/packages/publicize/.phan/baseline.php
+++ b/projects/packages/publicize/.phan/baseline.php
@@ -9,17 +9,17 @@
*/
return [
// # Issue statistics:
- // PhanDeprecatedFunction : 9 occurrences
- // PhanPluginDuplicateConditionalNullCoalescing : 7 occurrences
// PhanTypeMismatchArgument : 7 occurrences
+ // PhanPluginDuplicateConditionalNullCoalescing : 6 occurrences
// PhanTypeMismatchArgumentNullable : 3 occurrences
- // PhanPluginMixedKeyNoKey : 2 occurrences
+ // PhanDeprecatedFunction : 2 occurrences
// PhanPossiblyUndeclaredVariable : 2 occurrences
// PhanTypeMismatchReturnProbablyReal : 2 occurrences
// PhanTypeMissingReturn : 2 occurrences
// PhanImpossibleCondition : 1 occurrence
// PhanParamSignatureMismatch : 1 occurrence
// PhanPluginDuplicateExpressionAssignmentOperation : 1 occurrence
+ // PhanPluginMixedKeyNoKey : 1 occurrence
// PhanPluginSimplifyExpressionBool : 1 occurrence
// PhanSuspiciousMagicConstant : 1 occurrence
// PhanTypeMismatchArgumentNullableInternal : 1 occurrence
@@ -41,10 +41,8 @@
'src/social-image-generator/class-rest-settings-controller.php' => ['PhanPluginMixedKeyNoKey'],
'src/social-image-generator/class-settings.php' => ['PhanPluginDuplicateConditionalNullCoalescing'],
'src/social-image-generator/class-setup.php' => ['PhanTypeMismatchArgumentNullable'],
- 'tests/php/jetpack-social-settings/test-jetpack-social-settings.php' => ['PhanDeprecatedFunction'],
- 'tests/php/test-connections-post-field.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgument'],
+ 'tests/php/test-connections-post-field.php' => ['PhanTypeMismatchArgument'],
'tests/php/test-publicize-og-optimization.php' => ['PhanDeprecatedFunction'],
- 'tests/php/test-social-image-generator/test-post-settings.php' => ['PhanDeprecatedFunction'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
diff --git a/projects/packages/publicize/changelog/update-bump_min_php_to_7.2 b/projects/packages/publicize/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/publicize/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/publicize/composer.json b/projects/packages/publicize/composer.json
index 971282a3f7214..d60adcf29cb28 100644
--- a/projects/packages/publicize/composer.json
+++ b/projects/packages/publicize/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-autoloader": "@dev",
"automattic/jetpack-config": "@dev",
diff --git a/projects/packages/publicize/tests/php/jetpack-social-settings/test-jetpack-social-settings.php b/projects/packages/publicize/tests/php/jetpack-social-settings/test-jetpack-social-settings.php
index db790a9f29a35..403105da07a5a 100644
--- a/projects/packages/publicize/tests/php/jetpack-social-settings/test-jetpack-social-settings.php
+++ b/projects/packages/publicize/tests/php/jetpack-social-settings/test-jetpack-social-settings.php
@@ -33,7 +33,7 @@ class Jetpack_Social_Settings_Test extends BaseTestCase {
public function set_up() {
add_filter( 'jetpack_active_modules', array( $this, 'mock_publicize_being_active' ) );
global $publicize;
- $publicize = $this->getMockBuilder( Publicize::class )->setMethods( array( 'has_social_image_generator_feature' ) )->getMock();
+ $publicize = $this->getMockBuilder( Publicize::class )->onlyMethods( array( 'has_social_image_generator_feature' ) )->getMock();
$publicize->method( 'has_social_image_generator_feature' )
->withAnyParameters()
->willReturn( true );
diff --git a/projects/packages/publicize/tests/php/test-connections-post-field.php b/projects/packages/publicize/tests/php/test-connections-post-field.php
index 00fb162ff2703..b8cb6e23e7023 100644
--- a/projects/packages/publicize/tests/php/test-connections-post-field.php
+++ b/projects/packages/publicize/tests/php/test-connections-post-field.php
@@ -86,7 +86,7 @@ class Test_Connections_Post_Field extends TestCase {
*/
public function set_up() {
global $publicize;
- $this->publicize = $this->getMockBuilder( Publicize::class )->setMethods( array( 'refresh_connections', 'test_connection' ) )->getMock();
+ $this->publicize = $this->getMockBuilder( Publicize::class )->onlyMethods( array( 'refresh_connections', 'test_connection' ) )->getMock();
$this->publicize->method( 'refresh_connections' )
->withAnyParameters()
diff --git a/projects/packages/publicize/tests/php/test-publicize-og-optimization.php b/projects/packages/publicize/tests/php/test-publicize-og-optimization.php
index cb2e033199dc6..bf59dabc5940e 100644
--- a/projects/packages/publicize/tests/php/test-publicize-og-optimization.php
+++ b/projects/packages/publicize/tests/php/test-publicize-og-optimization.php
@@ -41,7 +41,7 @@ class Publicize_OG_Optimization_Test extends BaseTestCase {
* @return Publicize The mocked publicize class
*/
private function mock_publicize_functions( $functions, $mocks ) {
- $publicize = $this->getMockBuilder( Publicize::class )->setMethods( $functions )->getMock();
+ $publicize = $this->getMockBuilder( Publicize::class )->onlyMethods( $functions )->getMock();
// We set the return value for each mock in $mocks
foreach ( $functions as $index => $function ) {
@@ -156,7 +156,7 @@ public function test_jetpack_social_open_graph_filter_array_og_tags() {
* we won't proceed to reduce the file size.
*/
public function test_jetpack_social_open_graph_filter_compression_enough() {
- $publicize = $this->getMockBuilder( Publicize::class )->setMethods(
+ $publicize = $this->getMockBuilder( Publicize::class )->onlyMethods(
array(
'get_social_opengraph_image',
'get_remote_filesize',
@@ -201,7 +201,7 @@ public function test_jetpack_social_open_graph_filter_compression_enough() {
* we will proceed to reduce the file size.
*/
public function test_jetpack_social_open_graph_filter_full_flow() {
- $publicize = $this->getMockBuilder( Publicize::class )->setMethods(
+ $publicize = $this->getMockBuilder( Publicize::class )->onlyMethods(
array(
'get_social_opengraph_image',
'get_remote_filesize',
diff --git a/projects/packages/publicize/tests/php/test-social-image-generator/test-post-settings.php b/projects/packages/publicize/tests/php/test-social-image-generator/test-post-settings.php
index d279a14aa8404..013cfe10e0574 100644
--- a/projects/packages/publicize/tests/php/test-social-image-generator/test-post-settings.php
+++ b/projects/packages/publicize/tests/php/test-social-image-generator/test-post-settings.php
@@ -33,7 +33,7 @@ class Post_Settings_Test extends BaseTestCase {
* Initialize tests
*/
public function set_up() {
- $publicize = $this->getMockBuilder( Publicize::class )->disableOriginalConstructor()->setMethods( null )->getMock();
+ $publicize = $this->getMockBuilder( Publicize::class )->disableOriginalConstructor()->onlyMethods( array() )->getMock();
$publicize->register_post_meta();
$this->post_id = wp_insert_post(
diff --git a/projects/packages/redirect/changelog/update-bump_min_php_to_7.2 b/projects/packages/redirect/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/redirect/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/redirect/composer.json b/projects/packages/redirect/composer.json
index 3c611c570e1ea..d8acfae010cc9 100644
--- a/projects/packages/redirect/composer.json
+++ b/projects/packages/redirect/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-status": "@dev"
},
"require-dev": {
diff --git a/projects/packages/roles/changelog/update-bump_min_php_to_7.2 b/projects/packages/roles/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/roles/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/roles/composer.json b/projects/packages/roles/composer.json
index 83068be2cd3f5..14a84f2df48bb 100644
--- a/projects/packages/roles/composer.json
+++ b/projects/packages/roles/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"brain/monkey": "2.6.1",
diff --git a/projects/packages/scheduled-updates/changelog/update-bump_min_php_to_7.2 b/projects/packages/scheduled-updates/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/scheduled-updates/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/scheduled-updates/composer.json b/projects/packages/scheduled-updates/composer.json
index a881e2bf5222d..4b0eb0b695ca9 100644
--- a/projects/packages/scheduled-updates/composer.json
+++ b/projects/packages/scheduled-updates/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
"automattic/jetpack-plans": "@dev",
diff --git a/projects/packages/scheduled-updates/src/class-scheduled-updates-logs.php b/projects/packages/scheduled-updates/src/class-scheduled-updates-logs.php
index 11dd1a1814a12..188cfbc73f6f9 100644
--- a/projects/packages/scheduled-updates/src/class-scheduled-updates-logs.php
+++ b/projects/packages/scheduled-updates/src/class-scheduled-updates-logs.php
@@ -143,7 +143,7 @@ public static function get( $schedule_id = null ) {
*
* @param string|null $schedule_id Optional. The ID of the schedule. If not provided, all logs will be cleared.
*/
- public static function clear( string $schedule_id = null ) {
+ public static function clear( ?string $schedule_id = null ) {
$logs = get_option( self::OPTION_NAME, array() );
if ( null === $schedule_id ) {
diff --git a/projects/packages/schema/changelog/update-bump_min_php_to_7.2 b/projects/packages/schema/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/schema/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/schema/composer.json b/projects/packages/schema/composer.json
index d9583122d752f..e5440b632e735 100644
--- a/projects/packages/schema/composer.json
+++ b/projects/packages/schema/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
diff --git a/projects/packages/search/changelog/update-bump_min_php_to_7.2 b/projects/packages/search/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/search/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/search/composer.json b/projects/packages/search/composer.json
index 3e55c3a4e773e..f98399f5f9b40 100644
--- a/projects/packages/search/composer.json
+++ b/projects/packages/search/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-constants": "@dev",
diff --git a/projects/packages/search/src/classic-search/class-classic-search.php b/projects/packages/search/src/classic-search/class-classic-search.php
index ddf509ab6c923..9ac50ab21a235 100644
--- a/projects/packages/search/src/classic-search/class-classic-search.php
+++ b/projects/packages/search/src/classic-search/class-classic-search.php
@@ -1448,7 +1448,7 @@ public function get_search_aggregations_results() {
*
* @return array Array of filters applied and info about them.
*/
- public function get_filters( WP_Query $query = null ) {
+ public function get_filters( ?WP_Query $query = null ) {
if ( ! $query instanceof WP_Query ) {
global $wp_query;
diff --git a/projects/packages/stats-admin/changelog/update-bump_min_php_to_7.2 b/projects/packages/stats-admin/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/stats-admin/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/stats-admin/composer.json b/projects/packages/stats-admin/composer.json
index d4db20a281c37..9564519964b57 100644
--- a/projects/packages/stats-admin/composer.json
+++ b/projects/packages/stats-admin/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-plans": "@dev",
diff --git a/projects/packages/stats/.phan/baseline.php b/projects/packages/stats/.phan/baseline.php
index 8c7b82fade56e..20e29a09c4233 100644
--- a/projects/packages/stats/.phan/baseline.php
+++ b/projects/packages/stats/.phan/baseline.php
@@ -12,7 +12,6 @@
// PhanParamTooMany : 7 occurrences
// PhanTypeVoidAssignment : 4 occurrences
// PhanPluginDuplicateConditionalNullCoalescing : 2 occurrences
- // PhanDeprecatedFunction : 1 occurrence
// PhanTypeMismatchReturn : 1 occurrence
// Currently, file_suppressions and directory_suppressions are the only supported suppressions
@@ -21,7 +20,6 @@
'src/class-wpcom-stats.php' => ['PhanTypeMismatchReturn'],
'tests/php/test-main.php' => ['PhanParamTooMany', 'PhanTypeVoidAssignment'],
'tests/php/test-options.php' => ['PhanTypeVoidAssignment'],
- 'tests/php/test-wpcom-stats.php' => ['PhanDeprecatedFunction'],
'tests/php/test-xmlrpc-provider.php' => ['PhanParamTooMany', 'PhanTypeVoidAssignment'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
diff --git a/projects/packages/stats/changelog/update-bump_min_php_to_7.2 b/projects/packages/stats/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/stats/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/stats/composer.json b/projects/packages/stats/composer.json
index 1704e3c3e923d..91c5b0da3f47c 100644
--- a/projects/packages/stats/composer.json
+++ b/projects/packages/stats/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev"
diff --git a/projects/packages/stats/tests/php/test-wpcom-stats.php b/projects/packages/stats/tests/php/test-wpcom-stats.php
index 03eedaad2340a..cc9cff84d08f4 100644
--- a/projects/packages/stats/tests/php/test-wpcom-stats.php
+++ b/projects/packages/stats/tests/php/test-wpcom-stats.php
@@ -31,7 +31,7 @@ protected function set_up() {
parent::set_up();
$this->wpcom_stats = $this->getMockBuilder( 'Automattic\Jetpack\Stats\WPCOM_Stats' )
- ->setMethods( array( 'fetch_remote_stats' ) )
+ ->onlyMethods( array( 'fetch_remote_stats' ) )
->getMock();
}
diff --git a/projects/packages/status/.phan/baseline.php b/projects/packages/status/.phan/baseline.php
index 32fce6e860dcb..4d814abb8a776 100644
--- a/projects/packages/status/.phan/baseline.php
+++ b/projects/packages/status/.phan/baseline.php
@@ -14,7 +14,6 @@
// PhanPluginDuplicateConditionalNullCoalescing : 2 occurrences
// PhanPluginSimplifyExpressionBool : 2 occurrences
// PhanRedefineFunction : 2 occurrences
- // PhanDeprecatedFunction : 1 occurrence
// PhanParamTooMany : 1 occurrence
// PhanPluginRedundantAssignment : 1 occurrence
// PhanRedundantCondition : 1 occurrence
@@ -34,7 +33,7 @@
'src/class-status.php' => ['PhanRedundantCondition', 'PhanUndeclaredFunction'],
'tests/php/bootstrap.php' => ['PhanRedefineFunction', 'PhanTypeMismatchReturnProbablyReal'],
'tests/php/test-host.php' => ['PhanParamTooMany'],
- 'tests/php/test-status.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentInternal'],
+ 'tests/php/test-status.php' => ['PhanTypeMismatchArgumentInternal'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
diff --git a/projects/packages/status/changelog/update-bump_min_php_to_7.2 b/projects/packages/status/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/status/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/status/composer.json b/projects/packages/status/composer.json
index d6c73c790f9f7..cc5e68ff44e07 100644
--- a/projects/packages/status/composer.json
+++ b/projects/packages/status/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-constants": "@dev"
},
"require-dev": {
diff --git a/projects/packages/status/tests/php/test-status.php b/projects/packages/status/tests/php/test-status.php
index 97aabb9ca6639..46785b164a785 100644
--- a/projects/packages/status/tests/php/test-status.php
+++ b/projects/packages/status/tests/php/test-status.php
@@ -313,7 +313,7 @@ protected function mock_wpdb_get_var( $return_value = null ) {
$wpdb = $this->getMockBuilder( \stdClass::class ) // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
->setMockClassName( 'wpdb' )
- ->setMethods( array( 'get_var' ) )
+ ->addMethods( array( 'get_var' ) )
->getMock();
$wpdb->method( 'get_var' )
->willReturn( $return_value );
diff --git a/projects/packages/sync/.phan/baseline.php b/projects/packages/sync/.phan/baseline.php
index e67e8aeb060c1..49e36b2f4fc0c 100644
--- a/projects/packages/sync/.phan/baseline.php
+++ b/projects/packages/sync/.phan/baseline.php
@@ -19,7 +19,6 @@
// PhanPluginSimplifyExpressionBool : 9 occurrences
// PhanPossiblyUndeclaredVariable : 8 occurrences
// PhanPluginDuplicateSwitchCaseLooseEquality : 6 occurrences
- // PhanUndeclaredTypeReturnType : 6 occurrences
// PhanNonClassMethodCall : 5 occurrences
// PhanRedundantCondition : 4 occurrences
// PhanTypeExpectedObjectPropAccess : 4 occurrences
@@ -34,7 +33,6 @@
// PhanTypeMismatchReturnNullable : 2 occurrences
// PhanTypePossiblyInvalidDimOffset : 2 occurrences
// PhanTypeSuspiciousStringExpression : 2 occurrences
- // PhanDeprecatedFunction : 1 occurrence
// PhanNoopNew : 1 occurrence
// PhanParamTooManyCallable : 1 occurrence
// PhanPluginUseReturnValueInternalKnown : 1 occurrence
@@ -83,7 +81,7 @@
'src/modules/class-woocommerce.php' => ['PhanTypeMismatchReturnProbablyReal'],
'src/replicastore/class-table-checksum.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal'],
'tests/php/test-actions.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/test-dedicated-sender.php' => ['PhanDeprecatedFunction', 'PhanUndeclaredProperty'],
+ 'tests/php/test-dedicated-sender.php' => ['PhanUndeclaredProperty'],
'tests/php/test-rest-endpoints.php' => ['PhanNoopNew', 'PhanTypeMismatchReturn'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
diff --git a/projects/packages/sync/changelog/update-bump_min_php_to_7.2 b/projects/packages/sync/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/sync/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/sync/composer.json b/projects/packages/sync/composer.json
index 09629817d7e0f..d1a0becfcb967 100644
--- a/projects/packages/sync/composer.json
+++ b/projects/packages/sync/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-password-checker": "@dev",
diff --git a/projects/packages/sync/src/class-sender.php b/projects/packages/sync/src/class-sender.php
index c36179ba9b408..d86b2bce8ef97 100644
--- a/projects/packages/sync/src/class-sender.php
+++ b/projects/packages/sync/src/class-sender.php
@@ -580,7 +580,7 @@ public function get_items_to_send( $buffer_or_items, $encode = true ) {
* @access private
*/
private function fastcgi_finish_request() {
- if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) ) {
+ if ( function_exists( 'fastcgi_finish_request' ) ) {
fastcgi_finish_request();
}
}
diff --git a/projects/packages/sync/tests/php/test-dedicated-sender.php b/projects/packages/sync/tests/php/test-dedicated-sender.php
index f895d442e6afb..770b29cbd795f 100644
--- a/projects/packages/sync/tests/php/test-dedicated-sender.php
+++ b/projects/packages/sync/tests/php/test-dedicated-sender.php
@@ -32,7 +32,7 @@ public function set_up() {
$this->queue = $this->getMockBuilder( 'Automattic\Jetpack\Sync\Queue' )
->setConstructorArgs( array( 'sync' ) )
- ->setMethods( array( 'is_locked', 'size', 'lag' ) )
+ ->onlyMethods( array( 'is_locked', 'size', 'lag' ) )
->getMock();
// Delete the Last successful sync option to make sure it's not causing side effects.
diff --git a/projects/packages/transport-helper/changelog/update-bump_min_php_to_7.2 b/projects/packages/transport-helper/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/transport-helper/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/transport-helper/composer.json b/projects/packages/transport-helper/composer.json
index f92fe2a5461aa..22b1e8e5838d6 100644
--- a/projects/packages/transport-helper/composer.json
+++ b/projects/packages/transport-helper/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-backup-helper-script-manager": "@dev",
"automattic/jetpack-connection": "@dev"
},
diff --git a/projects/packages/videopress/changelog/update-bump_min_php_to_7.2 b/projects/packages/videopress/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/videopress/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/videopress/composer.json b/projects/packages/videopress/composer.json
index 63c8cb3447c23..26faa262f9648 100644
--- a/projects/packages/videopress/composer.json
+++ b/projects/packages/videopress/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-admin-ui": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-connection": "@dev",
diff --git a/projects/packages/waf/.phan/baseline.php b/projects/packages/waf/.phan/baseline.php
index f80ad2b6433a7..327b501c60128 100644
--- a/projects/packages/waf/.phan/baseline.php
+++ b/projects/packages/waf/.phan/baseline.php
@@ -9,13 +9,11 @@
*/
return [
// # Issue statistics:
- // PhanDeprecatedFunction : 9 occurrences
- // PhanTypeMismatchArgument : 9 occurrences
+ // PhanTypeMismatchArgument : 8 occurrences
// PhanNoopNew : 6 occurrences
// PhanTypeMismatchDefault : 5 occurrences
// PhanTypeMismatchReturn : 5 occurrences
// PhanTypeMismatchReturnProbablyReal : 5 occurrences
- // PhanUndeclaredConstant : 5 occurrences
// PhanPluginDuplicateConditionalNullCoalescing : 4 occurrences
// PhanRedefineFunction : 4 occurrences
// PhanTypeMismatchArgumentInternal : 4 occurrences
@@ -26,7 +24,6 @@
// PhanTypeArraySuspiciousNullable : 2 occurrences
// PhanTypeMismatchArgumentNullable : 2 occurrences
// PhanCoalescingNeverNull : 1 occurrence
- // PhanImpossibleTypeComparison : 1 occurrence
// PhanNonClassMethodCall : 1 occurrence
// PhanPluginInvalidPregRegex : 1 occurrence
// PhanTypeComparisonToArray : 1 occurrence
@@ -34,6 +31,7 @@
// PhanTypeInvalidDimOffset : 1 occurrence
// PhanTypeMismatchArgumentNullableInternal : 1 occurrence
// PhanTypeMismatchProperty : 1 occurrence
+ // PhanUndeclaredConstant : 1 occurrence
// Currently, file_suppressions and directory_suppressions are the only supported suppressions
'file_suppressions' => [
@@ -51,7 +49,7 @@
'tests/php/unit/functions-wordpress.php' => ['PhanRedefineFunction'],
'tests/php/unit/test-waf-operators.php' => ['PhanTypeMismatchArgumentInternal'],
'tests/php/unit/test-waf-runtime-targets.php' => ['PhanPluginRedundantAssignment'],
- 'tests/php/unit/test-waf-standalone-bootstrap.php' => ['PhanDeprecatedFunction', 'PhanNoopNew'],
+ 'tests/php/unit/test-waf-standalone-bootstrap.php' => ['PhanNoopNew'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
diff --git a/projects/packages/waf/changelog/update-bump_min_php_to_7.2 b/projects/packages/waf/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/waf/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/waf/composer.json b/projects/packages/waf/composer.json
index bc2d709651f6c..634fcbc547b4a 100644
--- a/projects/packages/waf/composer.json
+++ b/projects/packages/waf/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-ip": "@dev",
diff --git a/projects/packages/waf/tests/php/unit/test-waf-standalone-bootstrap.php b/projects/packages/waf/tests/php/unit/test-waf-standalone-bootstrap.php
index 4738c90ad580b..f8df956682a9b 100644
--- a/projects/packages/waf/tests/php/unit/test-waf-standalone-bootstrap.php
+++ b/projects/packages/waf/tests/php/unit/test-waf-standalone-bootstrap.php
@@ -51,7 +51,7 @@ public function testGenerateThrowsAnExceptionIfFilesystemIsNotInitialized() {
define( 'WP_CONTENT_DIR', '/pseudo/dir' );
$mock_builder = $this->getMockBuilder( Waf_Standalone_Bootstrap::class );
- $mock_builder->setMethods( array( 'initialize_filesystem' ) );
+ $mock_builder->onlyMethods( array( 'initialize_filesystem' ) );
$sut = $mock_builder->getMock();
$this->expectExceptionMessage( 'Can not work without the file system being initialized.' );
@@ -68,7 +68,7 @@ public function testGenerateGeneratesTheBootstrapFileSuccessfully() {
define( 'WP_CONTENT_DIR', '/awesome/dir' );
$filesystem_mock_builder = $this->getMockBuilder( stdClass::class );
- $filesystem_mock_builder->setMethods( array( 'is_dir', 'put_contents' ) );
+ $filesystem_mock_builder->addMethods( array( 'is_dir', 'put_contents' ) );
$filesystem_mock = $filesystem_mock_builder->getMock();
@@ -98,7 +98,7 @@ function ( $file_contents ) {
$wp_filesystem = $filesystem_mock;
$mock_builder = $this->getMockBuilder( Waf_Standalone_Bootstrap::class );
- $mock_builder->setMethods( array( 'initialize_filesystem' ) );
+ $mock_builder->onlyMethods( array( 'initialize_filesystem' ) );
$sut = $mock_builder->getMock();
@@ -119,7 +119,7 @@ public function testGenerateThrowsAnExceptionIfUnableToWriteBootstrapFile() {
define( 'WP_CONTENT_DIR', '/awesome/dir' );
$filesystem_mock_builder = $this->getMockBuilder( stdClass::class );
- $filesystem_mock_builder->setMethods( array( 'is_dir', 'put_contents' ) );
+ $filesystem_mock_builder->addMethods( array( 'is_dir', 'put_contents' ) );
$filesystem_mock = $filesystem_mock_builder->getMock();
$filesystem_mock->expects( $this->once() )
@@ -136,7 +136,7 @@ public function testGenerateThrowsAnExceptionIfUnableToWriteBootstrapFile() {
$wp_filesystem = $filesystem_mock;
$mock_builder = $this->getMockBuilder( Waf_Standalone_Bootstrap::class );
- $mock_builder->setMethods( array( 'initialize_filesystem' ) );
+ $mock_builder->onlyMethods( array( 'initialize_filesystem' ) );
$sut = $mock_builder->getMock();
@@ -154,7 +154,7 @@ public function testGenerateCreatesTheJetpackWafDirectoryIfItDoesNotExistYet() {
define( 'WP_CONTENT_DIR', '/awesome/dir' );
$filesystem_mock_builder = $this->getMockBuilder( stdClass::class );
- $filesystem_mock_builder->setMethods( array( 'is_dir', 'mkdir', 'put_contents' ) );
+ $filesystem_mock_builder->addMethods( array( 'is_dir', 'mkdir', 'put_contents' ) );
$filesystem_mock = $filesystem_mock_builder->getMock();
@@ -175,7 +175,7 @@ public function testGenerateCreatesTheJetpackWafDirectoryIfItDoesNotExistYet() {
$wp_filesystem = $filesystem_mock;
$mock_builder = $this->getMockBuilder( Waf_Standalone_Bootstrap::class );
- $mock_builder->setMethods( array( 'initialize_filesystem' ) );
+ $mock_builder->onlyMethods( array( 'initialize_filesystem' ) );
$sut = $mock_builder->getMock();
$sut->expects( $this->once() )->method( 'initialize_filesystem' );
@@ -193,7 +193,7 @@ public function testGenerateThrowsAnExceptionIfUnableToCreateJetpackWafDirectory
define( 'WP_CONTENT_DIR', '/awesome/dir' );
$filesystem_mock_builder = $this->getMockBuilder( stdClass::class );
- $filesystem_mock_builder->setMethods( array( 'is_dir', 'mkdir' ) );
+ $filesystem_mock_builder->addMethods( array( 'is_dir', 'mkdir' ) );
$filesystem_mock = $filesystem_mock_builder->getMock();
@@ -210,7 +210,7 @@ public function testGenerateThrowsAnExceptionIfUnableToCreateJetpackWafDirectory
$wp_filesystem = $filesystem_mock;
$mock_builder = $this->getMockBuilder( Waf_Standalone_Bootstrap::class );
- $mock_builder->setMethods( array( 'initialize_filesystem' ) );
+ $mock_builder->onlyMethods( array( 'initialize_filesystem' ) );
$sut = $mock_builder->getMock();
$sut->expects( $this->once() )->method( 'initialize_filesystem' );
diff --git a/projects/packages/woocommerce-analytics/changelog/update-bump_min_php_to_7.2 b/projects/packages/woocommerce-analytics/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/woocommerce-analytics/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/woocommerce-analytics/composer.json b/projects/packages/woocommerce-analytics/composer.json
index c68145d4f8f8c..4245eaf49f426 100644
--- a/projects/packages/woocommerce-analytics/composer.json
+++ b/projects/packages/woocommerce-analytics/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev"
},
diff --git a/projects/packages/wordads/changelog/update-bump_min_php_to_7.2 b/projects/packages/wordads/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/wordads/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/wordads/composer.json b/projects/packages/wordads/composer.json
index d5c8a35731ba4..8654ae0e34420 100644
--- a/projects/packages/wordads/composer.json
+++ b/projects/packages/wordads/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-constants": "@dev",
diff --git a/projects/packages/wp-js-data-sync/changelog/update-bump_min_php_to_7.2 b/projects/packages/wp-js-data-sync/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/wp-js-data-sync/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/wp-js-data-sync/composer.json b/projects/packages/wp-js-data-sync/composer.json
index 2071ab0522b1b..b40a0374faed9 100644
--- a/projects/packages/wp-js-data-sync/composer.json
+++ b/projects/packages/wp-js-data-sync/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-schema": "@dev"
},
"require-dev": {
diff --git a/projects/packages/yoast-promo/changelog/update-bump_min_php_to_7.2 b/projects/packages/yoast-promo/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/packages/yoast-promo/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/packages/yoast-promo/composer.json b/projects/packages/yoast-promo/composer.json
index 2e1aa799fd660..b0239ca8fa499 100644
--- a/projects/packages/yoast-promo/composer.json
+++ b/projects/packages/yoast-promo/composer.json
@@ -4,7 +4,7 @@
"type": "jetpack-library",
"license": "GPL-2.0-or-later",
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"automattic/jetpack-assets": "@dev"
},
"require-dev": {
diff --git a/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2 b/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/automattic-for-agencies-client/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/automattic-for-agencies-client/composer.lock b/projects/plugins/automattic-for-agencies-client/composer.lock
index ff4f074f7c994..b2d9067120977 100644
--- a/projects/plugins/automattic-for-agencies-client/composer.lock
+++ b/projects/plugins/automattic-for-agencies-client/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -328,10 +328,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -400,7 +400,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -410,7 +410,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -492,10 +492,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -546,10 +546,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -604,10 +604,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -665,11 +665,11 @@
"dist": {
"type": "path",
"url": "../../packages/plugin-deactivation",
- "reference": "909c7ef4011288d4974a1055137aae694dc5b2f6"
+ "reference": "e5fbc3a91a021f30f0ca29998c9b103de21211b9"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -733,11 +733,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -788,10 +788,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -842,11 +842,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -906,7 +906,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -915,7 +915,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1034,10 +1034,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/automattic-for-agencies-client/readme.txt b/projects/plugins/automattic-for-agencies-client/readme.txt
index e1032e417bdef..a804af627e859 100644
--- a/projects/plugins/automattic-for-agencies-client/readme.txt
+++ b/projects/plugins/automattic-for-agencies-client/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic, jeherve, njweller, rcanepa
Tags: agency, dashboard, management, sites, monitoring
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 0.2.1
License: GPLv2 or later
diff --git a/projects/plugins/backup/changelog/update-bump_min_php_to_7.2 b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#3 b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#3
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/backup/changelog/update-bump_min_php_to_7.2#3
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/backup/composer.lock b/projects/plugins/backup/composer.lock
index 55077ec5e51a4..d8cd43170e50f 100644
--- a/projects/plugins/backup/composer.lock
+++ b/projects/plugins/backup/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,7 +268,7 @@
"dist": {
"type": "path",
"url": "../../packages/backup",
- "reference": "c3dca276344c0c19d5481aaa69d6165ff3621e94"
+ "reference": "3e1ceeca9ab6a579d33afebf5d2a18db1d56c74e"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -281,7 +281,7 @@
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -359,10 +359,10 @@
"dist": {
"type": "path",
"url": "../../packages/backup-helper-script-manager",
- "reference": "e210e4499dca7671e253fb5cddc468a96d10f534"
+ "reference": "c0278bf5a88606c8365553e10a1b5b4fe33ae638"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -419,11 +419,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -487,11 +487,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -563,11 +563,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -623,10 +623,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -695,7 +695,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -705,7 +705,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -787,10 +787,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -841,10 +841,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -894,11 +894,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -970,10 +970,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1028,7 +1028,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -1038,7 +1038,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1103,11 +1103,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1165,10 +1165,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1218,7 +1218,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1235,7 +1235,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1323,10 +1323,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1384,11 +1384,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1452,12 +1452,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1508,10 +1508,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1578,7 +1578,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1586,7 +1586,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1653,11 +1653,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1708,10 +1708,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1762,11 +1762,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1826,7 +1826,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1835,7 +1835,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1906,10 +1906,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/backup/readme.txt b/projects/plugins/backup/readme.txt
index f8eade314a96e..29c7447a627f9 100644
--- a/projects/plugins/backup/readme.txt
+++ b/projects/plugins/backup/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic, bjorsch, fgiannar, initsogar, jeherve, jwebbdev, kraftbj, macbre, pypt, samiff, sermitr, williamvianas
Tags: jetpack, backup, restore
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 2.2
License: GPLv2 or later
diff --git a/projects/plugins/beta/changelog/update-bump_min_php_to_7.2 b/projects/plugins/beta/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/beta/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/beta/composer.lock b/projects/plugins/beta/composer.lock
index d4ff61f3846d4..2644dbeded8f7 100644
--- a/projects/plugins/beta/composer.lock
+++ b/projects/plugins/beta/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -77,11 +77,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -278,10 +278,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
@@ -1121,7 +1121,7 @@
},
"prefer-stable": true,
"prefer-lowest": false,
- "platform": {},
- "platform-dev": {},
+ "platform": [],
+ "platform-dev": [],
"plugin-api-version": "2.6.0"
}
diff --git a/projects/plugins/boost/changelog/update-bump_min_php_to_7.2 b/projects/plugins/boost/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/boost/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/boost/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/boost/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/boost/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/boost/composer.lock b/projects/plugins/boost/composer.lock
index da47548a78827..d039a254f8c77 100644
--- a/projects/plugins/boost/composer.lock
+++ b/projects/plugins/boost/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -336,11 +336,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -412,11 +412,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,10 +472,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,7 +544,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -554,7 +554,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -636,10 +636,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -690,10 +690,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -743,11 +743,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -819,12 +819,12 @@
"dist": {
"type": "path",
"url": "../../packages/image-cdn",
- "reference": "095732f0a752837b0a346df64e09745a00583c52"
+ "reference": "f3bdf2f4a067c2bd1ce9003cd7b0985b2b16e6b0"
},
"require": {
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -885,10 +885,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -943,7 +943,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -953,7 +953,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1018,11 +1018,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1080,10 +1080,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1133,7 +1133,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1150,7 +1150,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1238,10 +1238,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1299,11 +1299,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1367,11 +1367,11 @@
"dist": {
"type": "path",
"url": "../../packages/plugin-deactivation",
- "reference": "909c7ef4011288d4974a1055137aae694dc5b2f6"
+ "reference": "e5fbc3a91a021f30f0ca29998c9b103de21211b9"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1435,12 +1435,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1491,10 +1491,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1561,7 +1561,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1569,7 +1569,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1636,11 +1636,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1691,10 +1691,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1745,10 +1745,10 @@
"dist": {
"type": "path",
"url": "../../packages/schema",
- "reference": "fba44987b14ae378674cd29e56b4ccfd22011ced"
+ "reference": "c738408606a189bafdf15bd688234bc576905d93"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1815,11 +1815,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1879,7 +1879,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1888,7 +1888,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1957,11 +1957,11 @@
"dist": {
"type": "path",
"url": "../../packages/wp-js-data-sync",
- "reference": "3e57b24143beb96108988009af67edd59fd7a1de"
+ "reference": "259a547b786475efdab1fb4da8d5e216590ae2bc"
},
"require": {
"automattic/jetpack-schema": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2259,10 +2259,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/boost/jetpack-boost.php b/projects/plugins/boost/jetpack-boost.php
index 8c7ed46caa314..4ac66be8ed30e 100644
--- a/projects/plugins/boost/jetpack-boost.php
+++ b/projects/plugins/boost/jetpack-boost.php
@@ -17,7 +17,7 @@
* Text Domain: jetpack-boost
* Domain Path: /languages
* Requires at least: 6.6
- * Requires PHP: 7.0
+ * Requires PHP: 7.2
*
* @package automattic/jetpack-boost
*/
diff --git a/projects/plugins/boost/readme.txt b/projects/plugins/boost/readme.txt
index 5aff7d6004b11..3c33362a9f24c 100644
--- a/projects/plugins/boost/readme.txt
+++ b/projects/plugins/boost/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://automattic.com
Tags: performance, speed, web vitals, critical css, cache
Requires at least: 6.6
Tested up to: 6.7
-Requires PHP: 7.0
+Requires PHP: 7.2
Stable tag: 3.5.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2 b/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/classic-theme-helper-plugin/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/classic-theme-helper-plugin/composer.lock b/projects/plugins/classic-theme-helper-plugin/composer.lock
index 256c0aa399fe5..db04753cbd89d 100644
--- a/projects/plugins/classic-theme-helper-plugin/composer.lock
+++ b/projects/plugins/classic-theme-helper-plugin/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,11 +65,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -135,11 +135,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -203,11 +203,11 @@
"dist": {
"type": "path",
"url": "../../packages/classic-theme-helper",
- "reference": "ab7d97e518c1dcff5e7364b762ce0044aa445519"
+ "reference": "ccbbd7016a4f34585969bad25b4fc692303241a7"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -274,11 +274,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -334,10 +334,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -406,10 +406,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -460,12 +460,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -516,11 +516,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -630,10 +630,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/classic-theme-helper-plugin/readme.txt b/projects/plugins/classic-theme-helper-plugin/readme.txt
index 5408dd485ff78..80caaf5a75f7c 100644
--- a/projects/plugins/classic-theme-helper-plugin/readme.txt
+++ b/projects/plugins/classic-theme-helper-plugin/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic,
Tags: jetpack, stuff
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 0.1.0-alpha
License: GPLv2 or later
diff --git a/projects/plugins/crm/changelog/update-bump_min_php_to_7.2 b/projects/plugins/crm/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/crm/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/crm/composer.lock b/projects/plugins/crm/composer.lock
index 92cef2a724591..c83fec51e2e26 100644
--- a/projects/plugins/crm/composer.lock
+++ b/projects/plugins/crm/composer.lock
@@ -12,11 +12,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -82,11 +82,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -150,11 +150,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -210,10 +210,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -603,10 +603,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/debug-helper/changelog/update-bump_min_php_to_7.2 b/projects/plugins/debug-helper/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/debug-helper/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/debug-helper/composer.lock b/projects/plugins/debug-helper/composer.lock
index d33a92ba0326c..0a81f76fc1645 100644
--- a/projects/plugins/debug-helper/composer.lock
+++ b/projects/plugins/debug-helper/composer.lock
@@ -13,10 +13,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
@@ -854,7 +854,7 @@
},
"prefer-stable": true,
"prefer-lowest": false,
- "platform": {},
- "platform-dev": {},
+ "platform": [],
+ "platform-dev": [],
"plugin-api-version": "2.6.0"
}
diff --git a/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2 b/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/inspect/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/inspect/composer.lock b/projects/plugins/inspect/composer.lock
index 1941b533ed2d3..6f91de3a29eda 100644
--- a/projects/plugins/inspect/composer.lock
+++ b/projects/plugins/inspect/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -328,10 +328,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -400,7 +400,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -410,7 +410,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -492,10 +492,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -546,11 +546,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -601,10 +601,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -655,11 +655,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -721,10 +721,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/inspect/readme.txt b/projects/plugins/inspect/readme.txt
index 0f2e104f6b0ff..ac8fe3cc4aa8a 100644
--- a/projects/plugins/inspect/readme.txt
+++ b/projects/plugins/inspect/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic,
Tags: jetpack, stuff
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 1.0.0-alpha
License: GPLv2 or later
diff --git a/projects/plugins/jetpack/.phan/baseline.php b/projects/plugins/jetpack/.phan/baseline.php
index 4547a6db5e39c..32c0d1270c42a 100644
--- a/projects/plugins/jetpack/.phan/baseline.php
+++ b/projects/plugins/jetpack/.phan/baseline.php
@@ -15,9 +15,9 @@
// PhanTypeMismatchArgumentProbablyReal : 200+ occurrences
// PhanTypeMismatchReturn : 150+ occurrences
// PhanTypeMismatchReturnProbablyReal : 130+ occurrences
- // PhanDeprecatedFunction : 120+ occurrences
// PhanTypePossiblyInvalidDimOffset : 95+ occurrences
// PhanRedundantCondition : 70+ occurrences
+ // PhanDeprecatedFunction : 65+ occurrences
// PhanPossiblyUndeclaredVariable : 60+ occurrences
// PhanTypeArraySuspiciousNullable : 60+ occurrences
// PhanRedefineFunction : 55+ occurrences
@@ -487,23 +487,19 @@
'sal/class.json-api-site-jetpack.php' => ['PhanParamSignatureMismatch'],
'sal/class.json-api-token.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeMismatchArgumentProbablyReal'],
'src/class-jetpack-modules-overrides.php' => ['PhanRedundantCondition'],
- 'tests/php/3rd-party/test_class-domain-mapping.php' => ['PhanDeprecatedFunction'],
'tests/php/3rd-party/test_class.jetpack-amp-support.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/_inc/lib/test-class-jetpack-blogging-prompts.php' => ['PhanTypeMismatchArgumentNullable'],
- 'tests/php/_inc/lib/test-class-jetpack-podcast-helper.php' => ['PhanDeprecatedFunction'],
'tests/php/_inc/lib/test_class.rest-api-authentication.php' => ['PhanParamTooMany', 'PhanPluginDuplicateConditionalNullCoalescing'],
'tests/php/_inc/lib/test_class.rest-api-endpoints.php' => ['PhanParamTooMany', 'PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal'],
'tests/php/core-api/test_class-wpcom-rest-field-controller.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/core-api/test_class.jetpack-core-api-xmlrpc-consumer-endpoint.php' => ['PhanDeprecatedFunction'],
'tests/php/core-api/wpcom-endpoints/test-class-wpcom-rest-api-v2-endpoint-admin-menu.php' => ['PhanPluginMixedKeyNoKey', 'PhanTypeArraySuspiciousNullable', 'PhanTypeMismatchReturn'],
'tests/php/core-api/wpcom-endpoints/test-class-wpcom-rest-api-v2-endpoint-external-media.php' => ['PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgument'],
'tests/php/core-api/wpcom-endpoints/test-class-wpcom-rest-api-v2-endpoint-publicize-share-post.php' => ['PhanTypeMismatchArgument'],
- 'tests/php/core-api/wpcom-fields/class-test-wpcom-rest-api-v2-attachment-videopress-data.php' => ['PhanDeprecatedFunction'],
- 'tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php' => ['PhanDeprecatedFunction', 'PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeComparisonToArray', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeComparisonToArray', 'PhanTypeMismatchPropertyProbablyReal'],
'tests/php/extensions/blocks/premium-content/test_class.jetpack-premium-content.php' => ['PhanDeprecatedProperty', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMissingReturn', 'PhanUndeclaredMethod'],
'tests/php/general/test-class.jetpack-gutenberg.php' => ['PhanPluginDuplicateAdjacentStatement'],
- 'tests/php/general/test_class.jetpack-client-server.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/general/test_class.jetpack-client-server.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/general/test_class.jetpack-user-agent.php' => ['PhanDeprecatedFunction'],
'tests/php/general/test_class.jetpack-xmlrpc-server.php' => ['PhanDeprecatedFunction', 'PhanPluginSimplifyExpressionBool', 'PhanRedundantCondition'],
'tests/php/general/test_class.jetpack.php' => ['PhanPluginDuplicateAdjacentStatement', 'PhanTypeMismatchPropertyDefault'],
@@ -514,10 +510,10 @@
'tests/php/json-api/test_class.json-api-platform-jetpack.php' => ['PhanTypeMismatchArgument'],
'tests/php/media/test-class.jetpack-media-extractor.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/media/test-class.jetpack-post-images.php' => ['PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/modules/geo-location/test_class.jetpack-geo-location.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/modules/geo-location/test_class.jetpack-geo-location.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/modules/photon/test_class.jetpack-photon-static-asset-cdn.php' => ['PhanTypeMismatchProperty'],
'tests/php/modules/post-by-email/test-class.post-by-email-api.php' => ['PhanParamTooMany'],
- 'tests/php/modules/publicize/test_class.publicize.php' => ['PhanDeprecatedFunction', 'PhanPluginDuplicateConditionalNullCoalescing'],
+ 'tests/php/modules/publicize/test_class.publicize.php' => ['PhanPluginDuplicateConditionalNullCoalescing'],
'tests/php/modules/sharedaddy/test-class.recaptcha.php' => ['PhanDeprecatedClass'],
'tests/php/modules/shortcodes/test-class.archives.php' => ['PhanPluginDuplicateAdjacentStatement'],
'tests/php/modules/shortcodes/test-class.getty.php' => ['PhanPluginInvalidPregRegex'],
@@ -535,7 +531,7 @@
'tests/php/modules/widgets/test_contact-info-widget.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/modules/widgets/test_wordpress-post-widget.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/class-test-jetpack-sync-search.php' => ['PhanStaticCallToNonStatic', 'PhanTypeMismatchArgumentInternal'],
- 'tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php' => ['PhanDeprecatedFunction', 'PhanParamTooMany', 'PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php' => ['PhanParamTooMany', 'PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/server/class.jetpack-sync-server-eventstore.php' => ['PhanPluginDuplicateConditionalNullCoalescing'],
'tests/php/sync/server/class.jetpack-sync-test-object-factory.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/server/class.jetpack-sync-test-replicastore.php' => ['PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeInvalidLeftOperandOfAdd'],
@@ -551,10 +547,10 @@
'tests/php/sync/test_class.jetpack-sync-menus.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/test_class.jetpack-sync-meta.php' => ['PhanParamTooMany', 'PhanTypeMismatchArgument'],
'tests/php/sync/test_class.jetpack-sync-modules-stats.php' => ['PhanParamTooMany'],
- 'tests/php/sync/test_class.jetpack-sync-posts.php' => ['PhanDeprecatedFunction', 'PhanNoopNew', 'PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/sync/test_class.jetpack-sync-posts.php' => ['PhanNoopNew', 'PhanPluginDuplicateConditionalNullCoalescing', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/test_class.jetpack-sync-queue-custom-table.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/test_class.jetpack-sync-queue-options-table.php' => ['PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/sync/test_class.jetpack-sync-queue.php' => ['PhanDeprecatedFunction', 'PhanParamTooMany', 'PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'tests/php/sync/test_class.jetpack-sync-queue.php' => ['PhanParamTooMany', 'PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/test_class.jetpack-sync-sender.php' => ['PhanPluginDuplicateAdjacentStatement', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/sync/test_class.jetpack-sync-term-relationships.php' => ['PhanPluginUnreachableCode'],
'tests/php/sync/test_class.jetpack-sync-themes.php' => ['PhanPluginDuplicateAdjacentStatement'],
@@ -563,7 +559,6 @@
'tests/php/sync/test_class.jetpack-sync-wp_super_cache.php' => ['PhanPluginSimplifyExpressionBool', 'PhanTypeArraySuspiciousNullable'],
'tests/php/sync/test_interface.jetpack-sync-replicastore.php' => ['PhanRedundantConditionInLoop', 'PhanTypeObjectUnsetDeclaredProperty'],
'tests/php/test_class.functions.opengraph.php' => ['PhanTypeMismatchArgumentProbablyReal'],
- 'tests/php/test_deprecation.php' => ['PhanDeprecatedFunction'],
'tools/build-asset-cdn-json.php' => ['PhanTypeArraySuspiciousNullable', 'PhanTypeMismatchArgument'],
'uninstall.php' => ['PhanTypeMismatchArgumentInternal'],
],
diff --git a/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2 b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..4a4439ea1119d
--- /dev/null
+++ b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: major
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..a1c1831fa1ef7
--- /dev/null
+++ b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: other
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#3 b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#3
new file mode 100644
index 0000000000000..a1c1831fa1ef7
--- /dev/null
+++ b/projects/plugins/jetpack/changelog/update-bump_min_php_to_7.2#3
@@ -0,0 +1,5 @@
+Significance: patch
+Type: other
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/jetpack/composer.lock b/projects/plugins/jetpack/composer.lock
index c7e51cc5e03e9..d84cd247cc209 100644
--- a/projects/plugins/jetpack/composer.lock
+++ b/projects/plugins/jetpack/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,7 +268,7 @@
"dist": {
"type": "path",
"url": "../../packages/backup",
- "reference": "c3dca276344c0c19d5481aaa69d6165ff3621e94"
+ "reference": "3e1ceeca9ab6a579d33afebf5d2a18db1d56c74e"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -281,7 +281,7 @@
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -359,10 +359,10 @@
"dist": {
"type": "path",
"url": "../../packages/backup-helper-script-manager",
- "reference": "e210e4499dca7671e253fb5cddc468a96d10f534"
+ "reference": "c0278bf5a88606c8365553e10a1b5b4fe33ae638"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -419,7 +419,7 @@
"dist": {
"type": "path",
"url": "../../packages/blaze",
- "reference": "91db6682326f25fcebd4d61077e640508b0c38d1"
+ "reference": "2376d620ef802dade18c7a86c57491d5f6e45650"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -429,7 +429,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -500,11 +500,11 @@
"dist": {
"type": "path",
"url": "../../packages/blocks",
- "reference": "fe66a7a571c733fd55a82a44f9cc1cd22bf79a66"
+ "reference": "351dfa0b419267d3f355fb7789221be3116c3587"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -562,11 +562,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -630,11 +630,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -706,11 +706,11 @@
"dist": {
"type": "path",
"url": "../../packages/classic-theme-helper",
- "reference": "ab7d97e518c1dcff5e7364b762ce0044aa445519"
+ "reference": "ccbbd7016a4f34585969bad25b4fc692303241a7"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -777,10 +777,10 @@
"dist": {
"type": "path",
"url": "../../packages/compat",
- "reference": "d602d0487adba4e922aed6279fe10a16714b1218"
+ "reference": "bdcdbf49c8ac7bd69712b00c3055e8a5ac188a78"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev"
@@ -814,11 +814,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -874,10 +874,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -946,7 +946,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -956,7 +956,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1038,10 +1038,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1092,10 +1092,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1145,10 +1145,10 @@
"dist": {
"type": "path",
"url": "../../packages/error",
- "reference": "3bfbae3ea4fa29e8bc0be2a6ea460b62f195788c"
+ "reference": "d20d973be11785f8eb33ccf71cac670d5cdb1c85"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1198,11 +1198,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1274,7 +1274,7 @@
"dist": {
"type": "path",
"url": "../../packages/forms",
- "reference": "206521e6c38ef75ad14a1be65cccfdc5ddd7eeac"
+ "reference": "e0776415ac723cf968991a25d1e6eeff444c458a"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1283,7 +1283,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1359,12 +1359,12 @@
"dist": {
"type": "path",
"url": "../../packages/image-cdn",
- "reference": "095732f0a752837b0a346df64e09745a00583c52"
+ "reference": "f3bdf2f4a067c2bd1ce9003cd7b0985b2b16e6b0"
},
"require": {
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1425,12 +1425,12 @@
"dist": {
"type": "path",
"url": "../../packages/import",
- "reference": "c142b0fba6aed280cf36dccc4fceba02c8b09d89"
+ "reference": "67bfa53198d97d85ca723db9dfc8abd5bfc21d6a"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1497,10 +1497,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1555,7 +1555,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -1565,7 +1565,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1630,11 +1630,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1692,10 +1692,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1745,7 +1745,7 @@
"dist": {
"type": "path",
"url": "../../packages/masterbar",
- "reference": "77d9c48adbae3e33ffbfbb7bb7d5fa9b1fcd0654"
+ "reference": "6baf07b3e771c43560d33d1838ca13c0286b3681"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1757,7 +1757,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1828,7 +1828,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1845,7 +1845,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1933,10 +1933,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1994,11 +1994,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2062,12 +2062,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2118,11 +2118,11 @@
"dist": {
"type": "path",
"url": "../../packages/post-list",
- "reference": "0e86eb27f96b8f2b718473aead18d4ba00399eee"
+ "reference": "f9d9022acc1514ecd4da86a414a2f1eb20c6876c"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2183,10 +2183,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2253,7 +2253,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -2261,7 +2261,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2328,7 +2328,7 @@
"dist": {
"type": "path",
"url": "../../packages/publicize",
- "reference": "7e1e42139907eee58c3516b9439f859718eda8db"
+ "reference": "a71d3dd1bb89f0ab784d71f2b06c404beacadc54"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -2338,7 +2338,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2410,11 +2410,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2465,10 +2465,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2519,7 +2519,7 @@
"dist": {
"type": "path",
"url": "../../packages/search",
- "reference": "620f6c8bdc571225e0178c6b4219552569600319"
+ "reference": "0cc777ea3cfb9858fb50e8cce934b6e618b7e6e3"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -2529,7 +2529,7 @@
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2608,13 +2608,13 @@
"dist": {
"type": "path",
"url": "../../packages/stats",
- "reference": "06340fe6565175558bb018c995fa4a7377ade0b2"
+ "reference": "93b670b4b858f5ef36e4af913968dc0bc282036e"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2675,7 +2675,7 @@
"dist": {
"type": "path",
"url": "../../packages/stats-admin",
- "reference": "4e26e7b527c5224adf787c64d8d9ca3f95ea28f8"
+ "reference": "63a5c17ca7e7f594eb3e833af9944025531df876"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -2684,7 +2684,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2748,11 +2748,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2812,7 +2812,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -2821,7 +2821,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2890,7 +2890,7 @@
"dist": {
"type": "path",
"url": "../../packages/videopress",
- "reference": "5f97eac58e2fbb70db7ee098e46c860d24de4dfb"
+ "reference": "9228481f21d335a673383166d826ad7beb51ea14"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -2898,7 +2898,7 @@
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-plans": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2974,14 +2974,14 @@
"dist": {
"type": "path",
"url": "../../packages/waf",
- "reference": "92e0fed401849c2806d59369e46e41d7b306ee63"
+ "reference": "b89fe16bddd20bef7ded92c242b48c6913c16ab9"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-ip": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0",
+ "php": ">=7.2",
"wikimedia/aho-corasick": "^1.0"
},
"require-dev": {
@@ -3049,7 +3049,7 @@
"dist": {
"type": "path",
"url": "../../packages/wordads",
- "reference": "bd5ed16683c2258900193db4a9d9b15195f447d2"
+ "reference": "b5a0a8e1164cc2de655e2d6801708887fbe2287f"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -3057,7 +3057,7 @@
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -3129,12 +3129,12 @@
"dist": {
"type": "path",
"url": "../../packages/woocommerce-analytics",
- "reference": "2e266b4ad2e5f32825d2b4694edfe74e29610b6e"
+ "reference": "300b7478ad8412a67278c827bac72f84e3e8f945"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -3375,10 +3375,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
@@ -3452,11 +3452,11 @@
"dist": {
"type": "path",
"url": "../../packages/patchwork-redefine-exit",
- "reference": "d8459d1d23556799a92570d78a74cdda10dfc988"
+ "reference": "e39cd1236c9b5be6828f773e13faae385fa030d4"
},
"require": {
"antecedent/patchwork": "^2.1",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
diff --git a/projects/plugins/jetpack/jetpack.php b/projects/plugins/jetpack/jetpack.php
index f791925f866f7..38b5d1643e869 100644
--- a/projects/plugins/jetpack/jetpack.php
+++ b/projects/plugins/jetpack/jetpack.php
@@ -9,7 +9,7 @@
* License: GPL2+
* Text Domain: jetpack
* Requires at least: 6.6
- * Requires PHP: 7.0
+ * Requires PHP: 7.2
*
* @package automattic/jetpack
*/
@@ -33,7 +33,7 @@
*/
define( 'JETPACK__MINIMUM_WP_VERSION', '6.6' );
-define( 'JETPACK__MINIMUM_PHP_VERSION', '7.0' );
+define( 'JETPACK__MINIMUM_PHP_VERSION', '7.2' );
define( 'JETPACK__VERSION', '14.1-a.1' );
/**
diff --git a/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php b/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php
index 3c07b2642153b..c7e6b39fd8836 100644
--- a/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php
+++ b/projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php
@@ -631,7 +631,7 @@ public static function user_can_edit() {
* @param int|null $user_id The user_id to unset in the cache, otherwise the entire static cache is cleared.
* @return void
*/
- public static function clear_cache( int $user_id = null ) {
+ public static function clear_cache( ?int $user_id = null ) {
if ( empty( $user_id ) ) {
self::$user_is_paid_subscriber_cache = array();
self::$user_can_view_post_cache = array();
diff --git a/projects/plugins/jetpack/readme.txt b/projects/plugins/jetpack/readme.txt
index d227f2068155d..10594643a7da3 100644
--- a/projects/plugins/jetpack/readme.txt
+++ b/projects/plugins/jetpack/readme.txt
@@ -3,7 +3,7 @@ Contributors: automattic, adamkheckler, adrianmoldovanwp, aduth, akirk, allendav
Tags: Security, backup, malware, scan, performance
Stable tag: 14.0
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -303,7 +303,7 @@ Automattic actively develops [Jetpack Boost](https://wordpress.org/plugins/jetpa
= What version of PHP do I need? =
-Sites must be built on PHP 7.0 or greater, but Jetpack always supports the latest version of PHP.
+Sites must be built on PHP 7.2 or greater, but Jetpack always supports the latest version of PHP.
= Can Jetpack help my site comply with GDPR? =
diff --git a/projects/plugins/jetpack/tests/php/3rd-party/test_class-domain-mapping.php b/projects/plugins/jetpack/tests/php/3rd-party/test_class-domain-mapping.php
index 05e0e3a00498b..0159ef6699976 100644
--- a/projects/plugins/jetpack/tests/php/3rd-party/test_class-domain-mapping.php
+++ b/projects/plugins/jetpack/tests/php/3rd-party/test_class-domain-mapping.php
@@ -53,7 +53,7 @@ public function tear_down() {
*/
public function test_domain_mapping_should_not_try_to_hook_when_sunrise_disable() {
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'hook_wordpress_mu_domain_mapping', 'hook_wpmu_dev_domain_mapping' ) )
+ ->onlyMethods( array( 'hook_wordpress_mu_domain_mapping', 'hook_wpmu_dev_domain_mapping' ) )
->disableOriginalConstructor()
->getMock();
@@ -78,7 +78,7 @@ public function test_domain_mapping_should_stop_search_after_hooking_once() {
Constants::set_constant( 'SUNRISE', true );
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'hook_wordpress_mu_domain_mapping', 'hook_wpmu_dev_domain_mapping' ) )
+ ->onlyMethods( array( 'hook_wordpress_mu_domain_mapping', 'hook_wpmu_dev_domain_mapping' ) )
->disableOriginalConstructor()
->getMock();
@@ -103,7 +103,7 @@ public function test_domain_mapping_mu_domain_mapping_not_hooked_when_function_n
Constants::set_constant( 'SUNRISE_LOADED', true );
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'function_exists' ) )
+ ->onlyMethods( array( 'function_exists' ) )
->disableOriginalConstructor()
->getMock();
@@ -127,7 +127,7 @@ public function test_domain_mapping_mu_domain_mapping_hooked_when_function_exist
Constants::set_constant( 'SUNRISE_LOADED', true );
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'function_exists' ) )
+ ->onlyMethods( array( 'function_exists' ) )
->disableOriginalConstructor()
->getMock();
@@ -149,7 +149,7 @@ public function test_domain_mapping_mu_domain_mapping_hooked_when_function_exist
*/
public function test_domain_mapping_wpmu_dev_domain_mapping_not_hooked_when_functions_not_exist() {
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'class_exists', 'method_exists' ) )
+ ->onlyMethods( array( 'class_exists', 'method_exists' ) )
->disableOriginalConstructor()
->getMock();
@@ -175,7 +175,7 @@ public function test_domain_mapping_wpmu_dev_domain_mapping_not_hooked_when_func
*/
public function test_domain_mapping_wpmu_dev_domain_mapping_hooked_when_functions_exist() {
$stub = $this->getMockBuilder( MockDomainMapping::class )
- ->setMethods( array( 'class_exists', 'method_exists', 'get_domain_mapping_utils_instance' ) )
+ ->onlyMethods( array( 'class_exists', 'method_exists', 'get_domain_mapping_utils_instance' ) )
->disableOriginalConstructor()
->getMock();
diff --git a/projects/plugins/jetpack/tests/php/_inc/lib/test-class-jetpack-podcast-helper.php b/projects/plugins/jetpack/tests/php/_inc/lib/test-class-jetpack-podcast-helper.php
index 62827dc6a3461..117d4ae78dbe6 100644
--- a/projects/plugins/jetpack/tests/php/_inc/lib/test-class-jetpack-podcast-helper.php
+++ b/projects/plugins/jetpack/tests/php/_inc/lib/test-class-jetpack-podcast-helper.php
@@ -23,7 +23,7 @@ class WP_Test_Jetpack_Podcast_Helper extends WP_UnitTestCase {
public function test_get_track_data_feed_error() {
$podcast_helper = $this->getMockBuilder( 'Jetpack_Podcast_Helper' )
->disableOriginalConstructor()
- ->setMethods( array( 'load_feed', 'setup_tracks_callback' ) )
+ ->onlyMethods( array( 'load_feed', 'setup_tracks_callback' ) )
->getMock();
$podcast_helper->expects( $this->once() )
@@ -44,12 +44,12 @@ public function test_get_track_data_feed_error() {
public function test_get_track_data_find_episode() {
$podcast_helper = $this->getMockBuilder( 'Jetpack_Podcast_Helper' )
->disableOriginalConstructor()
- ->setMethods( array( 'load_feed', 'setup_tracks_callback' ) )
+ ->onlyMethods( array( 'load_feed', 'setup_tracks_callback' ) )
->getMock();
$track = $this->getMockBuilder( 'SimplePie_Item' )
->disableOriginalConstructor()
- ->setMethods( array( 'get_id' ) )
+ ->onlyMethods( array( 'get_id' ) )
->getMock();
$track->expects( $this->exactly( 2 ) )
@@ -58,7 +58,7 @@ public function test_get_track_data_find_episode() {
$rss = $this->getMockBuilder( 'SimplePie' )
->disableOriginalConstructor()
- ->setMethods( array( 'get_items' ) )
+ ->onlyMethods( array( 'get_items' ) )
->getMock();
$rss->expects( $this->exactly( 2 ) )
diff --git a/projects/plugins/jetpack/tests/php/core-api/test_class.jetpack-core-api-xmlrpc-consumer-endpoint.php b/projects/plugins/jetpack/tests/php/core-api/test_class.jetpack-core-api-xmlrpc-consumer-endpoint.php
index cc410a6b56300..208d1f59b0fc3 100644
--- a/projects/plugins/jetpack/tests/php/core-api/test_class.jetpack-core-api-xmlrpc-consumer-endpoint.php
+++ b/projects/plugins/jetpack/tests/php/core-api/test_class.jetpack-core-api-xmlrpc-consumer-endpoint.php
@@ -9,7 +9,7 @@ class WP_Test_Jetpack_Core_Api_Xmlrpc_Consumer_Endpoint extends WP_UnitTestCase
*/
public function test_Jetpack_Core_API_XMLRPC_Consumer_Endpoint_privacy_check( $query_success, $result ) {
$xmlrpc_mock = $this->getMockBuilder( 'Jetpack_IXR_Client' )
- ->setMethods( array( 'query', 'getResponse' ) )
+ ->onlyMethods( array( 'query', 'getResponse' ) )
->getMock();
$endpoint = new WP_Test_Dummy_Xmlrpc_Consumer_Endpoint( $xmlrpc_mock );
diff --git a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/class-test-wpcom-rest-api-v2-attachment-videopress-data.php b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/class-test-wpcom-rest-api-v2-attachment-videopress-data.php
index 6d5f515e3cd61..9276b674250b0 100644
--- a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/class-test-wpcom-rest-api-v2-attachment-videopress-data.php
+++ b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/class-test-wpcom-rest-api-v2-attachment-videopress-data.php
@@ -46,7 +46,7 @@ public function test_attachment_fields_videopress_get_schema() {
*/
public function test_attachment_fields_videopress_get() {
$mock = $this->getMockBuilder( WPCOM_REST_API_V2_Attachment_VideoPress_Data::class )
- ->setMethods( array( 'get_videopress_data' ) )
+ ->onlyMethods( array( 'get_videopress_data' ) )
->getMock();
$mock->expects( $this->once() )
diff --git a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php
index 2f7812a11c31d..43eec5064548d 100644
--- a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php
+++ b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-attachment-fields-videopress.php
@@ -37,7 +37,7 @@ public function test_attachment_fields_videopress_get_schema() {
*/
public function test_attachment_fields_videopress_get() {
$mock = $this->getMockBuilder( 'Automattic\Jetpack\VideoPress\WPCOM_REST_API_V2_Attachment_VideoPress_Field' )
- ->setMethods( array( 'get_videopress_guid' ) )
+ ->onlyMethods( array( 'get_videopress_guid' ) )
->getMock();
$mock->expects( $this->once() )
diff --git a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php
index e3707f0847f50..d0fb64c39ff84 100644
--- a/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php
+++ b/projects/plugins/jetpack/tests/php/core-api/wpcom-fields/test-post-fields-publicize-connections.php
@@ -312,7 +312,7 @@ private function setup_publicize_mock() {
$mockbuilder = $this->getMockBuilder( 'Automattic\Jetpack\Publicize\Publicize' );
}
- $this->publicize = $mockbuilder->setMethods( array( 'test_connection' ) )->getMock();
+ $this->publicize = $mockbuilder->onlyMethods( array( 'test_connection' ) )->getMock();
$this->publicize->method( 'test_connection' )
->withAnyParameters()
->willReturn( true );
diff --git a/projects/plugins/jetpack/tests/php/general/test_class.jetpack-client-server.php b/projects/plugins/jetpack/tests/php/general/test_class.jetpack-client-server.php
index 468e68e0bd9aa..49dcf53faf30a 100644
--- a/projects/plugins/jetpack/tests/php/general/test_class.jetpack-client-server.php
+++ b/projects/plugins/jetpack/tests/php/general/test_class.jetpack-client-server.php
@@ -37,7 +37,7 @@ public function test_jetpack_client_server_authorize_role_cap() {
wp_set_current_user( $author_id );
$client_server = $this->getMockBuilder( 'Jetpack_Client_Server' ) // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
- ->setMethods( array( 'do_exit' ) )
+ ->addMethods( array( 'do_exit' ) )
->getMock();
$result = Jetpack::connection()->authorize();
@@ -59,7 +59,7 @@ public function test_jetpack_client_server_authorize_no_role() {
wp_set_current_user( $author_id );
$client_server = $this->getMockBuilder( 'Jetpack_Client_Server' ) // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
- ->setMethods( array( 'do_exit' ) )
+ ->addMethods( array( 'do_exit' ) )
->getMock();
$result = Jetpack::connection()->authorize();
@@ -80,7 +80,7 @@ public function test_jetpack_client_server_authorize_data_error() {
wp_set_current_user( $author_id );
$client_server = $this->getMockBuilder( 'Jetpack_Client_Server' ) // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
- ->setMethods( array( 'do_exit' ) )
+ ->addMethods( array( 'do_exit' ) )
->getMock();
$result = Jetpack::connection()->authorize( array( 'error' => 'test_error' ) );
diff --git a/projects/plugins/jetpack/tests/php/general/test_class.jetpack-xmlrpc-server.php b/projects/plugins/jetpack/tests/php/general/test_class.jetpack-xmlrpc-server.php
index e81e7f2c83022..29886ca796e6a 100644
--- a/projects/plugins/jetpack/tests/php/general/test_class.jetpack-xmlrpc-server.php
+++ b/projects/plugins/jetpack/tests/php/general/test_class.jetpack-xmlrpc-server.php
@@ -110,7 +110,7 @@ public function test_remote_provision_success() {
public function test_remote_connect_hook() {
$xml = $this->getMockBuilder( 'Jetpack_IXR_Client' )
- ->setMethods(
+ ->onlyMethods(
array(
'query',
'isError',
diff --git a/projects/plugins/jetpack/tests/php/modules/geo-location/test_class.jetpack-geo-location.php b/projects/plugins/jetpack/tests/php/modules/geo-location/test_class.jetpack-geo-location.php
index 965481bdfb93d..397a5969143ee 100644
--- a/projects/plugins/jetpack/tests/php/modules/geo-location/test_class.jetpack-geo-location.php
+++ b/projects/plugins/jetpack/tests/php/modules/geo-location/test_class.jetpack-geo-location.php
@@ -49,7 +49,8 @@ public function tear_down() {
public function test_location_display_filter_skipped_when_lacking_theme_support() {
$instance = $this->create_mock_instance(
- array( 'current_theme_supports', 'the_content_location_display' ),
+ array( 'the_content_location_display' ),
+ array( 'current_theme_supports' ),
self::ENABLE_CONSTRUCTOR
);
@@ -72,6 +73,7 @@ public function test_location_display_filter_called_when_theme_supports_geo_loca
$instance = $this->create_mock_instance(
array( 'the_content_location_display' ),
+ array(),
self::ENABLE_CONSTRUCTOR
);
@@ -373,21 +375,27 @@ private function get_instance_with_mock_private_post() {
}
/**
- * @param string[] $additional_mock_methods
+ * @param string[] $existing_methods_to_mock Methods to mock that exist on the class.
+ * @param string[] $new_methods_to_mock Methods to mock that do not on the class.
* @param boolean $disable_constructor
* @return Jetpack_Geo_Location&\PHPUnit\Framework\MockObject\MockObject
*/
private function create_mock_instance(
- $additional_mock_methods = array(),
+ $existing_methods_to_mock = array(),
+ $new_methods_to_mock = array(),
$disable_constructor = self::DISABLE_CONSTRUCTOR
) {
- $mock_methods = array_merge(
+ $existing_methods_to_mock = array_merge(
array( 'get_meta_value' ),
- $additional_mock_methods
+ $existing_methods_to_mock
);
$builder = $this->getMockBuilder( Jetpack_Geo_Location::class )
- ->setMethods( $mock_methods );
+ ->onlyMethods( $existing_methods_to_mock );
+ // This throws an error if passed an empty array.
+ if ( ! empty( $new_methods_to_mock ) ) {
+ $builder->addMethods( $new_methods_to_mock );
+ }
if ( $disable_constructor ) {
$builder->disableOriginalConstructor();
@@ -400,7 +408,7 @@ private function mock_is_single() {
global $wp_query;
$wp_query = $this->getMockBuilder( WP_Query::class )
- ->setMethods( array( 'is_feed', 'is_single' ) )
+ ->onlyMethods( array( 'is_feed', 'is_single' ) )
->getMock();
$wp_query->expects( $this->any() )
@@ -412,7 +420,7 @@ private function mock_is_not_single() {
global $wp_query;
$wp_query = $this->getMockBuilder( WP_Query::class )
- ->setMethods( array( 'is_feed', 'is_single' ) )
+ ->onlyMethods( array( 'is_feed', 'is_single' ) )
->getMock();
$wp_query->expects( $this->any() )
@@ -424,7 +432,7 @@ private function mock_is_feed() {
global $wp_query;
$wp_query = $this->getMockBuilder( WP_Query::class )
- ->setMethods( array( 'is_feed' ) )
+ ->onlyMethods( array( 'is_feed' ) )
->getMock();
$wp_query->expects( $this->any() )
@@ -436,7 +444,7 @@ private function mock_is_not_feed() {
global $wp_query;
$wp_query = $this->getMockBuilder( WP_Query::class )
- ->setMethods( array( 'is_feed' ) )
+ ->onlyMethods( array( 'is_feed' ) )
->getMock();
$wp_query->expects( $this->any() )
diff --git a/projects/plugins/jetpack/tests/php/modules/publicize/test_class.publicize.php b/projects/plugins/jetpack/tests/php/modules/publicize/test_class.publicize.php
index 0a20125a8151b..5c89e913f5466 100644
--- a/projects/plugins/jetpack/tests/php/modules/publicize/test_class.publicize.php
+++ b/projects/plugins/jetpack/tests/php/modules/publicize/test_class.publicize.php
@@ -131,7 +131,7 @@ public function tear_down() {
private function setup_publicize_mock() {
global $publicize;
- $this->publicize = $this->getMockBuilder( Publicize::class )->setMethods( array( 'test_connection' ) )->getMock();
+ $this->publicize = $this->getMockBuilder( Publicize::class )->onlyMethods( array( 'test_connection' ) )->getMock();
$this->publicize->method( 'test_connection' )
->withAnyParameters()
diff --git a/projects/plugins/jetpack/tests/php/modules/widgets/test_wordpress-post-widget.php b/projects/plugins/jetpack/tests/php/modules/widgets/test_wordpress-post-widget.php
index 1bb510ca5848a..b0c3a0b8b4f23 100644
--- a/projects/plugins/jetpack/tests/php/modules/widgets/test_wordpress-post-widget.php
+++ b/projects/plugins/jetpack/tests/php/modules/widgets/test_wordpress-post-widget.php
@@ -161,7 +161,7 @@ public function test_get_site_hash() {
public function test_fetch_blog_data_invalid_site_info() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'fetch_site_info',
'parse_site_info_response',
@@ -225,7 +225,7 @@ public function test_fetch_blog_data_invalid_site_info() {
public function test_fetch_blog_data_invalid_post_info() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'fetch_site_info',
'parse_site_info_response',
@@ -295,7 +295,7 @@ public function test_fetch_blog_data_invalid_post_info() {
public function test_fetch_blog_data_invalid_post_info_predefined_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'fetch_site_info',
'parse_site_info_response',
@@ -376,7 +376,7 @@ public function test_fetch_blog_data_invalid_post_info_predefined_data() {
public function test_fetch_blog_data_valid() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'fetch_site_info',
'parse_site_info_response',
@@ -444,7 +444,7 @@ public function test_fetch_blog_data_valid() {
public function test_fetch_blog_data_only_site_info() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'fetch_site_info',
'parse_site_info_response',
@@ -506,7 +506,7 @@ public function test_fetch_blog_data_only_site_info() {
public function test_get_blog_data_invalid_cache() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'get_site_hash', 'wp_get_option' ) )
+ ->onlyMethods( array( 'get_site_hash', 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -539,7 +539,7 @@ public function test_get_blog_data_invalid_cache() {
public function test_get_blog_data_valid_cache() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'get_site_hash', 'wp_get_option' ) )
+ ->onlyMethods( array( 'get_site_hash', 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -564,7 +564,7 @@ public function test_get_blog_data_valid_cache() {
public function test_parse_posts_response_valid() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'format_posts_for_storage' ) )
+ ->onlyMethods( array( 'format_posts_for_storage' ) )
->disableOriginalConstructor()
->getMock();
@@ -588,7 +588,7 @@ public function test_parse_posts_response_valid() {
public function test_parse_posts_response_wp_error() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'format_posts_for_storage' ) )
+ ->onlyMethods( array( 'format_posts_for_storage' ) )
->disableOriginalConstructor()
->getMock();
@@ -616,7 +616,7 @@ public function test_parse_posts_response_wp_error() {
public function test_parse_posts_response_invalid_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'format_posts_for_storage' ) )
+ ->onlyMethods( array( 'format_posts_for_storage' ) )
->disableOriginalConstructor()
->getMock();
@@ -799,7 +799,7 @@ public function tests_format_posts_for_storage_invalid() {
public function test_cron_task_valid_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
+ ->onlyMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
->disableOriginalConstructor()
->getMock();
@@ -830,7 +830,7 @@ public function test_cron_task_valid_data() {
public function test_cron_task_no_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
+ ->onlyMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
->disableOriginalConstructor()
->getMock();
@@ -856,7 +856,7 @@ public function test_cron_task_no_data() {
public function test_cron_task_invalid_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
+ ->onlyMethods( array( 'get_instances_sites', 'update_instance', 'should_cron_be_running' ) )
->disableOriginalConstructor()
->getMock();
@@ -882,7 +882,7 @@ public function test_cron_task_invalid_data() {
public function test_cron_task_cron_should_not_be_running() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'get_instances_sites',
'update_instance',
@@ -913,7 +913,7 @@ public function test_cron_task_cron_should_not_be_running() {
public function test_get_instances_sites_valid_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'wp_get_option' ) )
+ ->onlyMethods( array( 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -947,7 +947,7 @@ public function test_get_instances_sites_valid_data() {
public function test_get_instances_sites_invalid_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'wp_get_option' ) )
+ ->onlyMethods( array( 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -967,7 +967,7 @@ public function test_get_instances_sites_invalid_data() {
public function test_get_instances_sites_invalid_data_2() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'wp_get_option' ) )
+ ->onlyMethods( array( 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -987,7 +987,7 @@ public function test_get_instances_sites_invalid_data_2() {
public function test_get_instances_sites_empty_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'wp_get_option' ) )
+ ->onlyMethods( array( 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -1007,7 +1007,7 @@ public function test_get_instances_sites_empty_data() {
public function test_get_instances_sites_broken_data() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods( array( 'wp_get_option' ) )
+ ->onlyMethods( array( 'wp_get_option' ) )
->disableOriginalConstructor()
->getMock();
@@ -1045,7 +1045,7 @@ public function test_get_instances_sites_broken_data() {
public function test_update_instance_valid_data_new_option() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'get_site_hash',
'wp_get_option',
@@ -1090,7 +1090,7 @@ public function test_update_instance_valid_data_new_option() {
public function test_update_instance_valid_data_update_option() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'get_site_hash',
'wp_get_option',
@@ -1393,7 +1393,7 @@ public function test_jetpack_display_posts_widget_cron_intervals_predefined_sche
public function test_fetch_service_endpoint_no_cache_hits() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'wp_wp_remote_get',
'parse_service_response',
@@ -1433,7 +1433,7 @@ public function test_fetch_service_endpoint_no_cache_hits() {
public function test_fetch_service_endpoint_with_cache_hits() {
/** @var Jetpack_Display_Posts_Widget $mock */
$mock = $this->getMockBuilder( 'Jetpack_Display_Posts_Widget' )
- ->setMethods(
+ ->onlyMethods(
array(
'wp_wp_remote_get',
'parse_service_response',
diff --git a/projects/plugins/jetpack/tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php b/projects/plugins/jetpack/tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php
index 10c645aed4156..dfa861b1077a7 100644
--- a/projects/plugins/jetpack/tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php
+++ b/projects/plugins/jetpack/tests/php/sync/class-wp-test-jetpack-sync-queue-base-tests.php
@@ -56,7 +56,7 @@ public function test_queue_lag() {
* @var $queue Automattic\Jetpack\Sync\Queue|\PHPUnit\Framework\MockObject\MockObject
*/
$queue = $this->getMockBuilder( 'Automattic\\Jetpack\\Sync\\Queue' )
- ->setMethods( array( 'generate_option_name_timestamp' ) )
+ ->onlyMethods( array( 'generate_option_name_timestamp' ) )
->setConstructorArgs( array( 'my_queue' ) )
->getMock();
diff --git a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-posts.php b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-posts.php
index 024801a6ac248..88998291f8c03 100644
--- a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-posts.php
+++ b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-posts.php
@@ -1422,7 +1422,7 @@ public function test_sync_jetpack_posts_akismet_post_meta_delete_is_chunked() {
$ids = array_fill( 0, 1450, 1234 );
$mocked = $this->getMockBuilder( stdClass::class )
- ->setMethods( array( 'chunked_call' ) )
+ ->addMethods( array( 'chunked_call' ) )
->getMock();
$mocked->expects( $this->exactly( 15 ) )
@@ -1453,7 +1453,7 @@ public function test_sync_jetpack_posts_akismet_post_meta_delete_invalid_data()
$ids = 'test_invalid_value';
$mocked = $this->getMockBuilder( stdClass::class )
- ->setMethods( array( 'chunked_call' ) )
+ ->addMethods( array( 'chunked_call' ) )
->getMock();
$mocked->expects( $this->never() )
@@ -1484,7 +1484,7 @@ public function test_sync_jetpack_posts_akismet_post_meta_delete_empty() {
$ids = array();
$mocked = $this->getMockBuilder( stdClass::class )
- ->setMethods( array( 'chunked_call' ) )
+ ->addMethods( array( 'chunked_call' ) )
->getMock();
$mocked->expects( $this->never() )
diff --git a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-queue.php b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-queue.php
index 656c24dcf7546..16324adb2d613 100644
--- a/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-queue.php
+++ b/projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-queue.php
@@ -58,7 +58,7 @@ public function test_queue_lag() {
* @var $queue Automattic\Jetpack\Sync\Queue|\PHPUnit\Framework\MockObject\MockObject
*/
$queue = $this->getMockBuilder( 'Automattic\\Jetpack\\Sync\\Queue' )
- ->setMethods( array( 'generate_option_name_timestamp' ) )
+ ->onlyMethods( array( 'generate_option_name_timestamp' ) )
->setConstructorArgs( array( 'my_queue' ) )
->getMock();
diff --git a/projects/plugins/jetpack/tests/php/test_deprecation.php b/projects/plugins/jetpack/tests/php/test_deprecation.php
index e510824d1d4b9..fc8a0112fca4c 100644
--- a/projects/plugins/jetpack/tests/php/test_deprecation.php
+++ b/projects/plugins/jetpack/tests/php/test_deprecation.php
@@ -9,7 +9,7 @@ public function test_deprecated_file_paths( $file_path, $replacement_path ) {
$this->setExpectedDeprecated( $file_path );
$mock = $this->getMockBuilder( stdClass::class )
- ->setMethods( array( 'action' ) )
+ ->addMethods( array( 'action' ) )
->getMock();
$mock->expects( $this->once() )->method( 'action' )->with( $file_path, $replacement_path );
diff --git a/projects/plugins/migration/changelog/update-bump_min_php_to_7.2 b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#3 b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#3
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/migration/changelog/update-bump_min_php_to_7.2#3
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/migration/composer.lock b/projects/plugins/migration/composer.lock
index 8041a8efe7321..070b6f75edfa2 100644
--- a/projects/plugins/migration/composer.lock
+++ b/projects/plugins/migration/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,7 +268,7 @@
"dist": {
"type": "path",
"url": "../../packages/backup",
- "reference": "c3dca276344c0c19d5481aaa69d6165ff3621e94"
+ "reference": "3e1ceeca9ab6a579d33afebf5d2a18db1d56c74e"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -281,7 +281,7 @@
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -359,10 +359,10 @@
"dist": {
"type": "path",
"url": "../../packages/backup-helper-script-manager",
- "reference": "e210e4499dca7671e253fb5cddc468a96d10f534"
+ "reference": "c0278bf5a88606c8365553e10a1b5b4fe33ae638"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -419,11 +419,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -487,11 +487,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -563,11 +563,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -623,10 +623,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -695,7 +695,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -705,7 +705,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -787,10 +787,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -841,10 +841,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -894,11 +894,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -970,10 +970,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1028,7 +1028,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -1038,7 +1038,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1103,11 +1103,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1165,10 +1165,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1218,7 +1218,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1235,7 +1235,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1323,10 +1323,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1384,11 +1384,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1452,12 +1452,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1508,10 +1508,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1578,7 +1578,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1586,7 +1586,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1653,11 +1653,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1708,10 +1708,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1762,11 +1762,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1826,7 +1826,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1835,7 +1835,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1906,10 +1906,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/migration/readme.txt b/projects/plugins/migration/readme.txt
index ff358b156c556..c8ee7d83732df 100644
--- a/projects/plugins/migration/readme.txt
+++ b/projects/plugins/migration/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic
Tags: migrate, migration, backup, restore, transfer, move, copy, wordpress.com, automattic, import, importer, hosting
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 2.0.0
License: GPLv2 or later
diff --git a/projects/plugins/mu-wpcom-plugin/changelog/update-bump_min_php_to_7.2 b/projects/plugins/mu-wpcom-plugin/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/mu-wpcom-plugin/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/mu-wpcom-plugin/composer.lock b/projects/plugins/mu-wpcom-plugin/composer.lock
index 17c7d37dc4caa..5bfca8ba91340 100644
--- a/projects/plugins/mu-wpcom-plugin/composer.lock
+++ b/projects/plugins/mu-wpcom-plugin/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,7 +200,7 @@
"dist": {
"type": "path",
"url": "../../packages/blaze",
- "reference": "91db6682326f25fcebd4d61077e640508b0c38d1"
+ "reference": "2376d620ef802dade18c7a86c57491d5f6e45650"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -210,7 +210,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -281,11 +281,11 @@
"dist": {
"type": "path",
"url": "../../packages/blocks",
- "reference": "fe66a7a571c733fd55a82a44f9cc1cd22bf79a66"
+ "reference": "351dfa0b419267d3f355fb7789221be3116c3587"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -343,12 +343,12 @@
"dist": {
"type": "path",
"url": "../../packages/calypsoify",
- "reference": "bba623ae1b52cbed1eca788c775f1224f6282b7e"
+ "reference": "9bcebb94a35dbf0cf9072394a7ecd849b1a6e938"
},
"require": {
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -408,11 +408,11 @@
"dist": {
"type": "path",
"url": "../../packages/classic-theme-helper",
- "reference": "ab7d97e518c1dcff5e7364b762ce0044aa445519"
+ "reference": "ccbbd7016a4f34585969bad25b4fc692303241a7"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -479,10 +479,10 @@
"dist": {
"type": "path",
"url": "../../packages/compat",
- "reference": "d602d0487adba4e922aed6279fe10a16714b1218"
+ "reference": "bdcdbf49c8ac7bd69712b00c3055e8a5ac188a78"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev"
@@ -516,7 +516,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -526,7 +526,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -608,10 +608,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -662,10 +662,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -715,11 +715,11 @@
"dist": {
"type": "path",
"url": "../../packages/google-analytics",
- "reference": "3bdb31a7bdb9219a7e5c18093fd5002c0dd24a9c"
+ "reference": "7c1166704c885b5dcb3a1266dfdae3c0bb4fad70"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -786,10 +786,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -844,7 +844,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -854,7 +854,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -919,10 +919,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -972,7 +972,7 @@
"dist": {
"type": "path",
"url": "../../packages/masterbar",
- "reference": "77d9c48adbae3e33ffbfbb7bb7d5fa9b1fcd0654"
+ "reference": "6baf07b3e771c43560d33d1838ca13c0286b3681"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -984,7 +984,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1055,7 +1055,7 @@
"dist": {
"type": "path",
"url": "../../packages/jetpack-mu-wpcom",
- "reference": "8d5110237408dfe5d6ec83c449d83b3ecf40b323"
+ "reference": "8db7c8f2989a1f273fc1d562488cb78dce205dd1"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1070,7 +1070,7 @@
"automattic/jetpack-stats-admin": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/scheduled-updates": "@dev",
- "php": ">=7.0",
+ "php": ">=7.2",
"scssphp/scssphp": "1.12.0"
},
"require-dev": {
@@ -1138,10 +1138,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1199,11 +1199,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1267,11 +1267,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1322,10 +1322,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1376,13 +1376,13 @@
"dist": {
"type": "path",
"url": "../../packages/stats",
- "reference": "06340fe6565175558bb018c995fa4a7377ade0b2"
+ "reference": "93b670b4b858f5ef36e4af913968dc0bc282036e"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1443,7 +1443,7 @@
"dist": {
"type": "path",
"url": "../../packages/stats-admin",
- "reference": "4e26e7b527c5224adf787c64d8d9ca3f95ea28f8"
+ "reference": "63a5c17ca7e7f594eb3e833af9944025531df876"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1452,7 +1452,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1516,11 +1516,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1580,7 +1580,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1589,7 +1589,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1658,7 +1658,7 @@
"dist": {
"type": "path",
"url": "../../packages/scheduled-updates",
- "reference": "ec53f945ee4289d96ecbf8542f3add0617404048"
+ "reference": "29536a1601f0fd38fa5dd80a08276f04198b13e8"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1666,7 +1666,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1810,10 +1810,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/protect/changelog/update-bump_min_php_to_7.2 b/projects/plugins/protect/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/protect/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/protect/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/protect/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/protect/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/protect/composer.lock b/projects/plugins/protect/composer.lock
index 123a7cbde618f..e7a62098b24ba 100644
--- a/projects/plugins/protect/composer.lock
+++ b/projects/plugins/protect/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,10 +268,10 @@
"dist": {
"type": "path",
"url": "../../packages/backup-helper-script-manager",
- "reference": "e210e4499dca7671e253fb5cddc468a96d10f534"
+ "reference": "c0278bf5a88606c8365553e10a1b5b4fe33ae638"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -328,11 +328,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -396,11 +396,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,11 +472,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -532,10 +532,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -604,7 +604,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -614,7 +614,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -696,10 +696,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -750,10 +750,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -803,11 +803,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -879,10 +879,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -937,7 +937,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -947,7 +947,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1012,11 +1012,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1074,10 +1074,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1127,7 +1127,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1144,7 +1144,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1232,10 +1232,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1293,11 +1293,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1361,12 +1361,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1417,10 +1417,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1487,7 +1487,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1495,7 +1495,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1562,11 +1562,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1617,10 +1617,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1671,11 +1671,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1735,7 +1735,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1744,7 +1744,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1813,12 +1813,12 @@
"dist": {
"type": "path",
"url": "../../packages/transport-helper",
- "reference": "b20031c3f27bab59f530edb6556c7e9c6d7b50b0"
+ "reference": "a45c81feeb0fc863bff720e66c92609fc9d6ddf4"
},
"require": {
"automattic/jetpack-backup-helper-script-manager": "@dev",
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1888,14 +1888,14 @@
"dist": {
"type": "path",
"url": "../../packages/waf",
- "reference": "92e0fed401849c2806d59369e46e41d7b306ee63"
+ "reference": "b89fe16bddd20bef7ded92c242b48c6913c16ab9"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-ip": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0",
+ "php": ">=7.2",
"wikimedia/aho-corasick": "^1.0"
},
"require-dev": {
@@ -2016,10 +2016,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/protect/readme.txt b/projects/plugins/protect/readme.txt
index 73fc045bb0b51..81d864b01f1bb 100644
--- a/projects/plugins/protect/readme.txt
+++ b/projects/plugins/protect/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic, retrofox, leogermani, renatoagds, bjorsch, ebinnion, fgiannar, zinigor, miguelxavierpenha, dsmart, jeherve, manzoorwanijk, njweller, oskosk, samiff, siddarthan, wpkaren, arsihasi, kraftbj, kev, sermitr, kangzj, pabline, dkmyta
Tags: jetpack, protect, security, malware, scan
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 1.4.1
License: GPLv2 or later
diff --git a/projects/plugins/search/changelog/update-bump_min_php_to_7.2 b/projects/plugins/search/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/search/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/search/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/search/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/search/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/search/composer.lock b/projects/plugins/search/composer.lock
index bf9e65acb71cf..f063ea6080393 100644
--- a/projects/plugins/search/composer.lock
+++ b/projects/plugins/search/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -336,11 +336,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -412,11 +412,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,10 +472,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,7 +544,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -554,7 +554,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -636,10 +636,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -690,10 +690,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -743,11 +743,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -819,10 +819,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -877,7 +877,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -887,7 +887,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -952,11 +952,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1014,10 +1014,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1067,7 +1067,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1084,7 +1084,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1172,10 +1172,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1233,11 +1233,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1301,12 +1301,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1357,10 +1357,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1427,7 +1427,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1435,7 +1435,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1502,11 +1502,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1557,10 +1557,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1611,7 +1611,7 @@
"dist": {
"type": "path",
"url": "../../packages/search",
- "reference": "620f6c8bdc571225e0178c6b4219552569600319"
+ "reference": "0cc777ea3cfb9858fb50e8cce934b6e618b7e6e3"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1621,7 +1621,7 @@
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1700,13 +1700,13 @@
"dist": {
"type": "path",
"url": "../../packages/stats",
- "reference": "06340fe6565175558bb018c995fa4a7377ade0b2"
+ "reference": "93b670b4b858f5ef36e4af913968dc0bc282036e"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1767,11 +1767,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1831,7 +1831,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1840,7 +1840,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1911,10 +1911,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/search/readme.txt b/projects/plugins/search/readme.txt
index 22edd35c982d4..2041c4a205ff8 100644
--- a/projects/plugins/search/readme.txt
+++ b/projects/plugins/search/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic, annamcphee, bluefuton, kangzj, jsnmoon, robfelty, gibrown, trakos, dognose24, a8ck3n
Tags: search, filter, woocommerce search, ajax search, product search, free cloud-based search
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 1.4.0
License: GPLv2 or later
diff --git a/projects/plugins/social/.phan/baseline.php b/projects/plugins/social/.phan/baseline.php
index ae4fef7e528b8..72cefa8683138 100644
--- a/projects/plugins/social/.phan/baseline.php
+++ b/projects/plugins/social/.phan/baseline.php
@@ -10,7 +10,6 @@
return [
// # Issue statistics:
// PhanUndeclaredProperty : 20+ occurrences
- // PhanDeprecatedFunction : 1 occurrence
// PhanNoopNew : 1 occurrence
// PhanTypeMismatchArgument : 1 occurrence
// PhanTypeMismatchReturnProbablyReal : 1 occurrence
@@ -20,7 +19,7 @@
'jetpack-social.php' => ['PhanNoopNew'],
'src/class-jetpack-social.php' => ['PhanTypeMismatchReturnProbablyReal'],
'src/class-note.php' => ['PhanTypeMismatchArgument'],
- 'tests/php/test-class-jetpack-social.php' => ['PhanDeprecatedFunction', 'PhanUndeclaredProperty'],
+ 'tests/php/test-class-jetpack-social.php' => ['PhanUndeclaredProperty'],
'tests/php/test-class-meta-tags.php' => ['PhanUndeclaredProperty'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
diff --git a/projects/plugins/social/changelog/update-bump_min_php_to_7.2 b/projects/plugins/social/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/social/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/social/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/social/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/social/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/social/composer.lock b/projects/plugins/social/composer.lock
index 622777203a60e..10faed06c315c 100644
--- a/projects/plugins/social/composer.lock
+++ b/projects/plugins/social/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -336,11 +336,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -412,11 +412,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,10 +472,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,7 +544,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -554,7 +554,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -636,10 +636,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -690,10 +690,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -743,11 +743,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -819,10 +819,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -877,7 +877,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -887,7 +887,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -952,11 +952,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1014,10 +1014,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1067,7 +1067,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1084,7 +1084,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1172,10 +1172,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1233,11 +1233,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1301,12 +1301,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1357,11 +1357,11 @@
"dist": {
"type": "path",
"url": "../../packages/post-list",
- "reference": "0e86eb27f96b8f2b718473aead18d4ba00399eee"
+ "reference": "f9d9022acc1514ecd4da86a414a2f1eb20c6876c"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1422,10 +1422,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1492,7 +1492,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1500,7 +1500,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1567,7 +1567,7 @@
"dist": {
"type": "path",
"url": "../../packages/publicize",
- "reference": "7e1e42139907eee58c3516b9439f859718eda8db"
+ "reference": "a71d3dd1bb89f0ab784d71f2b06c404beacadc54"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1577,7 +1577,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1649,11 +1649,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1704,10 +1704,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1758,11 +1758,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1822,7 +1822,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1831,7 +1831,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1950,10 +1950,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/social/readme.txt b/projects/plugins/social/readme.txt
index 038e5f32a660f..d00c844e0e05e 100644
--- a/projects/plugins/social/readme.txt
+++ b/projects/plugins/social/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic, pabline, siddarthan, gmjuhasz, manzoorwanijk
Tags: social media automation, social media scheduling, auto share, social sharing, social media marketing
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 4.5.1
License: GPLv2 or later
diff --git a/projects/plugins/social/tests/php/test-class-jetpack-social.php b/projects/plugins/social/tests/php/test-class-jetpack-social.php
index 8231806191799..e43efb68a8388 100644
--- a/projects/plugins/social/tests/php/test-class-jetpack-social.php
+++ b/projects/plugins/social/tests/php/test-class-jetpack-social.php
@@ -48,7 +48,7 @@ public function test_publicize_module_is_activated_on_plugin_activation() {
// Publicize global is not available at the moment during these tests
$this->social = $this->getMockBuilder( Jetpack_Social::class )
->setConstructorArgs( array( $connection_manager ) )
- ->setMethods( array( 'calculate_scheduled_shares' ) )
+ ->onlyMethods( array( 'calculate_scheduled_shares' ) )
->getMock();
$this->social->expects( $this->once() )->method( 'calculate_scheduled_shares' );
diff --git a/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2 b/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/starter-plugin/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/starter-plugin/composer.lock b/projects/plugins/starter-plugin/composer.lock
index b9e61f78b993e..c9b615283302e 100644
--- a/projects/plugins/starter-plugin/composer.lock
+++ b/projects/plugins/starter-plugin/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -336,11 +336,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -412,11 +412,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,10 +472,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,7 +544,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -554,7 +554,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -636,10 +636,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -690,10 +690,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -743,11 +743,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -819,10 +819,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -877,7 +877,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -887,7 +887,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -952,11 +952,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1014,10 +1014,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1067,7 +1067,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1084,7 +1084,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1172,10 +1172,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1233,11 +1233,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1301,12 +1301,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1357,10 +1357,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1427,7 +1427,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1435,7 +1435,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1502,11 +1502,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1557,10 +1557,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1611,11 +1611,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1675,7 +1675,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1684,7 +1684,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1803,10 +1803,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/starter-plugin/readme.txt b/projects/plugins/starter-plugin/readme.txt
index dd71009ae1c8a..decda964a6211 100644
--- a/projects/plugins/starter-plugin/readme.txt
+++ b/projects/plugins/starter-plugin/readme.txt
@@ -2,7 +2,7 @@
Contributors: automattic,
Tags: jetpack, stuff
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 0.1.0-alpha
License: GPLv2 or later
diff --git a/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2 b/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/super-cache/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/super-cache/composer.lock b/projects/plugins/super-cache/composer.lock
index 19c42243fde8d..941000efc9d2f 100644
--- a/projects/plugins/super-cache/composer.lock
+++ b/projects/plugins/super-cache/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -67,10 +67,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/super-cache/readme.txt b/projects/plugins/super-cache/readme.txt
index a12e274a7ae71..d5c43e1b090f5 100644
--- a/projects/plugins/super-cache/readme.txt
+++ b/projects/plugins/super-cache/readme.txt
@@ -2,7 +2,7 @@
Contributors: donncha, automattic, adnan007, dilirity, mikemayhem3030, pyronaur, thingalon
Tags: performance, caching, wp-cache, wp-super-cache, cache
Requires at least: 6.6
-Requires PHP: 7.0
+Requires PHP: 7.2
Tested up to: 6.7
Stable tag: 1.12.3
License: GPLv2 or later
diff --git a/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2 b/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/vaultpress/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/vaultpress/composer.lock b/projects/plugins/vaultpress/composer.lock
index 2b161bb663628..4111506d9c6ec 100644
--- a/projects/plugins/vaultpress/composer.lock
+++ b/projects/plugins/vaultpress/composer.lock
@@ -12,11 +12,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -80,10 +80,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -135,10 +135,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/vaultpress/readme.txt b/projects/plugins/vaultpress/readme.txt
index 806aad2e538c3..693f16b277fe8 100644
--- a/projects/plugins/vaultpress/readme.txt
+++ b/projects/plugins/vaultpress/readme.txt
@@ -4,7 +4,7 @@ Tags: security, malware, virus, archive, back up, back ups, backup, backups, sca
Requires at least: 5.2
Tested up to: 6.7
Stable tag: 3.0.0
-Requires PHP: 7.0
+Requires PHP: 7.2
License: GPLv2
(DEPRECATED: Please install "Jetpack VaultPress Backup" instead) Jetpack VaultPress offers real-time backups, one-click restores, and premium support from WordPress experts.
diff --git a/projects/plugins/vaultpress/vaultpress.php b/projects/plugins/vaultpress/vaultpress.php
index 29fd112864799..2d3671544f8ba 100644
--- a/projects/plugins/vaultpress/vaultpress.php
+++ b/projects/plugins/vaultpress/vaultpress.php
@@ -16,7 +16,7 @@
// don't call the file directly.
defined( 'ABSPATH' ) || die();
-define( 'VAULTPRESS__MINIMUM_PHP_VERSION', '7.0' );
+define( 'VAULTPRESS__MINIMUM_PHP_VERSION', '7.2' );
define( 'VAULTPRESS__VERSION', '3.0.0' );
define( 'VAULTPRESS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
diff --git a/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2 b/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..712ab5f494aaa
--- /dev/null
+++ b/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,4 @@
+Significance: major
+Type: removed
+
+General: Update minimum PHP version to 7.2.
diff --git a/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2#2 b/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2#2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/videopress/changelog/update-bump_min_php_to_7.2#2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/videopress/composer.lock b/projects/plugins/videopress/composer.lock
index 85d0b89459981..b7755ff77e115 100644
--- a/projects/plugins/videopress/composer.lock
+++ b/projects/plugins/videopress/composer.lock
@@ -12,10 +12,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -65,10 +65,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,11 +130,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -200,11 +200,11 @@
"dist": {
"type": "path",
"url": "../../packages/autoloader",
- "reference": "55bb380d5cde3e6bcb2f76cfa57c3cabeaf7abce"
+ "reference": "eb0c2612bc1e969fb8153bf19b0abd3806fdd9fd"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -268,11 +268,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-core",
- "reference": "2b2740f49cd63e8ae0143a2af16de95b44449567"
+ "reference": "55ddd2fa10dcfc2754609f5599a0ce50c1ef9de4"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -336,11 +336,11 @@
"dist": {
"type": "path",
"url": "../../packages/boost-speed-score",
- "reference": "9ff00a15fabb9716bd4269787fe72af659b3f03f"
+ "reference": "54abd35df08e3cce08a3ebd28235c2d66b5d8e30"
},
"require": {
"automattic/jetpack-boost-core": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -412,11 +412,11 @@
"dist": {
"type": "path",
"url": "../../packages/composer-plugin",
- "reference": "91b244a5e5393e770f1993662e18398d245326aa"
+ "reference": "3655bee8ae57593b80b36f5806b4da4483c68886"
},
"require": {
"composer-plugin-api": "^2.1.0",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -472,10 +472,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,7 +544,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -554,7 +554,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -636,10 +636,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -690,10 +690,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -743,11 +743,11 @@
"dist": {
"type": "path",
"url": "../../packages/explat",
- "reference": "d4273be2b851d454fafc90116aa778c068d167a8"
+ "reference": "5f6f8baea24d6d4bb4e8e6bc910170c4a3a8746c"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -819,10 +819,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -877,7 +877,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -887,7 +887,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -952,11 +952,11 @@
"dist": {
"type": "path",
"url": "../../packages/licensing",
- "reference": "0bb47bd0005f2108749fc067bee2c71505b2e137"
+ "reference": "34297b0e1328fe667fc09c3a7b5b1b65e28f0def"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1014,10 +1014,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1067,7 +1067,7 @@
"dist": {
"type": "path",
"url": "../../packages/my-jetpack",
- "reference": "2abb0926c7687eb5b8d1e0759c62447dfb36fafd"
+ "reference": "326fe5464ac6c2b6f10eb11f116dd38349b89c2d"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1084,7 +1084,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1172,10 +1172,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1233,11 +1233,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1301,12 +1301,12 @@
"dist": {
"type": "path",
"url": "../../packages/plugins-installer",
- "reference": "d94f2b366a9f6594622faa189992f36e1aa06d83"
+ "reference": "ff73f93e6aecf67e9eb6ccb4f54e99fcaed3c4c1"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1357,10 +1357,10 @@
"dist": {
"type": "path",
"url": "../../packages/protect-models",
- "reference": "7a97893e40a73bb3b8f458402cb2eb39d70013ca"
+ "reference": "58406d5a133ff8c63e4239dc7dd06a83cc887356"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1427,7 +1427,7 @@
"dist": {
"type": "path",
"url": "../../packages/protect-status",
- "reference": "62ecfb4ca12097c037a2b5ec622c4a3dc0100f26"
+ "reference": "7ecce4c5ac2d61254ef487e03556c340d8839227"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1435,7 +1435,7 @@
"automattic/jetpack-plugins-installer": "@dev",
"automattic/jetpack-protect-models": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1502,11 +1502,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1557,10 +1557,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1611,11 +1611,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1675,7 +1675,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1684,7 +1684,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1753,7 +1753,7 @@
"dist": {
"type": "path",
"url": "../../packages/videopress",
- "reference": "5f97eac58e2fbb70db7ee098e46c860d24de4dfb"
+ "reference": "9228481f21d335a673383166d826ad7beb51ea14"
},
"require": {
"automattic/jetpack-admin-ui": "@dev",
@@ -1761,7 +1761,7 @@
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-my-jetpack": "@dev",
"automattic/jetpack-plans": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1839,10 +1839,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/projects/plugins/videopress/readme.txt b/projects/plugins/videopress/readme.txt
index f2d91c2fc3d18..f2e1a317c67ec 100644
--- a/projects/plugins/videopress/readme.txt
+++ b/projects/plugins/videopress/readme.txt
@@ -5,7 +5,7 @@ Tags: video, video-hosting, video-player, cdn, video-streaming
Requires at least: 6.6
Tested up to: 6.7
Stable tag: 1.5
-Requires PHP: 7.0
+Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
The finest video hosting for WordPress. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.
diff --git a/projects/plugins/wpcomsh/changelog/update-bump_min_php_to_7.2 b/projects/plugins/wpcomsh/changelog/update-bump_min_php_to_7.2
new file mode 100644
index 0000000000000..9aa70e3ec1f75
--- /dev/null
+++ b/projects/plugins/wpcomsh/changelog/update-bump_min_php_to_7.2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: changed
+Comment: Updated composer.lock.
+
+
diff --git a/projects/plugins/wpcomsh/composer.lock b/projects/plugins/wpcomsh/composer.lock
index cef097b9d688c..f224a18360d30 100644
--- a/projects/plugins/wpcomsh/composer.lock
+++ b/projects/plugins/wpcomsh/composer.lock
@@ -77,10 +77,10 @@
"dist": {
"type": "path",
"url": "../../packages/a8c-mc-stats",
- "reference": "bace897a0d8b7801ec98a45dd6fba22834d6982a"
+ "reference": "3933f18a20a4a4a419878259e0a0bdfed3dbd4b1"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -130,10 +130,10 @@
"dist": {
"type": "path",
"url": "../../packages/admin-ui",
- "reference": "e7092fd4ebb17012e54e543336ef4b0eedef9bdd"
+ "reference": "c444bd8d1c2a19445a294f0c0d630ac214f8fa7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -195,11 +195,11 @@
"dist": {
"type": "path",
"url": "../../packages/assets",
- "reference": "cc1bbea8e0248905b5b684c52913f7405dc8436c"
+ "reference": "b4126de85f92bde2a4361ae17c4b670194c0f44e"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -265,7 +265,7 @@
"dist": {
"type": "path",
"url": "../../packages/blaze",
- "reference": "91db6682326f25fcebd4d61077e640508b0c38d1"
+ "reference": "2376d620ef802dade18c7a86c57491d5f6e45650"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -275,7 +275,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -346,11 +346,11 @@
"dist": {
"type": "path",
"url": "../../packages/blocks",
- "reference": "fe66a7a571c733fd55a82a44f9cc1cd22bf79a66"
+ "reference": "351dfa0b419267d3f355fb7789221be3116c3587"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -408,12 +408,12 @@
"dist": {
"type": "path",
"url": "../../packages/calypsoify",
- "reference": "bba623ae1b52cbed1eca788c775f1224f6282b7e"
+ "reference": "9bcebb94a35dbf0cf9072394a7ecd849b1a6e938"
},
"require": {
"automattic/jetpack-assets": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -473,11 +473,11 @@
"dist": {
"type": "path",
"url": "../../packages/classic-theme-helper",
- "reference": "ab7d97e518c1dcff5e7364b762ce0044aa445519"
+ "reference": "ccbbd7016a4f34585969bad25b4fc692303241a7"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -544,10 +544,10 @@
"dist": {
"type": "path",
"url": "../../packages/compat",
- "reference": "d602d0487adba4e922aed6279fe10a16714b1218"
+ "reference": "bdcdbf49c8ac7bd69712b00c3055e8a5ac188a78"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev"
@@ -581,10 +581,10 @@
"dist": {
"type": "path",
"url": "../../packages/config",
- "reference": "46c0d6c214f2940e2b5c1c5ccafbf5922a16592c"
+ "reference": "c88a97e765faf94abb41beb1622f580fb17c0149"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -653,7 +653,7 @@
"dist": {
"type": "path",
"url": "../../packages/connection",
- "reference": "03749a6b621508ccc7dd060e07319b126afd1002"
+ "reference": "dda9e2615b3f0197ede157cfad28005abe39bfec"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -663,7 +663,7 @@
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -745,10 +745,10 @@
"dist": {
"type": "path",
"url": "../../packages/constants",
- "reference": "fc05b88879cb8625804049f864c08d685f631ec0"
+ "reference": "6ad4172fbccd16d59b70ea16fce43917122e6612"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -799,10 +799,10 @@
"dist": {
"type": "path",
"url": "../../packages/device-detection",
- "reference": "20cbf64f9d0f79edf7d36dac7070c3ae2a1201f8"
+ "reference": "b1e167cacbab928113f768b20d9201d1783ab5b3"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -852,11 +852,11 @@
"dist": {
"type": "path",
"url": "../../packages/google-analytics",
- "reference": "3bdb31a7bdb9219a7e5c18093fd5002c0dd24a9c"
+ "reference": "7c1166704c885b5dcb3a1266dfdae3c0bb4fad70"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -923,10 +923,10 @@
"dist": {
"type": "path",
"url": "../../packages/ip",
- "reference": "11c27058a3f7164e4a4115ec9b0b266ee4cd3ee3"
+ "reference": "c41a00a0338dc1904de33dbba3f378ae09bf1f7c"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -981,7 +981,7 @@
"dist": {
"type": "path",
"url": "../../packages/jitm",
- "reference": "1a94a70ff0c019b9cd431869d97fa735bfb4693a"
+ "reference": "88213c3f1eee52f1a312f3a54feb962c67fe7400"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "@dev",
@@ -991,7 +991,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-redirect": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1056,10 +1056,10 @@
"dist": {
"type": "path",
"url": "../../packages/logo",
- "reference": "d760d29e84e858d603810db66d4e22b9c716e0a4"
+ "reference": "284992269e9c7613953af2a7cbc9413e3d663a60"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1109,7 +1109,7 @@
"dist": {
"type": "path",
"url": "../../packages/masterbar",
- "reference": "77d9c48adbae3e33ffbfbb7bb7d5fa9b1fcd0654"
+ "reference": "6baf07b3e771c43560d33d1838ca13c0286b3681"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1121,7 +1121,7 @@
"automattic/jetpack-logo": "@dev",
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1192,7 +1192,7 @@
"dist": {
"type": "path",
"url": "../../packages/jetpack-mu-wpcom",
- "reference": "8d5110237408dfe5d6ec83c449d83b3ecf40b323"
+ "reference": "8db7c8f2989a1f273fc1d562488cb78dce205dd1"
},
"require": {
"automattic/jetpack-assets": "@dev",
@@ -1207,7 +1207,7 @@
"automattic/jetpack-stats-admin": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/scheduled-updates": "@dev",
- "php": ">=7.0",
+ "php": ">=7.2",
"scssphp/scssphp": "1.12.0"
},
"require-dev": {
@@ -1275,10 +1275,10 @@
"dist": {
"type": "path",
"url": "../../packages/password-checker",
- "reference": "f998d7b8dac8f5dcce7a22e250fdab4d21cf1ddc"
+ "reference": "275b49fa541b9ee6794ba1df03f4f028fdb6dcab"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1336,11 +1336,11 @@
"dist": {
"type": "path",
"url": "../../packages/plans",
- "reference": "38421191f210634bebc28acc15fcf770b33a85fa"
+ "reference": "b6717780fe6a6d2c7c4d88d1efb6055bfb1cd0a9"
},
"require": {
"automattic/jetpack-connection": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1404,11 +1404,11 @@
"dist": {
"type": "path",
"url": "../../packages/post-list",
- "reference": "0e86eb27f96b8f2b718473aead18d4ba00399eee"
+ "reference": "f9d9022acc1514ecd4da86a414a2f1eb20c6876c"
},
"require": {
"automattic/jetpack-assets": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1469,11 +1469,11 @@
"dist": {
"type": "path",
"url": "../../packages/redirect",
- "reference": "62d06b2d99c6792338df452dd330b8269c0c2074"
+ "reference": "5068f4a707b90e6e068e45bad7fe96a2a91f2f64"
},
"require": {
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1524,10 +1524,10 @@
"dist": {
"type": "path",
"url": "../../packages/roles",
- "reference": "ec417d3589eb80e08d95b537adf8711318bc126e"
+ "reference": "d6655f165e1c27843fddafc59fcaeff013cab424"
},
"require": {
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1578,13 +1578,13 @@
"dist": {
"type": "path",
"url": "../../packages/stats",
- "reference": "06340fe6565175558bb018c995fa4a7377ade0b2"
+ "reference": "93b670b4b858f5ef36e4af913968dc0bc282036e"
},
"require": {
"automattic/jetpack-connection": "@dev",
"automattic/jetpack-constants": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1645,7 +1645,7 @@
"dist": {
"type": "path",
"url": "../../packages/stats-admin",
- "reference": "4e26e7b527c5224adf787c64d8d9ca3f95ea28f8"
+ "reference": "63a5c17ca7e7f594eb3e833af9944025531df876"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1654,7 +1654,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-stats": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1718,11 +1718,11 @@
"dist": {
"type": "path",
"url": "../../packages/status",
- "reference": "41ae915473300b954afb6832c10a99c4d3c120f9"
+ "reference": "8ae18a1e77a87621a427989c9ebe6f50f7a75071"
},
"require": {
"automattic/jetpack-constants": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1782,7 +1782,7 @@
"dist": {
"type": "path",
"url": "../../packages/sync",
- "reference": "750ea9b520214ee96d9731d3116dffb5e518502c"
+ "reference": "2c0909282179b3f686df2f99d845ce6ecae697a3"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1791,7 +1791,7 @@
"automattic/jetpack-password-checker": "@dev",
"automattic/jetpack-roles": "@dev",
"automattic/jetpack-status": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -1860,7 +1860,7 @@
"dist": {
"type": "path",
"url": "../../packages/scheduled-updates",
- "reference": "ec53f945ee4289d96ecbf8542f3add0617404048"
+ "reference": "29536a1601f0fd38fa5dd80a08276f04198b13e8"
},
"require": {
"automattic/jetpack-connection": "@dev",
@@ -1868,7 +1868,7 @@
"automattic/jetpack-plans": "@dev",
"automattic/jetpack-status": "@dev",
"automattic/jetpack-sync": "@dev",
- "php": ">=7.0"
+ "php": ">=7.2"
},
"require-dev": {
"automattic/jetpack-changelogger": "@dev",
@@ -2158,10 +2158,10 @@
"dist": {
"type": "path",
"url": "../../packages/changelogger",
- "reference": "0cc6743db37bf9031f4f3bc4bab4d6012d6540b7"
+ "reference": "77da13ba27b7176879cec384b092362f727f2251"
},
"require": {
- "php": ">=7.0",
+ "php": ">=7.2",
"symfony/console": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0",
"symfony/process": "^3.4 || ^4.4 || ^5.2 || ^6.0 || ^7.0"
},
diff --git a/tools/cli/commands/generate.js b/tools/cli/commands/generate.js
index fc000b6bb52cd..f6ca5b465c668 100644
--- a/tools/cli/commands/generate.js
+++ b/tools/cli/commands/generate.js
@@ -736,7 +736,7 @@ async function createComposerJson( composerJson, answers ) {
switch ( answers.type ) {
case 'package':
composerJson.require = composerJson.require || {};
- composerJson.require.php = '>=7.0';
+ composerJson.require.php = '>=7.2';
composerJson.extra = composerJson.extra || {};
composerJson.extra[ 'branch-alias' ] = composerJson.extra[ 'branch-alias' ] || {};
composerJson.extra[ 'branch-alias' ][ 'dev-trunk' ] = '0.1.x-dev';
@@ -959,7 +959,7 @@ function createReadMeTxt( answers ) {
'Contributors: automattic,\n' +
'Tags: jetpack, stuff\n' +
'Requires at least: 6.6\n' +
- 'Requires PHP: 7.0\n' +
+ 'Requires PHP: 7.2\n' +
'Tested up to: 6.7\n' +
`Stable tag: ${ answers.version }\n` +
'License: GPLv2 or later\n' +