}
},
"require": {
- "php": "~7.2",
+ "php": "~7.2 || ~8",
"cache/integration-tests": "~0.17.0",
"dompdf/dompdf" : "~1.0.0",
"firebase/php-jwt": ">=3 <6",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "e7cca2de5a5b2bd54ac4c14b677845ed",
+ "content-hash": "806655f49ee4984e61d0c1bf7bcc0c88",
"packages": [
{
"name": "adrienrn/php-mimetyper",
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": "~7.2",
+ "php": "~7.2 || ~8",
"ext-intl": "*",
"ext-json": "*"
},
$composerJsonRequirePhp = preg_replace(';[~^];', '', $composerJson['require']['php']);
$actualMajorMinor = preg_replace(';^[\^]*(\d+\.\d+)\..*$;', '\1', $composerJsonRequirePhp);
$expectMajorMinor = preg_replace(';^(\d+\.\d+)\..*$;', '\1', \CRM_Upgrade_Incremental_General::MIN_INSTALL_PHP_VER);
- $this->assertEquals($expectMajorMinor, $actualMajorMinor, "The PHP version requirements in CRM_Upgrade_Form ($expectMajorMinor) and composer.json ($actualMajorMinor) should specify same major+minor versions.");
+ $this->assertStringContainsString($expectMajorMinor, $actualMajorMinor, "The PHP version requirements in CRM_Upgrade_Form ($expectMajorMinor) and composer.json ($actualMajorMinor) should specify same major+minor versions.");
}
}