diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb276976c9..6e152f3d77 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,9 +14,9 @@ jobs: strategy: matrix: php: - - '8.0' + - '8.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -26,7 +26,7 @@ jobs: extensions: 'pdo_sqlite, gd' tools: cs2pr - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" @@ -47,7 +47,7 @@ jobs: - '8.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -57,7 +57,7 @@ jobs: extensions: pdo_sqlite, gd tools: cs2pr - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" @@ -102,7 +102,7 @@ jobs: - '8.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -112,7 +112,7 @@ jobs: extensions: pdo_pgsql, gd tools: cs2pr - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" @@ -157,7 +157,7 @@ jobs: - '8.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -167,7 +167,7 @@ jobs: extensions: pdo_mysql, gd, redis tools: cs2pr - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" @@ -211,7 +211,7 @@ jobs: - '8.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -221,7 +221,7 @@ jobs: extensions: pdo_mysql, gd, redis tools: cs2pr - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" @@ -246,7 +246,7 @@ jobs: image: redis ports: - 6379:6379 - options: + options: --memory=60m solr: image: ghcr.io/ibexa/core/solr @@ -264,8 +264,8 @@ jobs: - '7.4' - '8.0' - '8.1' - steps: - - uses: actions/checkout@v2 + steps: + - uses: actions/checkout@v5 with: fetch-depth: 0 @@ -274,13 +274,13 @@ jobs: with: php-version: ${{ matrix.php }} coverage: none - + - name: Add solr dependency run: | VERSION=$(jq -r '.extra | ."branch-alias" | ."dev-main"' < composer.json) composer require --no-update "ibexa/solr:$VERSION" - - uses: "ramsey/composer-install@v1" + - uses: ramsey/composer-install@v3 with: dependency-versions: "highest" diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6b08a18e76..9ab6b0278e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -13350,12 +13350,6 @@ parameters: count: 1 path: src/lib/Limitation/LanguageLimitationType.php - - - message: '#^Method Ibexa\\Core\\Limitation\\LanguageLimitationType\:\:valueSchema\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/lib/Limitation/LanguageLimitationType.php - - message: '#^Property Ibexa\\Core\\Limitation\\LanguageLimitationType\:\:\$versionTargetEvaluators \(array\\) does not accept iterable\\.$#' identifier: assign.propertyType @@ -26592,6 +26586,12 @@ parameters: count: 1 path: src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/DateMetadata.php + - + message: '#^Cannot access an offset on list\|string\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/Field.php + - message: '#^Method Ibexa\\Core\\Search\\Legacy\\Content\\Common\\Gateway\\CriterionHandler\\Field\:\:getFieldsInformation\(\) return type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue