diff --git a/UPGRADING.md b/UPGRADING.md index f1d3a10fad7..a45a0257b67 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -29,13 +29,13 @@ - [BC] The parameter `$php_version` of `Psalm\Type\Atomic::create()` renamed to `$analysis_php_version_id` and changed from `array|null` to `int|null`. - Previously it accepted PHP version as `strict-array{major_version, minor_version}` + Previously it accepted PHP version as `array{major_version, minor_version}` while now it accepts version ID, similar to how [`PHP_VERSION_ID` is calculated](https://www.php.net/manual/en/reserved.constants.php#constant.php-version-id). - [BC] The parameter `$php_version` of `Psalm\Type::parseString()` renamed to `$analysis_php_version_id` and changed from `array|null` to `int|null`. - Previously it accepted PHP version as `strict-array{major_version, minor_version}` + Previously it accepted PHP version as `array{major_version, minor_version}` while now it accepts version ID. - [BC] Parameter 0 of `canBeFullyExpressedInPhp()` of the classes listed below @@ -805,7 +805,7 @@ - [BC] Class `Psalm\Type\TaintKind` became final - [BC] Class `Psalm\Type\Union` became final - [BC] Property `Psalm\Config::$universal_object_crates` changed default value - from `strict-array{'stdClass','SimpleXMLElement','SimpleXMLIterator'}` to `null` + from `array{'stdClass','SimpleXMLElement','SimpleXMLIterator'}` to `null` ## Removed - [BC] Property `Psalm\Codebase::$php_major_version` was removed, use diff --git a/bin/test-with-real-projects.sh b/bin/test-with-real-projects.sh index 7566cb99419..b75a4b641ed 100755 --- a/bin/test-with-real-projects.sh +++ b/bin/test-with-real-projects.sh @@ -32,7 +32,7 @@ collections) psl) git clone git@github.com:psalm/endtoend-test-psl.git cd endtoend-test-psl - git checkout 1.9.x + git checkout 1.9.x-array composer require --dev php-standard-library/psalm-plugin:^1.1.4 --ignore-platform-reqs cd vendor/php-standard-library/psalm-plugin patch -p1 < $SCRIPT_DIR/psl-psalm-plugin.diff