From c1992a3fe32e230db93da3ec2d777e5ac1ab87e1 Mon Sep 17 00:00:00 2001 From: Jay Klehr Date: Mon, 22 Apr 2024 09:22:02 -0600 Subject: [PATCH] Preparing for PHP 8.3 (#311) * Preparing for PHP 8.3 * some more packages ready, updating phpstan baselines to remove php 7 * tests pass locally * fixing phpstan, upgrading php-cs-fixer * versions --- .github/workflows/build.yml | 158 +-- .github/workflows/dependabot-auto-merge.yml | 2 +- composer.json | 6 +- library/Zend/Barcode/Renderer/Image.php | 6 +- phpstan-baseline.php | 1005 +++++++++++++++++- phpstan-bootstrap.php | 2 +- phpstan-php-lt-81.php | 29 - phpstan-php7.php | 1029 ------------------- phpstan-php8.php | 1009 ------------------ phpstan-php80.php | 24 +- phpstan.neon | 3 - tests/Zend/Markup/BbcodeAndHtmlTest.php | 16 +- tests/phpunit.xml | 2 +- 13 files changed, 1116 insertions(+), 2175 deletions(-) delete mode 100644 phpstan-php-lt-81.php delete mode 100644 phpstan-php7.php delete mode 100644 phpstan-php8.php diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81dd424821..3f302c4294 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,82 +1,82 @@ name: Build on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - build: - name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} - services: - mysql: - image: mysql/mysql-server:5.7 - env: - MYSQL_DATABASE: zftest - MYSQL_USER: github - MYSQL_PASSWORD: githubpass - ports: - - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10 - postgres: - image: postgres:10 - env: - POSTGRES_DB: zftest - POSTGRES_USER: github - POSTGRES_PASSWORD: githubpass - ports: - - 5432:5432 - options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=5 - memcached: - image: memcached:latest - ports: - - 11211:11211 - # needed because the memcached container does not provide a healthcheck - options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5 - strategy: - fail-fast: false - matrix: - operating-system: [ubuntu-latest] - php-versions: ['7.4', '8.0', '8.1', '8.2'] - composer-args: ['', '--prefer-lowest'] - runs-on: ${{ matrix.operating-system }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup PHP - uses: shivammathur/setup-php@2.26.0 - with: - php-version: ${{ matrix.php-versions }} - extensions: mbstring - coverage: pcov - tools: cs2pr - ini-values: session.save_path="/tmp",memory_limit=1024M - - name: Setup problem matchers for PHPUnit - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}-${{ hashFiles('**/composer.json') }} - restore-keys: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}- - - name: Install Dependencies - run: | - composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} - - name: PHPStan - run: composer phpstan - - name: Code Style Check - env: - PHP_CS_FIXER_IGNORE_ENV: true - run: composer style-check -- --format=checkstyle | cs2pr - - name: Test - run: cd tests/ && php runalltests.php --coverage - - name: Merge Coverage - run: ./bin/phpcov merge ./build/coverage --clover=./build/coverage/clover.xml - - name: Upload Coverage - uses: codecov/codecov-action@v3 - with: - files: ./build/coverage/clover.xml + build: + name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} + services: + mysql: + image: mysql/mysql-server:5.7 + env: + MYSQL_DATABASE: zftest + MYSQL_USER: github + MYSQL_PASSWORD: githubpass + ports: + - 3306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10 + postgres: + image: postgres:10 + env: + POSTGRES_DB: zftest + POSTGRES_USER: github + POSTGRES_PASSWORD: githubpass + ports: + - 5432:5432 + options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=5 + memcached: + image: memcached:latest + ports: + - 11211:11211 + # needed because the memcached container does not provide a healthcheck + options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5 + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest] + php-versions: ["8.0", "8.1", "8.2", "8.3"] + composer-args: ["", "--prefer-lowest"] + runs-on: ${{ matrix.operating-system }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@2.30.2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring + coverage: pcov + tools: cs2pr + ini-values: session.save_path="/tmp",memory_limit=1024M + - name: Setup problem matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Get composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}-${{ hashFiles('**/composer.json') }} + restore-keys: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}- + - name: Install Dependencies + run: | + composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} + - name: PHPStan + run: composer phpstan + - name: Code Style Check + env: + PHP_CS_FIXER_IGNORE_ENV: true + run: composer style-check -- --format=checkstyle | cs2pr + - name: Test + run: cd tests/ && php runalltests.php --coverage + - name: Merge Coverage + run: ./bin/phpcov merge ./build/coverage --clover=./build/coverage/clover.xml + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + files: ./build/coverage/clover.xml diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index cc4b7bf84c..3aaaca1225 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1 + uses: dependabot/fetch-metadata@v2 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs diff --git a/composer.json b/composer.json index 14c23dbeab..e51f90d449 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "diablomedia/zendframework1-crypt": "^1.0.5", "diablomedia/zendframework1-currency": "^1.0.4", "diablomedia/zendframework1-date": "^1.0.5", - "diablomedia/zendframework1-db": "^1.0.4", + "diablomedia/zendframework1-db": "^1.0.5", "diablomedia/zendframework1-dojo": "^1.0.5", "diablomedia/zendframework1-dom": "^1.0.5", "diablomedia/zendframework1-eventmanager": "^1.0.5", @@ -84,7 +84,7 @@ "diablomedia/zendframework1-view-helper-url": "^1.0.4", "diablomedia/zendframework1-wildfire": "^1.0.4", "diablomedia/zendframework1-xml": "^1.0.5", - "php": "^7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0" + "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "autoload": { "psr-0": { @@ -156,7 +156,7 @@ "phpunit/phpunit": "^9.5.10", "phpunit/phpcov": "^8.0", "phpstan/phpstan": "1.10.14", - "friendsofphp/php-cs-fixer": "3.22.0" + "friendsofphp/php-cs-fixer": "3.54.0" }, "archive": { "exclude": [ diff --git a/library/Zend/Barcode/Renderer/Image.php b/library/Zend/Barcode/Renderer/Image.php index 6e25491f4e..05286c958c 100644 --- a/library/Zend/Barcode/Renderer/Image.php +++ b/library/Zend/Barcode/Renderer/Image.php @@ -463,9 +463,9 @@ protected function _drawText($text, $size, $position, $font, $color, $alignment $this->_resource, $size, $orientation, - $position[0] - ($width * cos(pi() * $orientation / 180)), - $position[1] + ($width * sin(pi() * $orientation / 180)), - $allocatedColor, + (int) ($position[0] - ($width * cos(pi() * $orientation / 180))), + (int) ($position[1] + ($width * sin(pi() * $orientation / 180))), + (int) $allocatedColor, $font, $text ); diff --git a/phpstan-baseline.php b/phpstan-baseline.php index ba24d024fd..4e931c0ad5 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -786,16 +786,6 @@ 'count' => 1, 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$x of function imagettftext expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#5 \\$y of function imagettftext expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; $ignoreErrors[] = [ 'message' => '#^Property Zend_Barcode_Renderer_Image\\:\\:\\$_imageBackgroundColor \\(int\\) does not accept int\\|false\\.$#', 'count' => 2, @@ -24761,5 +24751,1000 @@ 'count' => 1, 'path' => __DIR__ . '/library/Zend/XmlRpc/Value/DateTime.php', ]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$result of function mysqli_num_fields expects mysqli_result, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Parse/Resource/MysqliResult.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function ucwords expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Parse/TypeLoader.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function base64_decode expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$needle of function strpos expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Amf/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Amf/Value/TraitsInfo.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Instanceof between resource and GdImage will always evaluate to false\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, non\\-falsy\\-string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, GdImage\\|false given\\.$#', + 'count' => 3, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, resource given\\.$#', + 'count' => 4, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagedestroy expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagefilledpolygon expects GdImage, resource given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, GdImage\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagepolygon expects GdImage, resource given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagestring expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagesx expects GdImage, GdImage\\|resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagesx expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagesy expects GdImage, GdImage\\|resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagesy expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$image of function imagettftext expects GdImage, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$num_points_or_color of function imagefilledpolygon expects int, int\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$num_points_or_color of function imagepolygon expects int, int\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#4 \\$color of function imagefilledpolygon expects int\\|null, int\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#4 \\$color of function imagepolygon expects int\\|null, int\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Property Zend_Barcode_Renderer_Image\\:\\:\\$_resource \\(resource\\) does not accept GdImage\\|false\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function stream_get_contents expects resource, resource\\|false given\\.$#', + 'count' => 4, + 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function stream_set_blocking expects resource, resource\\|false given\\.$#', + 'count' => 5, + 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$string of function explode expects string, array\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_diff expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/FileSystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$data of function fwrite expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function str_repeat expects string, int\\|string given\\.$#', + 'count' => 3, + 'path' => __DIR__ . '/library/Zend/CodeGenerator/Php/Property/DefaultValue.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Feed/Pubsubhubbub/CallbackAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Feed/Reader/EntryAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Feed/Reader/FeedAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Call to an undefined method DOMNode\\:\\:getAttribute\\(\\)\\.$#', + 'count' => 11, + 'path' => __DIR__ . '/library/Zend/Feed/Reader/FeedSet.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Feed/Writer/Entry.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Feed/Writer/Feed/FeedAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/Analytics/Extension/Property.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$majorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#4 \\$minorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_Base\\), non\\-falsy\\-string\\} given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Gdata/App/Base.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_BaseMediaSource\\), non\\-falsy\\-string\\} given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Gdata/App/BaseMediaSource.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$datetime of function strtotime expects string, int\\ given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/App/Util.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function urlencode expects string, int given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Gdata/AuthSub.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/Gapps.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingProxy.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingSocket.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$private_key of function openssl_sign expects array\\|OpenSSLAsymmetricKey\\|OpenSSLCertificate\\|string, resource given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Property Zend_Gdata_HttpClient\\:\\:\\$_authSubPrivateKeyId \\(resource\\|null\\) does not accept OpenSSLAsymmetricKey\\|false\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$as_float of function microtime expects bool, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Gdata/MediaMimeStream.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_Query\\), non\\-falsy\\-string\\} given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Gdata/Query.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Cannot access offset int\\<0, max\\> on array\\\\|false\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$hex_string of function hexdec expects string, float\\|int\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function str_split expects string, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strrev expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtoupper expects string, int given\\.$#', + 'count' => 4, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function sizeof expects array\\|Countable, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Measure/Number.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Memory/Manager.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$enable of function stream_set_blocking expects bool, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#4 \\$timeout of function stream_socket_client expects float\\|null, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Mobile/Push/Test/ApnsProxy.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$from_encoding of function mb_convert_encoding expects array\\|string\\|null, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num1 of function fmod expects float, float\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Canvas/Abstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Element/Name.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Pdf_Element\\|null, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Element/Object.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Element/Reference.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Element/String.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function ksort expects array, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Offset float does not exist on array\\{\\}\\|array\\{int\\<0, 255\\>\\}\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Offset int\\<0, max\\> does not exist on array\\{\\}\\|array\\{int\\<0, 255\\>\\}\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$count of function array_fill expects int, float given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, float given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Property Zend_Pdf_StringParser\\:\\:\\$offset \\(int\\) does not accept int\\|false\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Parser.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function iconv_strlen expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/CidFont.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function iconv_strlen expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/Simple.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$string of function unpack expects string, string\\|false given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Png.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$string of function unpack expects string, string\\|false given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Tiff.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Adapter/Memcacheq.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Class ZendAPI_Queue does not have a constructor and must be instantiated without any parameters\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Queue/Adapter/PlatformJobQueue.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Class ZendAPI_Job does not have a constructor and must be instantiated without any parameters\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Message/PlatformJob.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$read of function stream_select expects TRead of array\\\\|null, array\\ given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$enable of function stream_set_blocking expects bool, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$filter of method ReflectionClass\\\\:\\:getMethods\\(\\) expects int\\|null, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Docblock.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_splice is passed by reference, so it expects variables only\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_slice expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Call to an undefined method ReflectionType\\:\\:isBuiltin\\(\\)\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Reflection/Parameter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$node of method Zend_Search_Lucene_Document_Html\\:\\:_highlightTextNode\\(\\) expects DOMText, DOMNode given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Document/Html.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$string of function iconv expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Document/Html.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$times of function str_repeat expects int, float given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/Writer.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Search_Lucene_Interface\\|null, \'find\'\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Proxy.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|false given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|string\\>\\>\\|false given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Term.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/QueryLexer.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$dir_handle of function closedir expects resource\\|null, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$dir_handle of function readdir expects resource\\|null, resource\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fflush expects resource, resource\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function flock expects resource, resource\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fseek expects resource, resource\\|null given\\.$#', + 'count' => 3, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function ftell expects resource, resource\\|null given\\.$#', + 'count' => 3, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function fwrite expects int\\<0, max\\>\\|null, int given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$object_or_class of function class_implements expects object\\|string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Serializer.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int\\ given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num of function bcpow expects string, int given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num1 of function bcadd expects string, int\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$num1 of function bcmul expects string, int\\<0, 255\\> given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, array\\{\\$this\\(Zend_Service_Audioscrobbler\\), \'_errorHandler\'\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Audioscrobbler.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, mixed\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function set_exception_handler expects \\(callable\\(Throwable\\)\\: void\\)\\|null, array\\{\'Zend_Serviceā€¦\', \'phpstdex\'\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|true\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Argv.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, array\\|false given\\.$#', + 'count' => 4, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/ConfigFile.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Env.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Prompt.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/StdIn.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$microseconds of function usleep expects int, float given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Delicious.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', + 'count' => 3, + 'path' => __DIR__ . '/library/Zend/Service/LiveDocx/MailMerge.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Files.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function rawurlencode expects string, int\\\\|int\\<1, max\\> given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/SqlAzure/Management/Client.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Decorator.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Service_Twitter\\), non\\-falsy\\-string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Oauth_Consumer\\|null, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, Zend_Oauth_Consumer\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$baseDirectory of method Phar\\:\\:buildFromIterator\\(\\) expects string\\|null, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, SimpleXMLElement given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$permissions of function chmod expects int, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$permissions of function mkdir expects int, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKey.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function utf8_decode expects string, string\\|false given\\.$#', + 'count' => 5, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|false\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function current expects array\\|object, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$array of function next expects array\\|object, array\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Queue.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$string of function explode expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function addslashes expects string, string\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, non\\-falsy\\-string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Console.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, Zend_Tool_Framework_Provider_Interface\\|null given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/Provider/Signature.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/Provider/Signature.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Binary operation "\\+" between int\\|string and 1 results in an error\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$numeric_prefix of function http_build_query expects string, null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Manifest.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Binary operation "\\+" between int\\|string and 1 results in an error\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Repository.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Zf/TestLibraryFile.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string\\|Zend_Tool_Project_Context_Interface\\|null, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, string\\|Zend_Tool_Project_Context_Interface\\|null given\\.$#', + 'count' => 2, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Function get_magic_quotes_gpc not found\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/DbAdapter.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/Project.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_XmlRpc_Server_System, string\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/XmlRpc/Server.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\(int\\|string\\), \'observe\'\\} given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/XmlRpc/Server/Fault.php', +]; return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpstan-bootstrap.php b/phpstan-bootstrap.php index 1c5b5dd4a6..5e0bc54a16 100644 --- a/phpstan-bootstrap.php +++ b/phpstan-bootstrap.php @@ -2,4 +2,4 @@ // The Zend_Service_WindowsAzure_CommandLine classes try to bootstrap the Zend_Service_Console_Command // component when the classes are loaded (bottom of file), which phpstan will trigger when it // autoloads the classes. This prevents it from bootstrapping (which prevents some exceptions being thrown) -define('MICROSOFT_CONSOLE_COMMAND_HOST', 'nobootstrap'); +define('MICROSOFT_CONSOLE_COMMAND_HOST', 'nobootstrap'); \ No newline at end of file diff --git a/phpstan-php-lt-81.php b/phpstan-php-lt-81.php deleted file mode 100644 index a4f0630d15..0000000000 --- a/phpstan-php-lt-81.php +++ /dev/null @@ -1,29 +0,0 @@ -=')) { - return []; -} - -$ignoreErrors = []; -$ignoreErrors[] = [ - 'message' => '#^Access to an undefined property SoapHeader\\:\\:\\$name\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Base.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$font of function imagefontheight expects int, int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$font of function imagefontwidth expects int, int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$font of function imagestring expects int, int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; - -return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpstan-php7.php b/phpstan-php7.php deleted file mode 100644 index 8f5d4d0f15..0000000000 --- a/phpstan-php7.php +++ /dev/null @@ -1,1029 +0,0 @@ -=')) { - return []; -} - -$ignoreErrors = []; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$link of function mysqli_num_fields expects mysqli_result, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Parse/Resource/MysqliResult.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function ucwords expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Parse/TypeLoader.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function base64_decode expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$needle of function strpos expects int\\|string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Value/TraitsInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Class GdImage not found\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Function imagefilledpolygon invoked with 3 parameters, 4 required\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Function imagepolygon invoked with 3 parameters, 4 required\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Instanceof between resource and GdImage will always evaluate to false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$im of function imagecolorallocate expects resource, resource\\|false given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$im of function imagefilledrectangle expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$num_points of function imagefilledpolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$num_points of function imagepolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$col of function imagefilledpolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$col of function imagepolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#6 \\$col of function imagefilledrectangle expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#6 \\$col of function imagettftext expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Barcode_Renderer_Image\\:\\:\\$_resource \\(resource\\) does not accept resource\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$socket of function stream_set_blocking expects resource, resource\\|false given\\.$#', - 'count' => 5, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$source of function stream_get_contents expects resource, resource\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$str of function explode expects string, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$arr1 of function array_diff expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/FileSystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$file of function file_put_contents expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$str of function fwrite expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function str_repeat expects string, int\\|string given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/CodeGenerator/Php/Property/DefaultValue.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Feed.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Entry/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Entry/Atom.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Cannot access offset string on array\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Pubsubhubbub/CallbackAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Pubsubhubbub/CallbackAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Feed/Reader.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Reader/EntryAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Reader/FeedAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Writer/Entry.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Writer/Feed/FeedAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/Base.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fread expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function urlencode expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/AuthSub.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/Gapps.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/Gapps/ServiceException.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingProxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtolower expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingSocket.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$passphrase of function openssl_pkey_get_private expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Gdata_HttpClient\\:\\:\\$_authSubPrivateKeyId \\(resource\\|null\\) does not accept resource\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$get_as_float of function microtime expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/MediaMimeStream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Cannot access offset int\\<0, max\\> on array\\\\|false\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$hexadecimal_number of function hexdec expects string, float\\|int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function str_split expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strrev expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtoupper expects string, int given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function sizeof expects array\\|Countable, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Memory/Manager.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$mode of function stream_set_blocking expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$timeout of function stream_socket_client expects float, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Test/ApnsProxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$search of function array_key_exists expects array, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$x of function fmod expects float, float\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Canvas/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$ascii of function chr expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Name.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Pdf_Element\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Object.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Reference.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array_arg of function ksort expects array, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$ascii of function chr expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$num of function array_fill expects int, float given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, string\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression/Flate.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Pdf_StringParser\\:\\:\\$offset \\(int\\) does not accept int\\<0, max\\>\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Parser.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function iconv_strlen expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/CidFont.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function iconv_strlen expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/Simple.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$data of function unpack expects string, string\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Png.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$data of function unpack expects string, string\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Tiff.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Adapter/Memcacheq.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function feof expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fread expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$mode of function stream_set_blocking expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$filter of method ReflectionClass\\\\:\\:getMethods\\(\\) expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function ltrim expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Docblock.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function array_splice is passed by reference, so it expects variables only\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function array_slice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$input of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$str of function iconv expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Document/Html.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$number of function base_convert expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$multiplier of function str_repeat expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$number of function base_convert expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/Writer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Search_Lucene_Interface\\|null, \'find\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Proxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/QueryLexer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$dir_handle of function closedir expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$dir_handle of function readdir expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, string\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function feof expects resource, resource\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fflush expects resource, resource\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function flock expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fread expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fseek expects resource, resource\\|null given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function ftell expects resource, resource\\|null given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$newvalue of function ini_set expects string, string\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function fwrite expects int\\<0, max\\>, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$what of function class_implements expects object\\|string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$base of function bcpow expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$left_operand of function bcadd expects string, int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$exception_handler of function set_exception_handler expects \\(callable\\(Throwable\\)\\: void\\)\\|null, array\\{\'Zend_Serviceā€¦\', \'phpstdex\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\, array\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtolower expects string, string\\|true\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Argv.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$search of function array_key_exists expects array, array\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/ConfigFile.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtolower expects string, string\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Env.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Prompt.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function rtrim expects string, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/StdIn.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$micro_seconds of function usleep expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Delicious.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Service/LiveDocx/MailMerge.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtolower expects string, string\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Files.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function rawurlencode expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Decorator.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Oauth_Consumer\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object of function method_exists expects object\\|string, Zend_Oauth_Consumer\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$baseDirectory of method Phar\\:\\:buildFromIterator\\(\\) expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, SimpleXMLElement given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$mode of function chmod expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$mode of function mkdir expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKey.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$data of function utf8_decode expects string, string\\|false given\\.$#', - 'count' => 5, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function strtolower expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array_arg of function current expects array\\|object, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array_arg of function next expects array\\|object, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function addslashes expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function rtrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Console.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object of function method_exists expects object\\|string, Zend_Tool_Framework_Provider_Interface\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Provider/Signature.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$prefix of function http_build_query expects string, null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Manifest.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function ltrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Zf/TestLibraryFile.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$node of method DOMDocument\\:\\:importNode\\(\\) expects DOMNode, DOMElement\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/FileParser/Xml.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string\\|Zend_Tool_Project_Context_Interface\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object of function method_exists expects object\\|string, string\\|Zend_Tool_Project_Context_Interface\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$str of function ltrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/Project.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_XmlRpc_Server_System, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/XmlRpc/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\(int\\|string\\), \'observe\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/XmlRpc/Server/Fault.php', -]; -$ignoreErrors[] = [ - 'message' => '#^If condition is always false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/DbAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Binary operation "\\+" between int\\|string\\|false and 1 results in an error\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Repository.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Binary operation "\\+" between int\\|string\\|false and 1 results in an error\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, non\\-falsy\\-string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Queue.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/SqlAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|string\\>\\>\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Term.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Service_Twitter\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int, array\\)\\: bool\\)\\|null, array\\{\\$this\\(Zend_Service_Audioscrobbler\\), \'_errorHandler\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Audioscrobbler.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$left_operand of function bcmul expects string, int\\<0, 255\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$number of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$number of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$body of method Zend_Queue_Stomp_Frame\\:\\:setBody\\(\\) expects string\\|null, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Frame.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$read_streams of function stream_select expects TRead of array\\\\|null, array\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Cannot access offset int\\<0, max\\> on array\\\\>\\|false\\.$#', - 'count' => 12, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/String.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_Query\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/Query.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_BaseMediaSource\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/App/BaseMediaSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_Base\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/App/Base.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, non\\-falsy\\-string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$time of function strtotime expects string, int\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/Util.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$majorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$minorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$str of function explode expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/Analytics/Extension/Property.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function substr expects string, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Console/Getopt.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$im of function imagesx expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$supportWidth of method Zend_Barcode_Renderer_RendererAbstract\\:\\:_adjustPosition\\(\\) expects float, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$supportHeight of method Zend_Barcode_Renderer_RendererAbstract\\:\\:_adjustPosition\\(\\) expects float, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$im of function imagesy expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; - -return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpstan-php8.php b/phpstan-php8.php deleted file mode 100644 index cc669264d0..0000000000 --- a/phpstan-php8.php +++ /dev/null @@ -1,1009 +0,0 @@ - '#^Parameter \\#1 \\$result of function mysqli_num_fields expects mysqli_result, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Parse/Resource/MysqliResult.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function ucwords expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Parse/TypeLoader.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function base64_decode expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$needle of function strpos expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Amf/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Amf/Value/TraitsInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Instanceof between resource and GdImage will always evaluate to false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, non\\-falsy\\-string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, GdImage\\|false given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, resource given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagedestroy expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagefilledpolygon expects GdImage, resource given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, GdImage\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagepolygon expects GdImage, resource given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagestring expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagesx expects GdImage, GdImage\\|resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagesx expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagesy expects GdImage, GdImage\\|resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagesy expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$image of function imagettftext expects GdImage, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$num_points_or_color of function imagefilledpolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$num_points_or_color of function imagepolygon expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$color of function imagefilledpolygon expects int\\|null, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$color of function imagepolygon expects int\\|null, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#6 \\$color of function imagettftext expects int, int\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Barcode_Renderer_Image\\:\\:\\$_resource \\(resource\\) does not accept GdImage\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function stream_get_contents expects resource, resource\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function stream_set_blocking expects resource, resource\\|false given\\.$#', - 'count' => 5, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/AbstractAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$string of function explode expects string, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_diff expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/FileSystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$data of function fwrite expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Cloud/StorageService/Adapter/WindowsAzure.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function str_repeat expects string, int\\|string given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/CodeGenerator/Php/Property/DefaultValue.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Pubsubhubbub/CallbackAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Reader/EntryAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Reader/FeedAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Call to an undefined method DOMNode\\:\\:getAttribute\\(\\)\\.$#', - 'count' => 11, - 'path' => __DIR__ . '/library/Zend/Feed/Reader/FeedSet.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Writer/Entry.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Feed/Writer/Feed/FeedAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/Analytics/Extension/Property.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$majorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$minorProtocolVersion of static method Zend_Gdata_App\\:\\:importString\\(\\) expects int\\|null, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_Base\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/App/Base.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_App_BaseMediaSource\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/App/BaseMediaSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/MediaFileSource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$datetime of function strtotime expects string, int\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/App/Util.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function urlencode expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/AuthSub.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/Gapps.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingProxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpAdapterStreamingSocket.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$private_key of function openssl_sign expects array\\|OpenSSLAsymmetricKey\\|OpenSSLCertificate\\|string, resource given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Gdata_HttpClient\\:\\:\\$_authSubPrivateKeyId \\(resource\\|null\\) does not accept OpenSSLAsymmetricKey\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/HttpClient.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$as_float of function microtime expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Gdata/MediaMimeStream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Gdata_Query\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Gdata/Query.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Cannot access offset int\\<0, max\\> on array\\\\|false\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$hex_string of function hexdec expects string, float\\|int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function str_split expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strrev expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtoupper expects string, int given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function sizeof expects array\\|Countable, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Measure/Number.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Memory/Manager.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$enable of function stream_set_blocking expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#4 \\$timeout of function stream_socket_client expects float\\|null, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Apns.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Mobile/Push/Test/ApnsProxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$from_encoding of function mb_convert_encoding expects array\\|string\\|null, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num1 of function fmod expects float, float\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Canvas/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Name.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Pdf_Element\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Object.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/Reference.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Element/String.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function ksort expects array, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/ElementFactory.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Offset float does not exist on array\\{\\}\\|array\\{int\\<0, 255\\>\\}\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Offset int\\<0, max\\> does not exist on array\\{\\}\\|array\\{int\\<0, 255\\>\\}\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$count of function array_fill expects int, float given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Filter/Compression.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Property Zend_Pdf_StringParser\\:\\:\\$offset \\(int\\) does not accept int\\|false\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Parser.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function iconv_strlen expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/CidFont.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function iconv_strlen expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Font/Simple.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$string of function unpack expects string, string\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Png.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$string of function unpack expects string, string\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Pdf/Resource/Image/Tiff.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Adapter/Memcacheq.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Class ZendAPI_Queue does not have a constructor and must be instantiated without any parameters\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Queue/Adapter/PlatformJobQueue.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Class ZendAPI_Job does not have a constructor and must be instantiated without any parameters\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Message/PlatformJob.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$read of function stream_select expects TRead of array\\\\|null, array\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$enable of function stream_set_blocking expects bool, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Queue/Stomp/Client/Connection.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$filter of method ReflectionClass\\\\:\\:getMethods\\(\\) expects int\\|null, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Class.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Docblock.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_splice is passed by reference, so it expects variables only\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Function.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_slice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Method.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Call to an undefined method ReflectionType\\:\\:isBuiltin\\(\\)\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Reflection/Parameter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$node of method Zend_Search_Lucene_Document_Html\\:\\:_highlightTextNode\\(\\) expects DOMText, DOMNode given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Document/Html.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$string of function iconv expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Document/Html.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$times of function str_repeat expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/SegmentInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num of function base_convert expects string, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Index/Writer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Search_Lucene_Interface\\|null, \'find\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Proxy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|string\\>\\>\\|false given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/Query/Preprocessing/Term.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Search/QueryLexer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$dir_handle of function closedir expects resource\\|null, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$dir_handle of function readdir expects resource\\|null, resource\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/Directory/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fflush expects resource, resource\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function flock expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fseek expects resource, resource\\|null given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function ftell expects resource, resource\\|null given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function fwrite expects int\\<0, max\\>\\|null, int given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object_or_class of function class_implements expects object\\|string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$codepoint of function chr expects int, float\\|int\\ given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num of function bcpow expects string, int given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num1 of function bcadd expects string, int\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$num1 of function bcmul expects string, int\\<0, 255\\> given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Serializer/Adapter/PythonPickle.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, array\\{\\$this\\(Zend_Service_Audioscrobbler\\), \'_errorHandler\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Audioscrobbler.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function set_exception_handler expects \\(callable\\(Throwable\\)\\: void\\)\\|null, array\\{\'Zend_Serviceā€¦\', \'phpstdex\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|true\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Argv.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$array of function array_key_exists expects array, array\\|false given\\.$#', - 'count' => 4, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/ConfigFile.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Env.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/Prompt.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Console/Command/ParameterSource/StdIn.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$microseconds of function usleep expects int, float given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Delicious.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/library/Zend/Service/LiveDocx/MailMerge.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Files.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function rawurlencode expects string, int\\\\|int\\<1, max\\> given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/Rackspace/Servers.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/SqlAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{object, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Decorator.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(Zend_Service_Twitter\\), non\\-falsy\\-string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_Oauth_Consumer\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, Zend_Oauth_Consumer\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/Twitter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$baseDirectory of method Phar\\:\\:buildFromIterator\\(\\) expects string\\|null, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, SimpleXMLElement given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/Package.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$permissions of function chmod expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$permissions of function mkdir expects int, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/CommandLine/PackageScaffolder/PackageScaffolderAbstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKey.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function utf8_decode expects string, string\\|false given\\.$#', - 'count' => 5, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|false\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Management/Client.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\|string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function current expects array\\|object, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$array of function next expects array\\|object, array\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|SimpleXMLElement\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Queue.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/Table.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$string of function explode expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntity.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function addslashes expects string, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, mixed\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, non\\-falsy\\-string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Abstract.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Client/Console.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, Zend_Tool_Framework_Provider_Interface\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Provider/Signature.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/Provider/Signature.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Binary operation "\\+" between int\\|string and 1 results in an error\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Config.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#2 \\$numeric_prefix of function http_build_query expects string, null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Framework/System/Provider/Manifest.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Binary operation "\\+" between int\\|string and 1 results in an error\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Repository.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Context/Zf/TestLibraryFile.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{string\\|Zend_Tool_Project_Context_Interface\\|null, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$object_or_class of function method_exists expects object\\|string, string\\|Zend_Tool_Project_Context_Interface\\|null given\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Profile/Resource.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Function get_magic_quotes_gpc not found\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/DbAdapter.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$string of function ltrim expects string, string\\|false given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/Tool/Project/Provider/Project.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Zend_XmlRpc_Server_System, string\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/XmlRpc/Server.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{\\(int\\|string\\), \'observe\'\\} given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/library/Zend/XmlRpc/Server/Fault.php', -]; - -return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpstan-php80.php b/phpstan-php80.php index 1688e620fd..e6504b19de 100644 --- a/phpstan-php80.php +++ b/phpstan-php80.php @@ -1,9 +1,5 @@ =')) { return []; } @@ -64,5 +60,25 @@ 'count' => 2, 'path' => __DIR__ . '/library/Zend/Search/Lucene/Storage/File/Filesystem.php', ]; +$ignoreErrors[] = [ + 'message' => '#^Access to an undefined property SoapHeader\\:\\:\\$name\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Service/StrikeIron/Base.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$font of function imagefontheight expects int, int\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#1 \\$font of function imagefontwidth expects int, int\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Parameter \\#2 \\$font of function imagestring expects int, int\\|string given\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/library/Zend/Barcode/Renderer/Image.php', +]; return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpstan.neon b/phpstan.neon index 2fa0d4cbc8..4bdb5c87c4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -15,8 +15,5 @@ parameters: includes: - phpstan-baseline.php - - phpstan-php7.php - - phpstan-php8.php - phpstan-php80.php - - phpstan-php-lt-81.php - phpstan-php81.php diff --git a/tests/Zend/Markup/BbcodeAndHtmlTest.php b/tests/Zend/Markup/BbcodeAndHtmlTest.php index e36aaec93f..df41b70b9b 100644 --- a/tests/Zend/Markup/BbcodeAndHtmlTest.php +++ b/tests/Zend/Markup/BbcodeAndHtmlTest.php @@ -245,7 +245,12 @@ public function testListDisallowingPlaintext() public function testFailureAfterCodeTag() { $input = "[code][b][/code][list][*]Foo[/*][/list]"; - $expected = "\n[b]\n
  • Foo
"; + // PHP 8.3 changed the structure of the HTML returned by `highlight_string` + if (version_compare(PHP_VERSION, '8.3', '<')) { + $expected = "\n[b]\n
  • Foo
"; + } else { + $expected = "
[b]
  • Foo
"; + } $this->assertEquals($expected, $this->_markup->render($input)); } @@ -298,10 +303,15 @@ public function testHtmlTags() $this->assertEquals('foo', $m->render('[color=red]foo[/color]')); $this->assertEquals('foo', $m->render('[color=#00FF00]foo[/color]')); - $expected = '' . "\n" + // PHP 8.3 changed the structure of the HTML returned by `highlight_string` + if (version_compare(PHP_VERSION, '8.3', '<')) { + $expected = '' . "\n" . '<?php
' . "exit;\n
\n
"; - + } else { + $expected = "
<?php\nexit;
"; + } + $this->assertEquals($expected, $m->render("[code]assertEquals('

I

', $m->render('[p]I[/p]')); $this->assertEquals('N', diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 095638fcf5..ac39148ec3 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -6,7 +6,7 @@ - ../vendor:../vendor/diablomedia/zendframework1-application/tests:../vendor/diablomedia/zendframework1-loader/tests:../vendor/diablomedia/zendframework1-db/tests:../vendor/diablomedia/zendframework1-paginator/tests + ../vendor:../vendor/diablomedia/zendframework1-application/tests:../vendor/diablomedia/zendframework1-loader/tests:../vendor/diablomedia/zendframework1-loader/tests/Zend:../vendor/diablomedia/zendframework1-db/tests:../vendor/diablomedia/zendframework1-paginator/tests