diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b79d851..9b4e9511 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,13 +7,13 @@ jobs: fail-fast: false matrix: php-version: - - '8.1' + - '8.2' name: PHP ${{ matrix.php-version }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 @@ -22,7 +22,7 @@ jobs: coverage: none - name: Cache composer dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cache/composer key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -44,18 +44,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 coverage: none extensions: bcmath, fileinfo, json, pdo tools: cs2pr - name: Cache composer dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cache/composer key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -71,20 +71,15 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version - # Create release - name: Get release info - id: release-info - run: | - echo "::set-output name=subject::$(git tag --format '%(contents:subject)' --points-at)" - git tag --format '%(contents:body)' --points-at > release-body.txt - - uses: actions/create-release@v1 + run: git tag --format '%(contents:body)' --points-at > release-body.txt + + - uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ github.ref }} - release_name: ${{ steps.release-info.outputs.subject }} - body_path: release-body.txt + bodyFile: release-body.txt diff --git a/composer.json b/composer.json index f4211ad9..19e25656 100644 --- a/composer.json +++ b/composer.json @@ -21,10 +21,10 @@ ] }, "require": { - "php": ">=8.1" + "php": "^8.2" }, "require-dev": { - "phpunit/phpunit": "@stable", + "phpunit/phpunit": "^9.6", "friendsofphp/php-cs-fixer": "@stable" } } diff --git a/composer.lock b/composer.lock index de302d3f..1478e04b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fbe46f571e1105f90430a4f499b7573e", + "content-hash": "6f50c4da03eefced66bfcf0708c13160", "packages": [], "packages-dev": [ { "name": "composer/pcre", - "version": "3.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "url": "https://api.github.com/repos/composer/pcre/zipball/4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", "shasum": "" }, "require": { @@ -60,7 +60,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.0.0" + "source": "https://github.com/composer/pcre/tree/3.1.0" }, "funding": [ { @@ -76,20 +76,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T20:21:48+00:00" + "time": "2022-11-17T09:50:14+00:00" }, { "name": "composer/semver", - "version": "3.3.1", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "5d8e574bb0e69188786b8ef77d43341222a41a71" + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/5d8e574bb0e69188786b8ef77d43341222a41a71", - "reference": "5d8e574bb0e69188786b8ef77d43341222a41a71", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", "shasum": "" }, "require": { @@ -141,7 +141,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.3.1" + "source": "https://github.com/composer/semver/tree/3.3.2" }, "funding": [ { @@ -157,7 +157,7 @@ "type": "tidelift" } ], - "time": "2022-03-16T11:22:07+00:00" + "time": "2022-04-01T19:23:25+00:00" }, { "name": "composer/xdebug-handler", @@ -227,30 +227,34 @@ }, { "name": "doctrine/annotations", - "version": "1.13.2", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08" + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", + "doctrine/lexer": "^2 || ^3", "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", + "php": "^7.2 || ^8.0", "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^0.12.20", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2" + "doctrine/cache": "^2.0", + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^5.4 || ^6", + "vimeo/psalm": "^4.10" + }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" }, "type": "library", "autoload": { @@ -293,36 +297,36 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.2" + "source": "https://github.com/doctrine/annotations/tree/2.0.1" }, - "time": "2021-08-05T19:00:23+00:00" + "time": "2023-02-02T22:02:53+00:00" }, { "name": "doctrine/instantiator", - "version": "1.4.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -349,7 +353,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -365,35 +369,36 @@ "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "reference": "84a527db05647743d50373e0ec53a152f2cde568" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/84a527db05647743d50373e0ec53a152f2cde568", + "reference": "84a527db05647743d50373e0ec53a152f2cde568", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9.0", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.11" + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^9.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "Doctrine\\Common\\Lexer\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -425,7 +430,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "source": "https://github.com/doctrine/lexer/tree/3.0.0" }, "funding": [ { @@ -441,55 +446,57 @@ "type": "tidelift" } ], - "time": "2022-02-28T11:07:21+00:00" + "time": "2022-12-15T16:57:16+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.8.0", + "version": "v3.23.0", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3" + "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", + "reference": "35af3cbbacfa91e164b252a28ec0b644f1ed4e78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3", - "reference": "cbad1115aac4b5c3c5540e7210d3c9fba2f81fa3", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/35af3cbbacfa91e164b252a28ec0b644f1ed4e78", + "reference": "35af3cbbacfa91e164b252a28ec0b644f1ed4e78", "shasum": "" }, "require": { - "composer/semver": "^3.2", + "composer/semver": "^3.3", "composer/xdebug-handler": "^3.0.3", - "doctrine/annotations": "^1.13", + "doctrine/annotations": "^2", + "doctrine/lexer": "^2 || ^3", "ext-json": "*", "ext-tokenizer": "*", "php": "^7.4 || ^8.0", - "php-cs-fixer/diff": "^2.0", + "sebastian/diff": "^4.0 || ^5.0", "symfony/console": "^5.4 || ^6.0", "symfony/event-dispatcher": "^5.4 || ^6.0", "symfony/filesystem": "^5.4 || ^6.0", "symfony/finder": "^5.4 || ^6.0", "symfony/options-resolver": "^5.4 || ^6.0", - "symfony/polyfill-mbstring": "^1.23", - "symfony/polyfill-php80": "^1.25", - "symfony/polyfill-php81": "^1.25", + "symfony/polyfill-mbstring": "^1.27", + "symfony/polyfill-php80": "^1.27", + "symfony/polyfill-php81": "^1.27", "symfony/process": "^5.4 || ^6.0", "symfony/stopwatch": "^5.4 || ^6.0" }, "require-dev": { + "facile-it/paraunit": "^1.3 || ^2.0", "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^1.5", - "mikey179/vfsstream": "^1.6.10", - "php-coveralls/php-coveralls": "^2.5.2", + "keradus/cli-executor": "^2.0", + "mikey179/vfsstream": "^1.6.11", + "php-coveralls/php-coveralls": "^2.5.3", "php-cs-fixer/accessible-object": "^1.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy": "^1.15", + "phpspec/prophecy": "^1.16", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "symfony/phpunit-bridge": "^6.0", + "phpunitgoodpractices/polyfill": "^1.6", + "phpunitgoodpractices/traits": "^1.9.2", + "symfony/phpunit-bridge": "^6.2.3", "symfony/yaml": "^5.4 || ^6.0" }, "suggest": { @@ -520,9 +527,15 @@ } ], "description": "A tool to automatically fix PHP code style", + "keywords": [ + "Static code analysis", + "fixer", + "standards", + "static analysis" + ], "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.8.0" + "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.23.0" }, "funding": [ { @@ -530,20 +543,20 @@ "type": "github" } ], - "time": "2022-03-18T17:20:59+00:00" + "time": "2023-08-14T12:27:35+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { @@ -581,7 +594,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { @@ -589,20 +602,20 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { "name": "nikic/php-parser", - "version": "v4.13.2", + "version": "v4.17.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077" + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", "shasum": "" }, "require": { @@ -643,9 +656,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" }, - "time": "2021-11-30T19:35:32+00:00" + "time": "2023-08-13T19:53:39+00:00" }, { "name": "phar-io/manifest", @@ -758,304 +771,25 @@ }, "time": "2022-02-21T01:04:05+00:00" }, - { - "name": "php-cs-fixer/diff", - "version": "v2.0.2", - "source": { - "type": "git", - "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3", - "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", - "symfony/process": "^3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "sebastian/diff v3 backport support for PHP 5.6+", - "homepage": "https://github.com/PHP-CS-Fixer", - "keywords": [ - "diff" - ], - "support": { - "issues": "https://github.com/PHP-CS-Fixer/diff/issues", - "source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2" - }, - "time": "2020-10-14T08:32:19+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" - }, - "time": "2021-10-19T17:43:47+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.6.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0" - }, - "time": "2022-01-04T19:58:01+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" - }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b0a88255cb70d52653d80c890bd7f38740ea50d1", + "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -1070,8 +804,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -1104,7 +838,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.27" }, "funding": [ { @@ -1112,7 +847,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2023-07-26T13:44:30+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1357,20 +1092,20 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.19", + "version": "9.6.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "35ea4b7f3acabb26f4bb640f8c30866c401da807" + "reference": "810500e92855eba8a7a5319ae913be2da6f957b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/35ea4b7f3acabb26f4bb640f8c30866c401da807", - "reference": "35ea4b7f3acabb26f4bb640f8c30866c401da807", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/810500e92855eba8a7a5319ae913be2da6f957b0", + "reference": "810500e92855eba8a7a5319ae913be2da6f957b0", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", + "doctrine/instantiator": "^1.3.1 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -1381,7 +1116,6 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", "phpunit/php-code-coverage": "^9.2.13", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", @@ -1389,23 +1123,19 @@ "phpunit/php-timer": "^5.0.2", "sebastian/cli-parser": "^1.0.1", "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.5", + "sebastian/comparator": "^4.0.8", "sebastian/diff": "^4.0.3", "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.3", + "sebastian/exporter": "^4.0.5", "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", + "sebastian/type": "^3.2", "sebastian/version": "^3.0.2" }, - "require-dev": { - "ext-pdo": "*", - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -1413,7 +1143,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -1444,7 +1174,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.19" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.11" }, "funding": [ { @@ -1454,9 +1185,13 @@ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2022-03-15T09:57:31+00:00" + "time": "2023-08-19T07:10:56+00:00" }, { "name": "psr/cache", @@ -1829,16 +1564,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.6", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { @@ -1891,7 +1626,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -1899,7 +1634,7 @@ "type": "github" } ], - "time": "2020-10-26T15:49:45+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { "name": "sebastian/complexity", @@ -1960,16 +1695,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", "shasum": "" }, "require": { @@ -2014,7 +1749,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" }, "funding": [ { @@ -2022,20 +1757,20 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-05-07T05:35:17+00:00" }, { "name": "sebastian/environment", - "version": "5.1.3", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { @@ -2077,7 +1812,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -2085,20 +1820,20 @@ "type": "github" } ], - "time": "2020-09-28T05:52:38+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", "shasum": "" }, "require": { @@ -2154,7 +1889,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" }, "funding": [ { @@ -2162,20 +1897,20 @@ "type": "github" } ], - "time": "2021-11-11T14:18:36+00:00" + "time": "2022-09-14T06:03:37+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "5.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "bde739e7565280bda77be70044ac1047bc007e34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", + "reference": "bde739e7565280bda77be70044ac1047bc007e34", "shasum": "" }, "require": { @@ -2218,7 +1953,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6" }, "funding": [ { @@ -2226,7 +1961,7 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-08-02T09:26:13+00:00" }, { "name": "sebastian/lines-of-code", @@ -2399,16 +2134,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { @@ -2447,10 +2182,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" }, "funding": [ { @@ -2458,7 +2193,7 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2023-02-03T06:07:39+00:00" }, { "name": "sebastian/resource-operations", @@ -2517,16 +2252,16 @@ }, { "name": "sebastian/type", - "version": "3.0.0", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", "shasum": "" }, "require": { @@ -2538,7 +2273,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.2-dev" } }, "autoload": { @@ -2561,7 +2296,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" }, "funding": [ { @@ -2569,7 +2304,7 @@ "type": "github" } ], - "time": "2022-03-15T09:54:48+00:00" + "time": "2023-02-03T06:13:03+00:00" }, { "name": "sebastian/version", @@ -2626,22 +2361,23 @@ }, { "name": "symfony/console", - "version": "v6.0.5", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "3bebf4108b9e07492a2a4057d207aa5a77d146b1" + "reference": "aa5d64ad3f63f2e48964fc81ee45cb318a723898" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/3bebf4108b9e07492a2a4057d207aa5a77d146b1", - "reference": "3bebf4108b9e07492a2a4057d207aa5a77d146b1", + "url": "https://api.github.com/repos/symfony/console/zipball/aa5d64ad3f63f2e48964fc81ee45cb318a723898", + "reference": "aa5d64ad3f63f2e48964fc81ee45cb318a723898", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/service-contracts": "^1.1|^2|^3", + "symfony/service-contracts": "^2.5|^3", "symfony/string": "^5.4|^6.0" }, "conflict": { @@ -2663,12 +2399,6 @@ "symfony/process": "^5.4|^6.0", "symfony/var-dumper": "^5.4|^6.0" }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" - }, "type": "library", "autoload": { "psr-4": { @@ -2696,12 +2426,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.0.5" + "source": "https://github.com/symfony/console/tree/v6.3.2" }, "funding": [ { @@ -2717,29 +2447,29 @@ "type": "tidelift" } ], - "time": "2022-02-25T10:48:52+00:00" + "time": "2023-07-19T20:17:28+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", - "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -2768,7 +2498,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0" }, "funding": [ { @@ -2784,28 +2514,29 @@ "type": "tidelift" } ], - "time": "2021-11-01T23:48:49+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.0.3", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "6472ea2dd415e925b90ca82be64b8bc6157f3934" + "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/6472ea2dd415e925b90ca82be64b8bc6157f3934", - "reference": "6472ea2dd415e925b90ca82be64b8bc6157f3934", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/adb01fe097a4ee930db9258a3cc906b5beb5cf2e", + "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/event-dispatcher-contracts": "^2|^3" + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2.5|^3" }, "conflict": { - "symfony/dependency-injection": "<5.4" + "symfony/dependency-injection": "<5.4", + "symfony/service-contracts": "<2.5" }, "provide": { "psr/event-dispatcher-implementation": "1.0", @@ -2818,13 +2549,9 @@ "symfony/error-handler": "^5.4|^6.0", "symfony/expression-language": "^5.4|^6.0", "symfony/http-foundation": "^5.4|^6.0", - "symfony/service-contracts": "^1.1|^2|^3", + "symfony/service-contracts": "^2.5|^3", "symfony/stopwatch": "^5.4|^6.0" }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" - }, "type": "library", "autoload": { "psr-4": { @@ -2851,7 +2578,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.3" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.3.2" }, "funding": [ { @@ -2867,33 +2594,30 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2023-07-06T06:56:43+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.0.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "aa5422287b75594b90ee9cd807caf8f0df491385" + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/aa5422287b75594b90ee9cd807caf8f0df491385", - "reference": "aa5422287b75594b90ee9cd807caf8f0df491385", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/a76aed96a42d2b521153fb382d418e30d18b59df", + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "psr/event-dispatcher": "^1" }, - "suggest": { - "symfony/event-dispatcher-implementation": "" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -2930,7 +2654,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.3.0" }, "funding": [ { @@ -2946,24 +2670,24 @@ "type": "tidelift" } ], - "time": "2021-07-15T12:33:35+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/filesystem", - "version": "v6.0.6", + "version": "v6.3.1", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "52b888523545b0b4049ab9ce48766802484d7046" + "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/52b888523545b0b4049ab9ce48766802484d7046", - "reference": "52b888523545b0b4049ab9ce48766802484d7046", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", + "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, @@ -2993,7 +2717,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.0.6" + "source": "https://github.com/symfony/filesystem/tree/v6.3.1" }, "funding": [ { @@ -3009,24 +2733,27 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:58:14+00:00" + "time": "2023-06-01T08:30:39+00:00" }, { "name": "symfony/finder", - "version": "v6.0.3", + "version": "v6.3.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "8661b74dbabc23223f38c9b99d3f8ade71170430" + "reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/8661b74dbabc23223f38c9b99d3f8ade71170430", - "reference": "8661b74dbabc23223f38c9b99d3f8ade71170430", + "url": "https://api.github.com/repos/symfony/finder/zipball/9915db259f67d21eefee768c1abcf1cc61b1fc9e", + "reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" }, "type": "library", "autoload": { @@ -3054,7 +2781,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.0.3" + "source": "https://github.com/symfony/finder/tree/v6.3.3" }, "funding": [ { @@ -3070,25 +2797,25 @@ "type": "tidelift" } ], - "time": "2022-01-26T17:23:29+00:00" + "time": "2023-07-31T08:31:44+00:00" }, { "name": "symfony/options-resolver", - "version": "v6.0.3", + "version": "v6.3.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "51f7006670febe4cbcbae177cbffe93ff833250d" + "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/51f7006670febe4cbcbae177cbffe93ff833250d", - "reference": "51f7006670febe4cbcbae177cbffe93ff833250d", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a10f19f5198d589d5c33333cffe98dc9820332dd", + "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/deprecation-contracts": "^2.1|^3" + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3" }, "type": "library", "autoload": { @@ -3121,7 +2848,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.0.3" + "source": "https://github.com/symfony/options-resolver/tree/v6.3.0" }, "funding": [ { @@ -3137,20 +2864,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2023-05-12T14:21:09+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", "shasum": "" }, "require": { @@ -3165,7 +2892,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3203,7 +2930,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" }, "funding": [ { @@ -3219,20 +2946,20 @@ "type": "tidelift" } ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783" + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", "shasum": "" }, "require": { @@ -3244,7 +2971,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3284,7 +3011,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" }, "funding": [ { @@ -3300,20 +3027,20 @@ "type": "tidelift" } ], - "time": "2021-11-23T21:10:46+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", "shasum": "" }, "require": { @@ -3325,7 +3052,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3368,7 +3095,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" }, "funding": [ { @@ -3384,20 +3111,20 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "shasum": "" }, "require": { @@ -3412,7 +3139,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3451,7 +3178,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" }, "funding": [ { @@ -3467,20 +3194,20 @@ "type": "tidelift" } ], - "time": "2021-11-30T18:21:41+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "shasum": "" }, "require": { @@ -3489,7 +3216,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3534,7 +3261,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" }, "funding": [ { @@ -3550,20 +3277,20 @@ "type": "tidelift" } ], - "time": "2022-03-04T08:16:47+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f" + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", "shasum": "" }, "require": { @@ -3572,7 +3299,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3613,7 +3340,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" }, "funding": [ { @@ -3629,24 +3356,24 @@ "type": "tidelift" } ], - "time": "2021-09-13T13:58:11+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/process", - "version": "v6.0.5", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "1ccceccc6497e96f4f646218f04b97ae7d9fa7a1" + "reference": "c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/1ccceccc6497e96f4f646218f04b97ae7d9fa7a1", - "reference": "1ccceccc6497e96f4f646218f04b97ae7d9fa7a1", + "url": "https://api.github.com/repos/symfony/process/zipball/c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d", + "reference": "c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "autoload": { @@ -3674,7 +3401,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.0.5" + "source": "https://github.com/symfony/process/tree/v6.3.2" }, "funding": [ { @@ -3690,36 +3417,33 @@ "type": "tidelift" } ], - "time": "2022-01-30T18:19:12+00:00" + "time": "2023-07-12T16:00:22+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.0.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603" + "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/36715ebf9fb9db73db0cb24263c79077c6fe8603", - "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", + "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "psr/container": "^2.0" }, "conflict": { "ext-psr": "<1.1|>=2" }, - "suggest": { - "symfony/service-implementation": "" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -3729,7 +3453,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3756,7 +3483,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.0.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.3.0" }, "funding": [ { @@ -3772,25 +3499,25 @@ "type": "tidelift" } ], - "time": "2021-11-04T17:53:12+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/stopwatch", - "version": "v6.0.5", + "version": "v6.3.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "f2c1780607ec6502f2121d9729fd8150a655d337" + "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f2c1780607ec6502f2121d9729fd8150a655d337", - "reference": "f2c1780607ec6502f2121d9729fd8150a655d337", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", + "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/service-contracts": "^1|^2|^3" + "php": ">=8.1", + "symfony/service-contracts": "^2.5|^3" }, "type": "library", "autoload": { @@ -3818,7 +3545,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.0.5" + "source": "https://github.com/symfony/stopwatch/tree/v6.3.0" }, "funding": [ { @@ -3834,36 +3561,37 @@ "type": "tidelift" } ], - "time": "2022-02-21T17:15:17+00:00" + "time": "2023-02-16T10:14:28+00:00" }, { "name": "symfony/string", - "version": "v6.0.3", + "version": "v6.3.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2" + "reference": "53d1a83225002635bca3482fcbf963001313fb68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/522144f0c4c004c80d56fa47e40e17028e2eefc2", - "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2", + "url": "https://api.github.com/repos/symfony/string/zipball/53d1a83225002635bca3482fcbf963001313fb68", + "reference": "53d1a83225002635bca3482fcbf963001313fb68", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": "<2.0" + "symfony/translation-contracts": "<2.5" }, "require-dev": { "symfony/error-handler": "^5.4|^6.0", "symfony/http-client": "^5.4|^6.0", - "symfony/translation-contracts": "^2.0|^3.0", + "symfony/intl": "^6.2", + "symfony/translation-contracts": "^2.5|^3.0", "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", @@ -3903,7 +3631,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.3" + "source": "https://github.com/symfony/string/tree/v6.3.2" }, "funding": [ { @@ -3919,7 +3647,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2023-07-05T08:41:27+00:00" }, { "name": "theseer/tokenizer", @@ -3970,77 +3698,18 @@ } ], "time": "2021-07-28T10:34:58+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.10.0" - }, - "time": "2021-03-09T10:59:23+00:00" } ], "aliases": [], "minimum-stability": "stable", "stability-flags": { - "phpunit/phpunit": 0, "friendsofphp/php-cs-fixer": 0 }, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.1" + "php": "^8.2" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/library/Zend/Acl.php b/library/Zend/Acl.php index 6534c5e3..8d5539d1 100644 --- a/library/Zend/Acl.php +++ b/library/Zend/Acl.php @@ -45,6 +45,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl { /** @@ -506,7 +507,6 @@ public function removeAll() * @param array|string|Zend_Acl_Role_Interface $roles * @param array|string|Zend_Acl_Resource_Interface $resources * @param array|string $privileges - * @param Zend_Acl_Assert_Interface $assert * * @uses Zend_Acl::setRule() * @@ -523,7 +523,6 @@ public function allow($roles = null, $resources = null, $privileges = null, ?Zen * @param array|string|Zend_Acl_Role_Interface $roles * @param array|string|Zend_Acl_Resource_Interface $resources * @param array|string $privileges - * @param Zend_Acl_Assert_Interface $assert * * @uses Zend_Acl::setRule() * @@ -612,7 +611,6 @@ public function removeDeny($roles = null, $resources = null, $privileges = null) * @param array|string|Zend_Acl_Role_Interface $roles * @param array|string|Zend_Acl_Resource_Interface $resources * @param array|string $privileges - * @param Zend_Acl_Assert_Interface $assert * * @uses Zend_Acl_Role_Registry::get() * @uses Zend_Acl::get() @@ -681,7 +679,6 @@ public function setRule($operation, $type, $roles = null, $resources = null, $pr } switch ($operation) { - // add to the rules case self::OP_ADD: if ($resources !== null) { @@ -721,7 +718,7 @@ public function setRule($operation, $type, $roles = null, $resources = null, $pr break; - // remove from the rules + // remove from the rules case self::OP_REMOVE: if ($resources !== null) { // this block will iterate the provided resources @@ -940,8 +937,6 @@ protected function _getRoleRegistry() * This method returns true if a rule is found and allows access. If a rule exists and denies access, * then this method returns false. If no applicable rule is found, then this method returns null. * - * @param Zend_Acl_Resource_Interface $resource - * * @return null|bool */ protected function _roleDFSAllPrivileges(Zend_Acl_Role_Interface $role, ?Zend_Acl_Resource_Interface $resource = null) @@ -974,7 +969,6 @@ protected function _roleDFSAllPrivileges(Zend_Acl_Role_Interface $role, ?Zend_Ac * * This method is used by the internal depth-first search algorithm and may modify the DFS data structure. * - * @param Zend_Acl_Resource_Interface $resource * @param array $dfs * * @return null|bool @@ -1017,7 +1011,6 @@ protected function _roleDFSVisitAllPrivileges(Zend_Acl_Role_Interface $role, ?Ze * This method returns true if a rule is found and allows access. If a rule exists and denies access, * then this method returns false. If no applicable rule is found, then this method returns null. * - * @param Zend_Acl_Resource_Interface $resource * @param string $privilege * * @return null|bool @@ -1062,7 +1055,6 @@ protected function _roleDFSOnePrivilege(Zend_Acl_Role_Interface $role, ?Zend_Acl * * This method is used by the internal depth-first search algorithm and may modify the DFS data structure. * - * @param Zend_Acl_Resource_Interface $resource * @param string $privilege * @param array $dfs * @@ -1120,8 +1112,6 @@ protected function _roleDFSVisitOnePrivilege(Zend_Acl_Role_Interface $role, ?Zen * If all three parameters are null, then the default ACL rule type is returned, * based on whether its assertion method passes. * - * @param Zend_Acl_Resource_Interface $resource - * @param Zend_Acl_Role_Interface $role * @param string $privilege * * @return null|string @@ -1156,7 +1146,7 @@ protected function _getRuleType(?Zend_Acl_Resource_Interface $resource = null, ? ($this->_isAllowedRole instanceof Zend_Acl_Role_Interface) ? $this->_isAllowedRole : $role, ($this->_isAllowedResource instanceof Zend_Acl_Resource_Interface) ? $this->_isAllowedResource : $resource, $this->_isAllowedPrivilege - ); + ); } if (null === $rule['assert'] || $assertionValue) { @@ -1180,14 +1170,12 @@ protected function _getRuleType(?Zend_Acl_Resource_Interface $resource = null, ? * * If the $create parameter is true, then a rule set is first created and then returned to the caller. * - * @param Zend_Acl_Resource_Interface $resource - * @param Zend_Acl_Role_Interface $role * @param bool $create * * @return null|array */ protected function &_getRules(?Zend_Acl_Resource_Interface $resource = null, ?Zend_Acl_Role_Interface $role = null, - $create = false) + $create = false) { // create a reference to null $null = null; diff --git a/library/Zend/Acl/Assert/Interface.php b/library/Zend/Acl/Assert/Interface.php index 022f252b..624091b4 100644 --- a/library/Zend/Acl/Assert/Interface.php +++ b/library/Zend/Acl/Assert/Interface.php @@ -44,8 +44,6 @@ interface Zend_Acl_Assert_Interface * $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or * privileges, respectively. * - * @param Zend_Acl_Role_Interface $role - * @param Zend_Acl_Resource_Interface $resource * @param string $privilege * * @return bool diff --git a/library/Zend/Acl/Exception.php b/library/Zend/Acl/Exception.php index 12cf38e8..be492b5c 100644 --- a/library/Zend/Acl/Exception.php +++ b/library/Zend/Acl/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_Exception extends Zend_Exception { } diff --git a/library/Zend/Acl/Resource.php b/library/Zend/Acl/Resource.php index ddd60f9b..c4ebc7e3 100644 --- a/library/Zend/Acl/Resource.php +++ b/library/Zend/Acl/Resource.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_Resource implements Zend_Acl_Resource_Interface { /** diff --git a/library/Zend/Acl/Role.php b/library/Zend/Acl/Role.php index 649a3ecd..9aab1e24 100644 --- a/library/Zend/Acl/Role.php +++ b/library/Zend/Acl/Role.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_Role implements Zend_Acl_Role_Interface { /** diff --git a/library/Zend/Acl/Role/Registry.php b/library/Zend/Acl/Role/Registry.php index 5d578b70..b95dad55 100644 --- a/library/Zend/Acl/Role/Registry.php +++ b/library/Zend/Acl/Role/Registry.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_Role_Registry { /** diff --git a/library/Zend/Acl/Role/Registry/Exception.php b/library/Zend/Acl/Role/Registry/Exception.php index c30a24fd..b2d405dd 100644 --- a/library/Zend/Acl/Role/Registry/Exception.php +++ b/library/Zend/Acl/Role/Registry/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_Role_Registry_Exception extends Zend_Acl_Exception { } diff --git a/library/Zend/Application.php b/library/Zend/Application.php index 74cb38be..8c470d30 100644 --- a/library/Zend/Application.php +++ b/library/Zend/Application.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application { /** diff --git a/library/Zend/Application/Bootstrap/Bootstrap.php b/library/Zend/Application/Bootstrap/Bootstrap.php index 444bbddf..8503241d 100644 --- a/library/Zend/Application/Bootstrap/Bootstrap.php +++ b/library/Zend/Application/Bootstrap/Bootstrap.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Bootstrap_Bootstrap extends Zend_Application_Bootstrap_BootstrapAbstract { /** diff --git a/library/Zend/Application/Bootstrap/BootstrapAbstract.php b/library/Zend/Application/Bootstrap/BootstrapAbstract.php index 04acf986..576dc28c 100644 --- a/library/Zend/Application/Bootstrap/BootstrapAbstract.php +++ b/library/Zend/Application/Bootstrap/BootstrapAbstract.php @@ -35,9 +35,10 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Application_Bootstrap_BootstrapAbstract implements Zend_Application_Bootstrap_Bootstrapper, - Zend_Application_Bootstrap_ResourceBootstrapper + Zend_Application_Bootstrap_ResourceBootstrapper { /** * @var Zend_Application|Zend_Application_Bootstrap_Bootstrapper diff --git a/library/Zend/Application/Bootstrap/Exception.php b/library/Zend/Application/Bootstrap/Exception.php index 0a423dc1..baf06310 100644 --- a/library/Zend/Application/Bootstrap/Exception.php +++ b/library/Zend/Application/Bootstrap/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Bootstrap_Exception extends Zend_Application_Exception { } diff --git a/library/Zend/Application/Exception.php b/library/Zend/Application/Exception.php index bfc1c973..0643f561 100644 --- a/library/Zend/Application/Exception.php +++ b/library/Zend/Application/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Exception extends Zend_Exception { } diff --git a/library/Zend/Application/Module/Autoloader.php b/library/Zend/Application/Module/Autoloader.php index efb085e8..5dbcb4c6 100644 --- a/library/Zend/Application/Module/Autoloader.php +++ b/library/Zend/Application/Module/Autoloader.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Module_Autoloader extends Zend_Loader_Autoloader_Resource { /** diff --git a/library/Zend/Application/Module/Bootstrap.php b/library/Zend/Application/Module/Bootstrap.php index 1df47080..05ab45e7 100644 --- a/library/Zend/Application/Module/Bootstrap.php +++ b/library/Zend/Application/Module/Bootstrap.php @@ -30,6 +30,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Application_Module_Bootstrap extends Zend_Application_Bootstrap_Bootstrap { /** diff --git a/library/Zend/Application/Resource/Cachemanager.php b/library/Zend/Application/Resource/Cachemanager.php index de6a5e0a..11d687b7 100644 --- a/library/Zend/Application/Resource/Cachemanager.php +++ b/library/Zend/Application/Resource/Cachemanager.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Cachemanager extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Db.php b/library/Zend/Application/Resource/Db.php index 877cc81d..0e454983 100644 --- a/library/Zend/Application/Resource/Db.php +++ b/library/Zend/Application/Resource/Db.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Db extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Exception.php b/library/Zend/Application/Resource/Exception.php index 2fc506b0..a97bc395 100644 --- a/library/Zend/Application/Resource/Exception.php +++ b/library/Zend/Application/Resource/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Exception extends Zend_Application_Exception { } diff --git a/library/Zend/Application/Resource/Frontcontroller.php b/library/Zend/Application/Resource/Frontcontroller.php index 24d79fcb..d629fcd8 100644 --- a/library/Zend/Application/Resource/Frontcontroller.php +++ b/library/Zend/Application/Resource/Frontcontroller.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Frontcontroller extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Layout.php b/library/Zend/Application/Resource/Layout.php index bd20f4e0..b3cb418a 100644 --- a/library/Zend/Application/Resource/Layout.php +++ b/library/Zend/Application/Resource/Layout.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Layout extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Locale.php b/library/Zend/Application/Resource/Locale.php index 26ce747e..0d5a80be 100644 --- a/library/Zend/Application/Resource/Locale.php +++ b/library/Zend/Application/Resource/Locale.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Locale extends Zend_Application_Resource_ResourceAbstract { public const DEFAULT_REGISTRY_KEY = 'Zend_Locale'; diff --git a/library/Zend/Application/Resource/Mail.php b/library/Zend/Application/Resource/Mail.php index 06006567..abcfe5e9 100644 --- a/library/Zend/Application/Resource/Mail.php +++ b/library/Zend/Application/Resource/Mail.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Mail extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Modules.php b/library/Zend/Application/Resource/Modules.php index 12bd95d6..990071a1 100644 --- a/library/Zend/Application/Resource/Modules.php +++ b/library/Zend/Application/Resource/Modules.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Modules extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Navigation.php b/library/Zend/Application/Resource/Navigation.php index d1bf2dc5..5bd3aa03 100644 --- a/library/Zend/Application/Resource/Navigation.php +++ b/library/Zend/Application/Resource/Navigation.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Navigation extends Zend_Application_Resource_ResourceAbstract { public const DEFAULT_REGISTRY_KEY = 'Zend_Navigation'; diff --git a/library/Zend/Application/Resource/ResourceAbstract.php b/library/Zend/Application/Resource/ResourceAbstract.php index 7693d502..962857fd 100644 --- a/library/Zend/Application/Resource/ResourceAbstract.php +++ b/library/Zend/Application/Resource/ResourceAbstract.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Application_Resource_ResourceAbstract implements Zend_Application_Resource_Resource { /** diff --git a/library/Zend/Application/Resource/Router.php b/library/Zend/Application/Resource/Router.php index db1e99dc..102ac608 100644 --- a/library/Zend/Application/Resource/Router.php +++ b/library/Zend/Application/Resource/Router.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Router extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/Session.php b/library/Zend/Application/Resource/Session.php index bf314bab..57e1084e 100644 --- a/library/Zend/Application/Resource/Session.php +++ b/library/Zend/Application/Resource/Session.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_Session extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/UserAgent.php b/library/Zend/Application/Resource/UserAgent.php index b40a03eb..a163406a 100644 --- a/library/Zend/Application/Resource/UserAgent.php +++ b/library/Zend/Application/Resource/UserAgent.php @@ -18,6 +18,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_UserAgent extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Application/Resource/View.php b/library/Zend/Application/Resource/View.php index a0dc7f19..fa88d6cf 100644 --- a/library/Zend/Application/Resource/View.php +++ b/library/Zend/Application/Resource/View.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_View extends Zend_Application_Resource_ResourceAbstract { /** diff --git a/library/Zend/Cache.php b/library/Zend/Cache.php index bfa283af..63eede1d 100644 --- a/library/Zend/Cache.php +++ b/library/Zend/Cache.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Cache { /** diff --git a/library/Zend/Cache/Backend.php b/library/Zend/Cache/Backend.php index 774cbb29..3fe2558c 100644 --- a/library/Zend/Cache/Backend.php +++ b/library/Zend/Cache/Backend.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Backend { /** diff --git a/library/Zend/Cache/Backend/BlackHole.php b/library/Zend/Cache/Backend/BlackHole.php index 681a4a98..4d977875 100644 --- a/library/Zend/Cache/Backend/BlackHole.php +++ b/library/Zend/Cache/Backend/BlackHole.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Backend_BlackHole extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface { /** diff --git a/library/Zend/Cache/Backend/File.php b/library/Zend/Cache/Backend/File.php index 2d86172d..063790b9 100644 --- a/library/Zend/Cache/Backend/File.php +++ b/library/Zend/Cache/Backend/File.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface { /** @@ -913,16 +914,16 @@ protected function _expireTime($lifetime) protected function _hash($data, $controlType) { switch ($controlType) { - case 'md5': - return md5($data); - case 'crc32': - return crc32($data); - case 'strlen': - return strlen($data); - case 'adler32': - return hash('adler32', $data); - default: - Zend_Cache::throwException("Incorrect hash function : $controlType"); + case 'md5': + return md5($data); + case 'crc32': + return crc32($data); + case 'strlen': + return strlen($data); + case 'adler32': + return hash('adler32', $data); + default: + Zend_Cache::throwException("Incorrect hash function : $controlType"); } } diff --git a/library/Zend/Cache/Backend/Test.php b/library/Zend/Cache/Backend/Test.php index 6b064cd8..d3415d0a 100644 --- a/library/Zend/Cache/Backend/Test.php +++ b/library/Zend/Cache/Backend/Test.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Backend_Test extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface { /** diff --git a/library/Zend/Cache/Core.php b/library/Zend/Cache/Core.php index 9a78bf32..492da807 100644 --- a/library/Zend/Cache/Core.php +++ b/library/Zend/Cache/Core.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Core { /** diff --git a/library/Zend/Cache/Exception.php b/library/Zend/Cache/Exception.php index 4cf209c9..67f021ae 100644 --- a/library/Zend/Cache/Exception.php +++ b/library/Zend/Cache/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Exception extends Zend_Exception { } diff --git a/library/Zend/Cache/Frontend/Capture.php b/library/Zend/Cache/Frontend/Capture.php index 18e4e0a4..e36b4f73 100644 --- a/library/Zend/Cache/Frontend/Capture.php +++ b/library/Zend/Cache/Frontend/Capture.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_Capture extends Zend_Cache_Core { /** diff --git a/library/Zend/Cache/Frontend/Class.php b/library/Zend/Cache/Frontend/Class.php index 1b75be1c..cb11e128 100644 --- a/library/Zend/Cache/Frontend/Class.php +++ b/library/Zend/Cache/Frontend/Class.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_Class extends Zend_Cache_Core { /** diff --git a/library/Zend/Cache/Frontend/File.php b/library/Zend/Cache/Frontend/File.php index 17dd327a..a6f4d8e6 100644 --- a/library/Zend/Cache/Frontend/File.php +++ b/library/Zend/Cache/Frontend/File.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_File extends Zend_Cache_Core { /** diff --git a/library/Zend/Cache/Frontend/Function.php b/library/Zend/Cache/Frontend/Function.php index 2513e99b..c93b461f 100644 --- a/library/Zend/Cache/Frontend/Function.php +++ b/library/Zend/Cache/Frontend/Function.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_Function extends Zend_Cache_Core { /** diff --git a/library/Zend/Cache/Frontend/Output.php b/library/Zend/Cache/Frontend/Output.php index 30198e0c..f81581bb 100644 --- a/library/Zend/Cache/Frontend/Output.php +++ b/library/Zend/Cache/Frontend/Output.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_Output extends Zend_Cache_Core { private array $_idStack = []; diff --git a/library/Zend/Cache/Frontend/Page.php b/library/Zend/Cache/Frontend/Page.php index d2dc9ca0..6d3584c3 100644 --- a/library/Zend/Cache/Frontend/Page.php +++ b/library/Zend/Cache/Frontend/Page.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Frontend_Page extends Zend_Cache_Core { /** @@ -357,36 +358,36 @@ protected function _makeId() protected function _makePartialId($arrayName, $bool1, $bool2) { switch ($arrayName) { - case 'Get': - $var = $_GET; + case 'Get': + $var = $_GET; - break; - case 'Post': - $var = $_POST; + break; + case 'Post': + $var = $_POST; - break; - case 'Session': - if (isset($_SESSION)) { - $var = $_SESSION; - } else { - $var = null; - } + break; + case 'Session': + if (isset($_SESSION)) { + $var = $_SESSION; + } else { + $var = null; + } - break; - case 'Cookie': - if (isset($_COOKIE)) { - $var = $_COOKIE; - } else { - $var = null; - } + break; + case 'Cookie': + if (isset($_COOKIE)) { + $var = $_COOKIE; + } else { + $var = null; + } - break; - case 'Files': - $var = $_FILES; + break; + case 'Files': + $var = $_FILES; - break; - default: - return false; + break; + default: + return false; } if ($bool1) { if ($bool2) { diff --git a/library/Zend/Cache/Manager.php b/library/Zend/Cache/Manager.php index 7c5d7474..6a3f32df 100644 --- a/library/Zend/Cache/Manager.php +++ b/library/Zend/Cache/Manager.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Cache_Manager { /** diff --git a/library/Zend/Captcha/Adapter.php b/library/Zend/Captcha/Adapter.php index dedacec8..2583c4b7 100644 --- a/library/Zend/Captcha/Adapter.php +++ b/library/Zend/Captcha/Adapter.php @@ -39,7 +39,6 @@ public function generate(); /** * Display the captcha. * - * @param Zend_View_Interface $view * @param mixed $element * * @return string diff --git a/library/Zend/Captcha/Base.php b/library/Zend/Captcha/Base.php index 9dbadfe6..d6f9f179 100644 --- a/library/Zend/Captcha/Base.php +++ b/library/Zend/Captcha/Base.php @@ -30,6 +30,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] abstract class Zend_Captcha_Base extends Zend_Validate_Abstract implements Zend_Captcha_Adapter { /** diff --git a/library/Zend/Captcha/Dumb.php b/library/Zend/Captcha/Dumb.php index c277ffe1..77059ee5 100644 --- a/library/Zend/Captcha/Dumb.php +++ b/library/Zend/Captcha/Dumb.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Captcha_Dumb extends Zend_Captcha_Word { /** @@ -59,7 +60,6 @@ public function getLabel() /** * Render the captcha. * - * @param Zend_View_Interface $view * @param mixed $element * * @return string diff --git a/library/Zend/Captcha/Exception.php b/library/Zend/Captcha/Exception.php index 41804a84..bd93f5bb 100755 --- a/library/Zend/Captcha/Exception.php +++ b/library/Zend/Captcha/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Captcha_Exception extends Zend_Exception { } diff --git a/library/Zend/Captcha/Figlet.php b/library/Zend/Captcha/Figlet.php index b48a0f20..924ff22d 100644 --- a/library/Zend/Captcha/Figlet.php +++ b/library/Zend/Captcha/Figlet.php @@ -30,6 +30,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Captcha_Figlet extends Zend_Captcha_Word { /** @@ -65,7 +66,6 @@ public function generate() /** * Display the captcha. * - * @param Zend_View_Interface $view * @param mixed $element * * @return string diff --git a/library/Zend/Captcha/Image.php b/library/Zend/Captcha/Image.php index 4d6d93de..09d7f08d 100644 --- a/library/Zend/Captcha/Image.php +++ b/library/Zend/Captcha/Image.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Captcha_Image extends Zend_Captcha_Word { /** @@ -645,7 +646,6 @@ protected function _gc() /** * Display the captcha. * - * @param Zend_View_Interface $view * @param mixed $element * * @return string diff --git a/library/Zend/Captcha/Word.php b/library/Zend/Captcha/Word.php index 3a09612d..91066e54 100644 --- a/library/Zend/Captcha/Word.php +++ b/library/Zend/Captcha/Word.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] abstract class Zend_Captcha_Word extends Zend_Captcha_Base { /**#@+ diff --git a/library/Zend/Config.php b/library/Zend/Config.php index 927a50b1..21f357fe 100644 --- a/library/Zend/Config.php +++ b/library/Zend/Config.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Config implements Countable, Iterator { /** diff --git a/library/Zend/Config/Exception.php b/library/Zend/Config/Exception.php index 7509c667..e6ebf976 100644 --- a/library/Zend/Config/Exception.php +++ b/library/Zend/Config/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Config_Exception extends Zend_Exception { } diff --git a/library/Zend/Config/Ini.php b/library/Zend/Config/Ini.php index 6f37abce..e4feb38d 100644 --- a/library/Zend/Config/Ini.php +++ b/library/Zend/Config/Ini.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Config_Ini extends Zend_Config { /** diff --git a/library/Zend/Config/Xml.php b/library/Zend/Config/Xml.php index 120340f9..176dd4cd 100644 --- a/library/Zend/Config/Xml.php +++ b/library/Zend/Config/Xml.php @@ -33,6 +33,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Config_Xml extends Zend_Config { /** diff --git a/library/Zend/Console/Getopt.php b/library/Zend/Console/Getopt.php index 683b66b2..7e653f27 100644 --- a/library/Zend/Console/Getopt.php +++ b/library/Zend/Console/Getopt.php @@ -113,6 +113,7 @@ * @todo Feature request to implement callbacks. * e.g. if -a is specified, run function 'handleOptionA'(). */ +#[AllowDynamicProperties] class Zend_Console_Getopt { /** @@ -237,8 +238,8 @@ public function __construct($rules, $argv = null, $getoptConfig = []) } throw new Zend_Console_Getopt_Exception( - '$_SERVER["argv"] is not set, but Zend_Console_Getopt cannot work without this information.' - ); + '$_SERVER["argv"] is not set, but Zend_Console_Getopt cannot work without this information.' + ); } $this->_progname = $_SERVER['argv'][0]; @@ -636,8 +637,8 @@ public function getUsageMessage() } foreach ($lines as $linepart) { $usage .= sprintf("%s %s\n", - str_pad($linepart['name'], $maxLen), - $linepart['help']); + str_pad($linepart['name'], $maxLen), + $linepart['help']); } return $usage; @@ -797,7 +798,7 @@ protected function _parseLongOption(&$argv) protected function _parseShortOptionCluster(&$argv) { $flagCluster = ltrim(array_shift($argv), '-'); - foreach (str_split($flagCluster) as $flag) { + foreach ($flagCluster === '' ? [''] : str_split($flagCluster) as $flag) { $this->_parseSingleOption($flag, $argv); } } diff --git a/library/Zend/Console/Getopt/Exception.php b/library/Zend/Console/Getopt/Exception.php index 5ce547fd..9e943aca 100644 --- a/library/Zend/Console/Getopt/Exception.php +++ b/library/Zend/Console/Getopt/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Console_Getopt_Exception extends Zend_Exception { /** diff --git a/library/Zend/Controller/Action.php b/library/Zend/Controller/Action.php index a8ec2e6c..cd204477 100644 --- a/library/Zend/Controller/Action.php +++ b/library/Zend/Controller/Action.php @@ -35,6 +35,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Action implements Zend_Controller_Action_Interface { /** @@ -716,7 +717,6 @@ public function getAllParams() * @param string $action * @param string $controller * @param string $module - * @param array $params * * @deprecated Deprecated as of Zend Framework 1.7. Use * forward() instead. @@ -749,7 +749,6 @@ final protected function _forward($action, $controller = null, $module = null, ? * @param string $action * @param string $controller * @param string $module - * @param array $params */ final public function forward($action, $controller = null, $module = null, ?array $params = null) { diff --git a/library/Zend/Controller/Action/Exception.php b/library/Zend/Controller/Action/Exception.php index f5d11cd1..7e792226 100644 --- a/library/Zend/Controller/Action/Exception.php +++ b/library/Zend/Controller/Action/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Exception extends Zend_Controller_Exception { } diff --git a/library/Zend/Controller/Action/Helper/Abstract.php b/library/Zend/Controller/Action/Helper/Abstract.php index b9cd8aa9..f7b54904 100644 --- a/library/Zend/Controller/Action/Helper/Abstract.php +++ b/library/Zend/Controller/Action/Helper/Abstract.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Action_Helper_Abstract { /** @@ -42,8 +43,6 @@ abstract class Zend_Controller_Action_Helper_Abstract /** * setActionController(). * - * @param Zend_Controller_Action $actionController - * * @return Zend_Controller_Action_Helper_Abstract Provides a fluent interface */ public function setActionController(?Zend_Controller_Action $actionController = null) diff --git a/library/Zend/Controller/Action/Helper/ActionStack.php b/library/Zend/Controller/Action/Helper/ActionStack.php index 74d1a82f..18cce84f 100644 --- a/library/Zend/Controller/Action/Helper/ActionStack.php +++ b/library/Zend/Controller/Action/Helper/ActionStack.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ActionStack extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/AjaxContext.php b/library/Zend/Controller/Action/Helper/AjaxContext.php index c2b123fe..58130088 100644 --- a/library/Zend/Controller/Action/Helper/AjaxContext.php +++ b/library/Zend/Controller/Action/Helper/AjaxContext.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_AjaxContext extends Zend_Controller_Action_Helper_ContextSwitch { /** diff --git a/library/Zend/Controller/Action/Helper/AutoComplete/Abstract.php b/library/Zend/Controller/Action/Helper/AutoComplete/Abstract.php index 8ef7031e..ae73492f 100644 --- a/library/Zend/Controller/Action/Helper/AutoComplete/Abstract.php +++ b/library/Zend/Controller/Action/Helper/AutoComplete/Abstract.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Action_Helper_AutoComplete_Abstract extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/Cache.php b/library/Zend/Controller/Action/Helper/Cache.php index 34e89b6f..bdfef34e 100644 --- a/library/Zend/Controller/Action/Helper/Cache.php +++ b/library/Zend/Controller/Action/Helper/Cache.php @@ -35,6 +35,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_Cache extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/ContextSwitch.php b/library/Zend/Controller/Action/Helper/ContextSwitch.php index d9aebbe0..40c3b937 100644 --- a/library/Zend/Controller/Action/Helper/ContextSwitch.php +++ b/library/Zend/Controller/Action/Helper/ContextSwitch.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ContextSwitch extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/FlashMessenger.php b/library/Zend/Controller/Action/Helper/FlashMessenger.php index 85ae9b21..18e007c5 100644 --- a/library/Zend/Controller/Action/Helper/FlashMessenger.php +++ b/library/Zend/Controller/Action/Helper/FlashMessenger.php @@ -34,6 +34,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_FlashMessenger extends Zend_Controller_Action_Helper_Abstract implements IteratorAggregate, Countable { /** diff --git a/library/Zend/Controller/Action/Helper/Json.php b/library/Zend/Controller/Action/Helper/Json.php index 5b350196..e909de7a 100644 --- a/library/Zend/Controller/Action/Helper/Json.php +++ b/library/Zend/Controller/Action/Helper/Json.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_Json extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/Redirector.php b/library/Zend/Controller/Action/Helper/Redirector.php index 14729bec..3530738d 100644 --- a/library/Zend/Controller/Action/Helper/Redirector.php +++ b/library/Zend/Controller/Action/Helper/Redirector.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_Redirector extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/library/Zend/Controller/Action/Helper/Url.php b/library/Zend/Controller/Action/Helper/Url.php index f67c1913..5bf08feb 100644 --- a/library/Zend/Controller/Action/Helper/Url.php +++ b/library/Zend/Controller/Action/Helper/Url.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_Url extends Zend_Controller_Action_Helper_Abstract { /** @@ -37,7 +38,6 @@ class Zend_Controller_Action_Helper_Url extends Zend_Controller_Action_Helper_Ab * @param string $action * @param string $controller * @param string $module - * @param array $params * * @return string */ @@ -104,7 +104,6 @@ public function url($urlOptions = [], $name = null, $reset = false, $encode = tr * @param string $action * @param string $controller * @param string $module - * @param array $params * * @return string */ diff --git a/library/Zend/Controller/Action/Helper/ViewRenderer.php b/library/Zend/Controller/Action/Helper/ViewRenderer.php index b03742df..1f70dccf 100644 --- a/library/Zend/Controller/Action/Helper/ViewRenderer.php +++ b/library/Zend/Controller/Action/Helper/ViewRenderer.php @@ -66,6 +66,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ViewRenderer extends Zend_Controller_Action_Helper_Abstract { /** @@ -183,8 +184,6 @@ class Zend_Controller_Action_Helper_ViewRenderer extends Zend_Controller_Action_ * Constructor. * * Optionally set view object and options. - * - * @param Zend_View_Interface $view */ public function __construct(?Zend_View_Interface $view = null, array $options = []) { diff --git a/library/Zend/Controller/Action/HelperBroker.php b/library/Zend/Controller/Action/HelperBroker.php index 96e9ff26..adb7987c 100644 --- a/library/Zend/Controller/Action/HelperBroker.php +++ b/library/Zend/Controller/Action/HelperBroker.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_HelperBroker { /** diff --git a/library/Zend/Controller/Action/HelperBroker/PriorityStack.php b/library/Zend/Controller/Action/HelperBroker/PriorityStack.php index 649287e5..35ba5006 100644 --- a/library/Zend/Controller/Action/HelperBroker/PriorityStack.php +++ b/library/Zend/Controller/Action/HelperBroker/PriorityStack.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Action_HelperBroker_PriorityStack implements IteratorAggregate, ArrayAccess, Countable { protected $_helpersByPriority = []; @@ -133,72 +134,68 @@ public function offsetGet($priorityOrHelperName): mixed * * @param int $priority * @param Zend_Controller_Action_Helper_Abstract $helper - * - * @return Zend_Controller_Action_HelperBroker_PriorityStack */ #[ReturnTypeWillChange] - public function offsetSet($priority, $helper): Zend_Controller_Action_HelperBroker_PriorityStack - { - $priority = (int) $priority; + public function offsetSet($priority, $helper): Zend_Controller_Action_HelperBroker_PriorityStack + { + $priority = (int) $priority; - if (!$helper instanceof Zend_Controller_Action_Helper_Abstract) { - require_once 'Zend/Controller/Action/Exception.php'; + if (!$helper instanceof Zend_Controller_Action_Helper_Abstract) { + require_once 'Zend/Controller/Action/Exception.php'; - throw new Zend_Controller_Action_Exception('$helper must extend Zend_Controller_Action_Helper_Abstract.'); - } + throw new Zend_Controller_Action_Exception('$helper must extend Zend_Controller_Action_Helper_Abstract.'); + } - if (array_key_exists($helper->getName(), $this->_helpersByNameRef)) { - // remove any object with the same name to retain BC compailitbility - // @todo At ZF 2.0 time throw an exception here. - $this->offsetUnset($helper->getName()); - } + if (array_key_exists($helper->getName(), $this->_helpersByNameRef)) { + // remove any object with the same name to retain BC compailitbility + // @todo At ZF 2.0 time throw an exception here. + $this->offsetUnset($helper->getName()); + } - if (array_key_exists($priority, $this->_helpersByPriority)) { - $priority = $this->getNextFreeHigherPriority($priority); // ensures LIFO - trigger_error("A helper with the same priority already exists, reassigning to $priority", E_USER_WARNING); - } + if (array_key_exists($priority, $this->_helpersByPriority)) { + $priority = $this->getNextFreeHigherPriority($priority); // ensures LIFO + trigger_error("A helper with the same priority already exists, reassigning to $priority", E_USER_WARNING); + } - $this->_helpersByPriority[$priority] = $helper; - $this->_helpersByNameRef[$helper->getName()] = $helper; + $this->_helpersByPriority[$priority] = $helper; + $this->_helpersByNameRef[$helper->getName()] = $helper; - if ($priority == ($nextFreeDefault = $this->getNextFreeHigherPriority($this->_nextDefaultPriority))) { - $this->_nextDefaultPriority = $nextFreeDefault; - } + if ($priority == ($nextFreeDefault = $this->getNextFreeHigherPriority($this->_nextDefaultPriority))) { + $this->_nextDefaultPriority = $nextFreeDefault; + } - krsort($this->_helpersByPriority); // always make sure priority and LIFO are both enforced + krsort($this->_helpersByPriority); // always make sure priority and LIFO are both enforced - return $this; - } + return $this; + } /** * offsetUnset(). * * @param int|string $priorityOrHelperName Priority integer or the helper name - * - * @return Zend_Controller_Action_HelperBroker_PriorityStack */ #[ReturnTypeWillChange] - public function offsetUnset($priorityOrHelperName): Zend_Controller_Action_HelperBroker_PriorityStack - { - if (!$this->offsetExists($priorityOrHelperName)) { - require_once 'Zend/Controller/Action/Exception.php'; - - throw new Zend_Controller_Action_Exception('A helper with priority or name ' . $priorityOrHelperName . ' does not exist.'); - } - - if (is_string($priorityOrHelperName)) { - $helperName = $priorityOrHelperName; - $helper = $this->_helpersByNameRef[$helperName]; - $priority = array_search($helper, $this->_helpersByPriority, true); - } else { - $priority = $priorityOrHelperName; - $helperName = $this->_helpersByPriority[$priorityOrHelperName]->getName(); - } - - unset($this->_helpersByNameRef[$helperName], $this->_helpersByPriority[$priority]); - - return $this; - } + public function offsetUnset($priorityOrHelperName): Zend_Controller_Action_HelperBroker_PriorityStack + { + if (!$this->offsetExists($priorityOrHelperName)) { + require_once 'Zend/Controller/Action/Exception.php'; + + throw new Zend_Controller_Action_Exception('A helper with priority or name ' . $priorityOrHelperName . ' does not exist.'); + } + + if (is_string($priorityOrHelperName)) { + $helperName = $priorityOrHelperName; + $helper = $this->_helpersByNameRef[$helperName]; + $priority = array_search($helper, $this->_helpersByPriority, true); + } else { + $priority = $priorityOrHelperName; + $helperName = $this->_helpersByPriority[$priorityOrHelperName]->getName(); + } + + unset($this->_helpersByNameRef[$helperName], $this->_helpersByPriority[$priority]); + + return $this; + } /** * return the count of helpers. diff --git a/library/Zend/Controller/Dispatcher/Abstract.php b/library/Zend/Controller/Dispatcher/Abstract.php index a94456ad..6d4156b0 100644 --- a/library/Zend/Controller/Dispatcher/Abstract.php +++ b/library/Zend/Controller/Dispatcher/Abstract.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Dispatcher_Abstract implements Zend_Controller_Dispatcher_Interface { /** diff --git a/library/Zend/Controller/Dispatcher/Exception.php b/library/Zend/Controller/Dispatcher/Exception.php index 4dd773a6..366c9ac6 100644 --- a/library/Zend/Controller/Dispatcher/Exception.php +++ b/library/Zend/Controller/Dispatcher/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Dispatcher_Exception extends Zend_Controller_Exception { } diff --git a/library/Zend/Controller/Dispatcher/Standard.php b/library/Zend/Controller/Dispatcher/Standard.php index d153aff6..4c80b960 100644 --- a/library/Zend/Controller/Dispatcher/Standard.php +++ b/library/Zend/Controller/Dispatcher/Standard.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abstract { /** diff --git a/library/Zend/Controller/Exception.php b/library/Zend/Controller/Exception.php index 991e3370..c85fb9f3 100644 --- a/library/Zend/Controller/Exception.php +++ b/library/Zend/Controller/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Exception extends Zend_Exception { } diff --git a/library/Zend/Controller/Front.php b/library/Zend/Controller/Front.php index 528fe2e0..9e92807a 100644 --- a/library/Zend/Controller/Front.php +++ b/library/Zend/Controller/Front.php @@ -29,6 +29,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Front { /** diff --git a/library/Zend/Controller/Plugin/Abstract.php b/library/Zend/Controller/Plugin/Abstract.php index 7acfeda8..e038176a 100644 --- a/library/Zend/Controller/Plugin/Abstract.php +++ b/library/Zend/Controller/Plugin/Abstract.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Plugin_Abstract { /** diff --git a/library/Zend/Controller/Plugin/ActionStack.php b/library/Zend/Controller/Plugin/ActionStack.php index 9090d071..44098f07 100644 --- a/library/Zend/Controller/Plugin/ActionStack.php +++ b/library/Zend/Controller/Plugin/ActionStack.php @@ -30,6 +30,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract { /** @@ -67,7 +68,6 @@ class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract /** * Constructor. * - * @param Zend_Registry $registry * @param string $key */ public function __construct(?Zend_Registry $registry = null, $key = null) diff --git a/library/Zend/Controller/Plugin/Broker.php b/library/Zend/Controller/Plugin/Broker.php index af8821e7..caceaf0c 100644 --- a/library/Zend/Controller/Plugin/Broker.php +++ b/library/Zend/Controller/Plugin/Broker.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract { /** diff --git a/library/Zend/Controller/Plugin/ErrorHandler.php b/library/Zend/Controller/Plugin/ErrorHandler.php index 071c3cfc..2fabfb42 100644 --- a/library/Zend/Controller/Plugin/ErrorHandler.php +++ b/library/Zend/Controller/Plugin/ErrorHandler.php @@ -28,6 +28,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract { /** diff --git a/library/Zend/Controller/Plugin/PutHandler.php b/library/Zend/Controller/Plugin/PutHandler.php index 4877dab2..7347a073 100644 --- a/library/Zend/Controller/Plugin/PutHandler.php +++ b/library/Zend/Controller/Plugin/PutHandler.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_PutHandler extends Zend_Controller_Plugin_Abstract { /** diff --git a/library/Zend/Controller/Request/Abstract.php b/library/Zend/Controller/Request/Abstract.php index adee3bab..193867a5 100644 --- a/library/Zend/Controller/Request/Abstract.php +++ b/library/Zend/Controller/Request/Abstract.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Request_Abstract { /** diff --git a/library/Zend/Controller/Request/Apache404.php b/library/Zend/Controller/Request/Apache404.php index 0888e253..d68e7337 100644 --- a/library/Zend/Controller/Request/Apache404.php +++ b/library/Zend/Controller/Request/Apache404.php @@ -36,6 +36,7 @@ * * @uses Zend_Controller_Request_Http */ +#[AllowDynamicProperties] class Zend_Controller_Request_Apache404 extends Zend_Controller_Request_Http { public function setRequestUri($requestUri = null) diff --git a/library/Zend/Controller/Request/Exception.php b/library/Zend/Controller/Request/Exception.php index 73a60085..dc13a4da 100644 --- a/library/Zend/Controller/Request/Exception.php +++ b/library/Zend/Controller/Request/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Request_Exception extends Zend_Controller_Exception { } diff --git a/library/Zend/Controller/Request/Http.php b/library/Zend/Controller/Request/Http.php index e5193121..c4d39080 100644 --- a/library/Zend/Controller/Request/Http.php +++ b/library/Zend/Controller/Request/Http.php @@ -30,6 +30,7 @@ * * @uses Zend_Controller_Request_Abstract */ +#[AllowDynamicProperties] class Zend_Controller_Request_Http extends Zend_Controller_Request_Abstract { /** @@ -423,7 +424,7 @@ public function setRequestUri($requestUri = null) && $_SERVER['IIS_WasUrlRewritten'] == '1' && isset($_SERVER['UNENCODED_URL']) && $_SERVER['UNENCODED_URL'] != '' - ) { + ) { $requestUri = $_SERVER['UNENCODED_URL']; } elseif (isset($_SERVER['REQUEST_URI'])) { $requestUri = $_SERVER['REQUEST_URI']; diff --git a/library/Zend/Controller/Request/HttpTestCase.php b/library/Zend/Controller/Request/HttpTestCase.php index 2b716f39..11b6b4f6 100644 --- a/library/Zend/Controller/Request/HttpTestCase.php +++ b/library/Zend/Controller/Request/HttpTestCase.php @@ -29,6 +29,7 @@ * * @uses Zend_Controller_Request_Http */ +#[AllowDynamicProperties] class Zend_Controller_Request_HttpTestCase extends Zend_Controller_Request_Http { /** diff --git a/library/Zend/Controller/Request/Simple.php b/library/Zend/Controller/Request/Simple.php index c10d5539..e4562162 100644 --- a/library/Zend/Controller/Request/Simple.php +++ b/library/Zend/Controller/Request/Simple.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Request_Simple extends Zend_Controller_Request_Abstract { public function __construct($action = null, $controller = null, $module = null, array $params = []) diff --git a/library/Zend/Controller/Response/Abstract.php b/library/Zend/Controller/Response/Abstract.php index 444133ed..38abfa84 100644 --- a/library/Zend/Controller/Response/Abstract.php +++ b/library/Zend/Controller/Response/Abstract.php @@ -24,6 +24,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Response_Abstract { /** diff --git a/library/Zend/Controller/Response/Cli.php b/library/Zend/Controller/Response/Cli.php index 5d6185a7..c63f8d39 100644 --- a/library/Zend/Controller/Response/Cli.php +++ b/library/Zend/Controller/Response/Cli.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Response_Cli extends Zend_Controller_Response_Abstract { /** diff --git a/library/Zend/Controller/Response/Exception.php b/library/Zend/Controller/Response/Exception.php index 8c0956be..1059379b 100644 --- a/library/Zend/Controller/Response/Exception.php +++ b/library/Zend/Controller/Response/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Response_Exception extends Zend_Controller_Exception { } diff --git a/library/Zend/Controller/Response/Http.php b/library/Zend/Controller/Response/Http.php index 56da15e3..17f4c94e 100644 --- a/library/Zend/Controller/Response/Http.php +++ b/library/Zend/Controller/Response/Http.php @@ -27,6 +27,7 @@ * * @uses Zend_Controller_Response_Abstract */ +#[AllowDynamicProperties] class Zend_Controller_Response_Http extends Zend_Controller_Response_Abstract { } diff --git a/library/Zend/Controller/Response/HttpTestCase.php b/library/Zend/Controller/Response/HttpTestCase.php index f0966eaa..298e6b00 100644 --- a/library/Zend/Controller/Response/HttpTestCase.php +++ b/library/Zend/Controller/Response/HttpTestCase.php @@ -27,6 +27,7 @@ * * @uses Zend_Controller_Response_Http */ +#[AllowDynamicProperties] class Zend_Controller_Response_HttpTestCase extends Zend_Controller_Response_Http { /** diff --git a/library/Zend/Controller/Router/Abstract.php b/library/Zend/Controller/Router/Abstract.php index bf50a6bb..999d5c1b 100644 --- a/library/Zend/Controller/Router/Abstract.php +++ b/library/Zend/Controller/Router/Abstract.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Router_Abstract implements Zend_Controller_Router_Interface { /** diff --git a/library/Zend/Controller/Router/Exception.php b/library/Zend/Controller/Router/Exception.php index 3bb95ebf..8675697b 100644 --- a/library/Zend/Controller/Router/Exception.php +++ b/library/Zend/Controller/Router/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Router_Exception extends Zend_Controller_Exception { } diff --git a/library/Zend/Controller/Router/Rewrite.php b/library/Zend/Controller/Router/Rewrite.php index e61a8def..d1753c84 100644 --- a/library/Zend/Controller/Router/Rewrite.php +++ b/library/Zend/Controller/Router/Rewrite.php @@ -30,6 +30,7 @@ * * @see http://manuals.rubyonrails.com/read/chapter/65 */ +#[AllowDynamicProperties] class Zend_Controller_Router_Rewrite extends Zend_Controller_Router_Abstract { /** diff --git a/library/Zend/Controller/Router/Route.php b/library/Zend/Controller/Router/Route.php index bebfa7c2..16219df5 100644 --- a/library/Zend/Controller/Router/Route.php +++ b/library/Zend/Controller/Router/Route.php @@ -27,6 +27,7 @@ * * @see http://manuals.rubyonrails.com/read/chapter/65 */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route extends Zend_Controller_Router_Route_Abstract { /** @@ -481,8 +482,6 @@ public function getVariables() /** * Set a default translator. - * - * @param Zend_Translate $translator */ public static function setDefaultTranslator(?Zend_Translate $translator = null) { diff --git a/library/Zend/Controller/Router/Route/Abstract.php b/library/Zend/Controller/Router/Route/Abstract.php index 7676f758..c7549e2b 100644 --- a/library/Zend/Controller/Router/Route/Abstract.php +++ b/library/Zend/Controller/Router/Route/Abstract.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Controller_Router_Route_Abstract implements Zend_Controller_Router_Route_Interface { /** diff --git a/library/Zend/Controller/Router/Route/Chain.php b/library/Zend/Controller/Router/Route/Chain.php index c876ee24..b8728d31 100644 --- a/library/Zend/Controller/Router/Route/Chain.php +++ b/library/Zend/Controller/Router/Route/Chain.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_Chain extends Zend_Controller_Router_Route_Abstract { /** diff --git a/library/Zend/Controller/Router/Route/Hostname.php b/library/Zend/Controller/Router/Route/Hostname.php index 3e36b26c..e1b4b20a 100644 --- a/library/Zend/Controller/Router/Route/Hostname.php +++ b/library/Zend/Controller/Router/Route/Hostname.php @@ -27,6 +27,7 @@ * * @see http://manuals.rubyonrails.com/read/chapter/65 */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_Hostname extends Zend_Controller_Router_Route_Abstract { /** diff --git a/library/Zend/Controller/Router/Route/Module.php b/library/Zend/Controller/Router/Route/Module.php index a8577983..23076940 100644 --- a/library/Zend/Controller/Router/Route/Module.php +++ b/library/Zend/Controller/Router/Route/Module.php @@ -29,6 +29,7 @@ * * @see http://manuals.rubyonrails.com/read/chapter/65 */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_Abstract { /** diff --git a/library/Zend/Controller/Router/Route/Regex.php b/library/Zend/Controller/Router/Route/Regex.php index 5c32096f..11e78fd6 100644 --- a/library/Zend/Controller/Router/Route/Regex.php +++ b/library/Zend/Controller/Router/Route/Regex.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_Regex extends Zend_Controller_Router_Route_Abstract { /** @@ -81,10 +82,10 @@ public static function getInstance(Zend_Config $config) /** * Constructor. * - * @param $route * @param array $defaults * @param array $map * @param null $reverse + * @param mixed $route */ public function __construct($route, $defaults = [], $map = [], $reverse = null) { diff --git a/library/Zend/Controller/Router/Route/Static.php b/library/Zend/Controller/Router/Route/Static.php index dc2f859a..51af912b 100644 --- a/library/Zend/Controller/Router/Route/Static.php +++ b/library/Zend/Controller/Router/Route/Static.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_Static extends Zend_Controller_Router_Route_Abstract { /** diff --git a/library/Zend/Date.php b/library/Zend/Date.php index 90a4e019..c040dbdd 100644 --- a/library/Zend/Date.php +++ b/library/Zend/Date.php @@ -28,6 +28,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Date extends Zend_Date_DateObject { private $_locale; @@ -1453,7 +1454,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::WEEKDAY_SHORT: case self::WEEKDAY: case self::WEEKDAY_8601: @@ -1472,7 +1473,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::MONTH: case self::MONTH_SHORT: case self::MONTH_NAME: @@ -1483,7 +1484,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::YEAR: case self::YEAR_SHORT: case self::YEAR_8601: @@ -1493,7 +1494,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::HOUR: case self::HOUR_AM: case self::HOUR_SHORT: @@ -1503,7 +1504,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::MINUTE: case self::MINUTE_SHORT: if (isset($date['minute']) === true) { @@ -1511,7 +1512,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::SECOND: case self::SECOND_SHORT: if (isset($date['second']) === true) { @@ -1519,7 +1520,7 @@ private function _calculate($calc, $date, $part, $locale) } break; - // Fall through + // Fall through case self::TIMEZONE: case self::TIMEZONE_NAME: if (isset($date['timezone']) === true) { @@ -1579,18 +1580,17 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($hours, $minutes, $seconds, $months, $days, $years, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), $hour); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), $hour); } } // $date as object, part of foreign date as own date switch ($part) { - // day formats case self::DAY: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + intval($date), 1970, true), - $this->mktime(0, 0, 0, 1, 1 + intval($day), 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + intval($day), 1970, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1616,7 +1616,7 @@ private function _calculate($calc, $date, $part, $locale) // Weekday found if ($cnt < 7) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + $found, 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1629,7 +1629,7 @@ private function _calculate($calc, $date, $part, $locale) case self::DAY_SHORT: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + intval($date), 1970, true), - $this->mktime(0, 0, 0, 1, 1 + intval($day), 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + intval($day), 1970, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1655,7 +1655,7 @@ private function _calculate($calc, $date, $part, $locale) // Weekday found if ($cnt < 7) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + $found, 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1669,7 +1669,7 @@ private function _calculate($calc, $date, $part, $locale) $weekday = (int) $this->toString(self::WEEKDAY_8601, 'iso', $locale); if ((intval($date) > 0) and (intval($date) < 8)) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + intval($date), 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1690,7 +1690,7 @@ private function _calculate($calc, $date, $part, $locale) $weekday = (int) $this->toString(self::WEEKDAY_DIGIT, 'iso', $locale); if (is_numeric($date) and (intval($date) >= 0) and (intval($date) < 7)) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + $date, 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1709,7 +1709,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1, $date, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1734,7 +1734,7 @@ private function _calculate($calc, $date, $part, $locale) // Weekday found if ($cnt < 7) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + $found, 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1760,7 +1760,7 @@ private function _calculate($calc, $date, $part, $locale) // Weekday found if ($cnt < 7) { return $this->_assign($calc, $this->mktime(0, 0, 0, 1, 1 + $found, 1970, true), - $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); + $this->mktime(0, 0, 0, 1, 1 + $weekday, 1970, true), $hour); } // Weekday not found @@ -1770,13 +1770,13 @@ private function _calculate($calc, $date, $part, $locale) break; - // week formats + // week formats case self::WEEK: if (is_numeric($date)) { $week = (int) $this->toString(self::WEEK, 'iso', $locale); return $this->_assign($calc, parent::mktime(0, 0, 0, 1, 1 + ($date * 7), 1970, true), - parent::mktime(0, 0, 0, 1, 1 + ($week * 7), 1970, true), $hour); + parent::mktime(0, 0, 0, 1, 1 + ($week * 7), 1970, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1785,7 +1785,7 @@ private function _calculate($calc, $date, $part, $locale) break; - // month formats + // month formats case self::MONTH_NAME: $monthlist = Zend_Locale_Data::getList($locale, 'month'); $cnt = 0; @@ -1823,7 +1823,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $date, $day + $fixday, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } // Monthname not found @@ -1857,7 +1857,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $date, $day + $fixday, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1903,7 +1903,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $date, $day + $fixday, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } // Monthname not found @@ -1937,7 +1937,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $date, $day + $fixday, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } require_once 'Zend/Date/Exception.php'; @@ -1990,7 +1990,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $date, $day + $fixday, $year, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); + $this->mktime(0, 0, 0, $month, $day, $year, true), $hour); } // Monthname not found @@ -2000,7 +2000,7 @@ private function _calculate($calc, $date, $part, $locale) break; - // year formats + // year formats case self::LEAPYEAR: require_once 'Zend/Date/Exception.php'; @@ -2019,7 +2019,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $month, $day, intval($date), true), - $this->mktime(0, 0, 0, $month, $day, $year, true), false); + $this->mktime(0, 0, 0, $month, $day, $year, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2039,7 +2039,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $month, $day, intval($date), true), - $this->mktime(0, 0, 0, $month, $day, $year, true), false); + $this->mktime(0, 0, 0, $month, $day, $year, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2063,7 +2063,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $month, $day, $date, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), false); + $this->mktime(0, 0, 0, $month, $day, $year, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2087,7 +2087,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, $month, $day, $date, true), - $this->mktime(0, 0, 0, $month, $day, $year, true), false); + $this->mktime(0, 0, 0, $month, $day, $year, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2096,7 +2096,7 @@ private function _calculate($calc, $date, $part, $locale) break; - // time formats + // time formats case self::MERIDIEM: require_once 'Zend/Date/Exception.php'; @@ -2114,7 +2114,7 @@ private function _calculate($calc, $date, $part, $locale) $seconds = floor($rest * 86400 / 1000); return $this->_assign($calc, $this->mktime($hours, $minutes, $seconds, 1, 1, 1970, true), - $this->mktime($hour, $minute, $second, 1, 1, 1970, true), false); + $this->mktime($hour, $minute, $second, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2126,7 +2126,7 @@ private function _calculate($calc, $date, $part, $locale) case self::HOUR_SHORT_AM: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(intval($date), 0, 0, 1, 1, 1970, true), - $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); + $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2138,7 +2138,7 @@ private function _calculate($calc, $date, $part, $locale) case self::HOUR_SHORT: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(intval($date), 0, 0, 1, 1, 1970, true), - $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); + $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2150,7 +2150,7 @@ private function _calculate($calc, $date, $part, $locale) case self::HOUR_AM: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(intval($date), 0, 0, 1, 1, 1970, true), - $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); + $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2162,7 +2162,7 @@ private function _calculate($calc, $date, $part, $locale) case self::HOUR: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(intval($date), 0, 0, 1, 1, 1970, true), - $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); + $this->mktime($hour, 0, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2174,7 +2174,7 @@ private function _calculate($calc, $date, $part, $locale) case self::MINUTE: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, intval($date), 0, 1, 1, 1970, true), - $this->mktime(0, $minute, 0, 1, 1, 1970, true), false); + $this->mktime(0, $minute, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2186,7 +2186,7 @@ private function _calculate($calc, $date, $part, $locale) case self::SECOND: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, 0, intval($date), 1, 1, 1970, true), - $this->mktime(0, 0, $second, 1, 1, 1970, true), false); + $this->mktime(0, 0, $second, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2224,7 +2224,7 @@ private function _calculate($calc, $date, $part, $locale) case self::MINUTE_SHORT: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, intval($date), 0, 1, 1, 1970, true), - $this->mktime(0, $minute, 0, 1, 1, 1970, true), false); + $this->mktime(0, $minute, 0, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2236,7 +2236,7 @@ private function _calculate($calc, $date, $part, $locale) case self::SECOND_SHORT: if (is_numeric($date)) { return $this->_assign($calc, $this->mktime(0, 0, intval($date), 1, 1, 1970, true), - $this->mktime(0, 0, $second, 1, 1, 1970, true), false); + $this->mktime(0, 0, $second, 1, 1, 1970, true), false); } require_once 'Zend/Date/Exception.php'; @@ -2245,8 +2245,8 @@ private function _calculate($calc, $date, $part, $locale) break; - // timezone formats - // break intentionally omitted + // timezone formats + // break intentionally omitted case self::TIMEZONE_NAME: case self::TIMEZONE: case self::TIMEZONE_SECS: @@ -2271,7 +2271,7 @@ private function _calculate($calc, $date, $part, $locale) break; - // date strings + // date strings case self::ISO_8601: // (-)YYYY-MM-dd preg_match('/^(-{0,1}\d{4})-(\d{2})-(\d{2})/', $date, $datematch); @@ -2291,9 +2291,9 @@ private function _calculate($calc, $date, $part, $locale) if (!empty($datematch)) { $dateMatchCharCount = iconv_strlen($datematch[0], 'UTF-8'); $tmpdate = iconv_substr($date, - $dateMatchCharCount, - iconv_strlen($date, 'UTF-8') - $dateMatchCharCount, - 'UTF-8'); + $dateMatchCharCount, + iconv_strlen($date, 'UTF-8') - $dateMatchCharCount, + 'UTF-8'); } // (T)hh:mm:ss preg_match('/[T,\s]{0,1}(\d{2}):(\d{2}):(\d{2})/', $tmpdate, $timematch); @@ -2317,9 +2317,9 @@ private function _calculate($calc, $date, $part, $locale) if (!empty($timematch)) { $timeMatchCharCount = iconv_strlen($timematch[0], 'UTF-8'); $tmpdate = iconv_substr($tmpdate, - $timeMatchCharCount, - iconv_strlen($tmpdate, 'UTF-8') - $timeMatchCharCount, - 'UTF-8'); + $timeMatchCharCount, + iconv_strlen($tmpdate, 'UTF-8') - $timeMatchCharCount, + 'UTF-8'); } if (empty($datematch)) { $datematch[1] = 1970; @@ -2347,14 +2347,14 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($timematch[1], $timematch[2], $timematch[3], 1 + $datematch[2], 1 + $datematch[3], 1970 + $datematch[1], false), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); break; case self::RFC_2822: - $result = preg_match('/^\w{3},\s(\d{1,2})\s(\w{3})\s(\d{4})\s' - . '(\d{2}):(\d{2}):{0,1}(\d{0,2})\s([+-]' - . '{1}\d{4}|\w{1,20})$/', $date, $match); + $result = preg_match('/^\w{3},\s(\d{1,2})\s(\w{3})\s(\d{4})\s' + . '(\d{2}):(\d{2}):{0,1}(\d{0,2})\s([+-]' + . '{1}\d{4}|\w{1,20})$/', $date, $match); if (!$result) { require_once 'Zend/Date/Exception.php'; @@ -2374,7 +2374,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], false), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); break; @@ -2389,8 +2389,8 @@ private function _calculate($calc, $date, $part, $locale) break; - // additional formats - // break intentionally omitted + // additional formats + // break intentionally omitted case self::ERA: case self::ERA_NAME: require_once 'Zend/Date/Exception.php'; @@ -2413,7 +2413,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2437,7 +2437,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2461,7 +2461,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2485,7 +2485,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2511,7 +2511,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime(0, 0, 0, 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime(0, 0, 0, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2530,7 +2530,7 @@ private function _calculate($calc, $date, $part, $locale) $parsed = Zend_Locale_Format::getTime($date, ['locale' => $locale, 'format_type' => 'iso', 'fix_date' => true]); return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $month, $day, $year, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2554,7 +2554,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $month, $day, $year, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2574,7 +2574,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $month, $day, $year, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2594,7 +2594,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $month, $day, $year, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2618,7 +2618,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], $month, $day, $year, true), - $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); + $this->mktime($hour, $minute, $second, $month, $day, $year, true), false); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2640,7 +2640,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2668,7 +2668,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2692,7 +2692,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2715,7 +2715,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2745,7 +2745,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], 1 + $parsed['month'], 1 + $parsed['day'], 1970 + $parsed['year'], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), $hour); } catch (Zend_Locale_Exception $e) { require_once 'Zend/Date/Exception.php'; @@ -2754,7 +2754,7 @@ private function _calculate($calc, $date, $part, $locale) break; - // ATOM and RFC_3339 are identical + // ATOM and RFC_3339 are identical case self::ATOM: case self::RFC_3339: $result = preg_match('/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\d{0,4}([+-]{1}\d{2}:\d{2}|Z)$/', $date, $match); @@ -2774,7 +2774,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $match[2], 1 + $match[3], 1970 + $match[1], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -2787,9 +2787,9 @@ private function _calculate($calc, $date, $part, $locale) } $matchStartPos = iconv_strpos($match[0], ' ', 0, 'UTF-8') + 1; $match[0] = iconv_substr($match[0], - $matchStartPos, - iconv_strlen($match[0], 'UTF-8') - $matchStartPos, - 'UTF-8'); + $matchStartPos, + iconv_strlen($match[0], 'UTF-8') - $matchStartPos, + 'UTF-8'); $months = $this->_getDigitFromName($match[2]); $match[3] = self::getFullYear($match[3]); @@ -2804,7 +2804,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -2831,7 +2831,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], false), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, false), false); break; @@ -2856,7 +2856,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -2880,7 +2880,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -2905,7 +2905,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $months, 1 + $match[1], 1970 + $match[3], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -2927,7 +2927,7 @@ private function _calculate($calc, $date, $part, $locale) } return $this->_assign($calc, $this->mktime($match[4], $match[5], $match[6], 1 + $match[2], 1 + $match[3], 1970 + $match[1], true), - $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); + $this->mktime($hour, $minute, $second, 1 + $month, 1 + $day, 1970 + $year, true), false); break; @@ -4164,7 +4164,7 @@ private function _day($calc, $day, $locale) } else { switch (iconv_strlen($day, 'UTF-8')) { case 1 : - $type = self::WEEKDAY_NARROW; + $type = self::WEEKDAY_NARROW; break; case 2: @@ -4316,7 +4316,7 @@ private function _weekday($calc, $weekday, $locale) } else { switch (iconv_strlen($weekday, 'UTF-8')) { case 1: - $type = self::WEEKDAY_NARROW; + $type = self::WEEKDAY_NARROW; break; case 2: @@ -5178,7 +5178,7 @@ public static function isDate($date, $format = null, $locale = null) $date = new self($parsed, null, $locale); $timestamp = $date->mktime($parsed['hour'], $parsed['minute'], $parsed['second'], - $parsed['month'], $parsed['day'], $parsed['year']); + $parsed['month'], $parsed['day'], $parsed['year']); if ($parsed['year'] != $date->date('Y', $timestamp)) { // Given year differs from parsed year diff --git a/library/Zend/Date/Cities.php b/library/Zend/Date/Cities.php index 16dc84d6..7974c8c2 100644 --- a/library/Zend/Date/Cities.php +++ b/library/Zend/Date/Cities.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Date_Cities { /** diff --git a/library/Zend/Date/DateObject.php b/library/Zend/Date/DateObject.php index 0815514d..5219b68d 100644 --- a/library/Zend/Date/DateObject.php +++ b/library/Zend/Date/DateObject.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Date_DateObject { /** @@ -193,7 +194,6 @@ protected function mktime($hour, $minute, $second, $month, $day, $year, $gmt = f $date = 0; if ($year >= 1970) { - // Date is after UNIX epoch // go through leapyears // add months from latest given year @@ -217,7 +217,6 @@ protected function mktime($hour, $minute, $second, $month, $day, $year, $gmt = f $date += $day - 1; $date = (($date * 86400) + ($hour * 3600) + ($minute * 60) + $second); } else { - // Date is before UNIX epoch // go through leapyears // add months from latest given year @@ -556,10 +555,10 @@ protected function date($format, $timestamp = null, $gmt = false) case 'e': // timezone identifier if ($gmt === true) { $output .= gmdate('e', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } else { $output .= date('e', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } break; @@ -567,10 +566,10 @@ protected function date($format, $timestamp = null, $gmt = false) case 'I': // daylight saving time or not if ($gmt === true) { $output .= gmdate('I', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } else { $output .= date('I', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } break; @@ -591,10 +590,10 @@ protected function date($format, $timestamp = null, $gmt = false) case 'T': // timezone settings if ($gmt === true) { $output .= gmdate('T', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } else { $output .= date('T', mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], 2000)); + $date['mon'], $date['mday'], 2000)); } break; @@ -803,7 +802,6 @@ protected function getDateParts($timestamp = null, $fast = null) $timestamp += ($numday - $numberdays + 1) * 86400; $hours = floor($timestamp / 3600); } else { - // iterate through years for ($i = 1970; ; ++$i) { $day = $timestamp; @@ -960,11 +958,11 @@ protected function calcSun($location, $horizon, $rise = false) if (abs($this->_unixTimestamp) <= 0x7FFFFFFF) { if ($rise === false) { return date_sunset($this->_unixTimestamp, SUNFUNCS_RET_TIMESTAMP, $location['latitude'], - $location['longitude'], 90 + $horizon, $this->getGmtOffset() / 3600); + $location['longitude'], 90 + $horizon, $this->getGmtOffset() / 3600); } return date_sunrise($this->_unixTimestamp, SUNFUNCS_RET_TIMESTAMP, $location['latitude'], - $location['longitude'], 90 + $horizon, $this->getGmtOffset() / 3600); + $location['longitude'], 90 + $horizon, $this->getGmtOffset() / 3600); } // self calculation - timestamp bigger than 32bit @@ -1043,8 +1041,8 @@ protected function calcSun($location, $horizon, $rise = false) $sec = intval($universalTime); return $this->mktime($hour, $min, $sec, $this->date('m', $this->_unixTimestamp), - $this->date('j', $this->_unixTimestamp), $this->date('Y', $this->_unixTimestamp), - -1); + $this->date('j', $this->_unixTimestamp), $this->date('Y', $this->_unixTimestamp), + -1); } /** @@ -1114,9 +1112,9 @@ public function getGmtOffset() $result = @date_default_timezone_set($this->_timezone); if ($result === true) { $offset = $this->mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], $date['year'], false) + $date['mon'], $date['mday'], $date['year'], false) - $this->mktime($date['hours'], $date['minutes'], $date['seconds'], - $date['mon'], $date['mday'], $date['year'], true); + $date['mon'], $date['mday'], $date['year'], true); } date_default_timezone_set($zone); diff --git a/library/Zend/Date/Exception.php b/library/Zend/Date/Exception.php index 1d2dda5b..19034c4e 100644 --- a/library/Zend/Date/Exception.php +++ b/library/Zend/Date/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Date_Exception extends Zend_Exception { protected $operand; diff --git a/library/Zend/Exception.php b/library/Zend/Exception.php index ccbdb1ea..e6a245c9 100644 --- a/library/Zend/Exception.php +++ b/library/Zend/Exception.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Exception extends Exception { private ?\Exception $_previous = null; @@ -29,7 +30,6 @@ class Zend_Exception extends Exception * * @param string $msg * @param int $code - * @param Exception $previous */ public function __construct($msg = '', $code = 0, ?Exception $previous = null) { diff --git a/library/Zend/File/ClassFileLocator.php b/library/Zend/File/ClassFileLocator.php index 0b99d9bb..46feddc2 100644 --- a/library/Zend/File/ClassFileLocator.php +++ b/library/Zend/File/ClassFileLocator.php @@ -21,6 +21,7 @@ * * @license New BSD {@link http://framework.zend.com/license/new-bsd} */ +#[AllowDynamicProperties] class Zend_File_ClassFileLocator extends FilterIterator { /** @@ -158,6 +159,7 @@ public function accept(): bool if (!empty($classes)) { return true; } + // No class-type tokens found; return false return false; } diff --git a/library/Zend/File/PhpClassFile.php b/library/Zend/File/PhpClassFile.php index 4cb8c03b..32875931 100644 --- a/library/Zend/File/PhpClassFile.php +++ b/library/Zend/File/PhpClassFile.php @@ -20,6 +20,7 @@ * * @license New BSD {@link http://framework.zend.com/license/new-bsd} */ +#[AllowDynamicProperties] class Zend_File_PhpClassFile extends SplFileInfo { /** diff --git a/library/Zend/File/Transfer.php b/library/Zend/File/Transfer.php index 9b5a421e..a78bc380 100644 --- a/library/Zend/File/Transfer.php +++ b/library/Zend/File/Transfer.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_File_Transfer { /** diff --git a/library/Zend/File/Transfer/Adapter/Abstract.php b/library/Zend/File/Transfer/Adapter/Abstract.php index 802bb237..e532d449 100644 --- a/library/Zend/File/Transfer/Adapter/Abstract.php +++ b/library/Zend/File/Transfer/Adapter/Abstract.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_File_Transfer_Adapter_Abstract { /**@+ diff --git a/library/Zend/File/Transfer/Adapter/Http.php b/library/Zend/File/Transfer/Adapter/Http.php index 11b7a805..db43f646 100644 --- a/library/Zend/File/Transfer/Adapter/Http.php +++ b/library/Zend/File/Transfer/Adapter/Http.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_File_Transfer_Adapter_Http extends Zend_File_Transfer_Adapter_Abstract { protected static $_callbackApc = 'apc_fetch'; diff --git a/library/Zend/File/Transfer/Exception.php b/library/Zend/File/Transfer/Exception.php index 7e942cbf..8aa0d640 100644 --- a/library/Zend/File/Transfer/Exception.php +++ b/library/Zend/File/Transfer/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_File_Transfer_Exception extends Zend_Exception { protected $_fileerror; diff --git a/library/Zend/Filter.php b/library/Zend/Filter.php index 8c3c61c8..911589ea 100644 --- a/library/Zend/Filter.php +++ b/library/Zend/Filter.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter implements Zend_Filter_Interface { public const CHAIN_APPEND = 'append'; diff --git a/library/Zend/Filter/Alnum.php b/library/Zend/Filter/Alnum.php index 0bea1553..754291c4 100644 --- a/library/Zend/Filter/Alnum.php +++ b/library/Zend/Filter/Alnum.php @@ -29,6 +29,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Alnum implements Zend_Filter_Interface { /** @@ -86,8 +87,8 @@ public function __construct($allowWhiteSpace = false) if (null === self::$_meansEnglishAlphabet) { $this->_locale = new Zend_Locale('auto'); self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), - ['ja', 'ko', 'zh'] - ); + ['ja', 'ko', 'zh'] + ); } } diff --git a/library/Zend/Filter/Alpha.php b/library/Zend/Filter/Alpha.php index 636dff48..c2445021 100644 --- a/library/Zend/Filter/Alpha.php +++ b/library/Zend/Filter/Alpha.php @@ -29,6 +29,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Alpha implements Zend_Filter_Interface { /** @@ -86,8 +87,8 @@ public function __construct($allowWhiteSpace = false) if (null === self::$_meansEnglishAlphabet) { $this->_locale = new Zend_Locale('auto'); self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), - ['ja', 'ko', 'zh'] - ); + ['ja', 'ko', 'zh'] + ); } } diff --git a/library/Zend/Filter/BaseName.php b/library/Zend/Filter/BaseName.php index 13e01704..996a966b 100644 --- a/library/Zend/Filter/BaseName.php +++ b/library/Zend/Filter/BaseName.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_BaseName implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Boolean.php b/library/Zend/Filter/Boolean.php index b8e1e05b..4601ff5b 100644 --- a/library/Zend/Filter/Boolean.php +++ b/library/Zend/Filter/Boolean.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Boolean implements Zend_Filter_Interface { public const BOOLEAN = 1; diff --git a/library/Zend/Filter/Callback.php b/library/Zend/Filter/Callback.php index 65988acd..a309db3d 100644 --- a/library/Zend/Filter/Callback.php +++ b/library/Zend/Filter/Callback.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Callback implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Compress.php b/library/Zend/Filter/Compress.php index 49fdfe1e..9ef30ccd 100644 --- a/library/Zend/Filter/Compress.php +++ b/library/Zend/Filter/Compress.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Compress/Bz2.php b/library/Zend/Filter/Compress/Bz2.php index 9cbbf6bb..d159137b 100644 --- a/library/Zend/Filter/Compress/Bz2.php +++ b/library/Zend/Filter/Compress/Bz2.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Bz2 extends Zend_Filter_Compress_CompressAbstract { /** diff --git a/library/Zend/Filter/Compress/CompressAbstract.php b/library/Zend/Filter/Compress/CompressAbstract.php index b429d4ee..9f3dc342 100644 --- a/library/Zend/Filter/Compress/CompressAbstract.php +++ b/library/Zend/Filter/Compress/CompressAbstract.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Filter_Compress_CompressAbstract implements Zend_Filter_Compress_CompressInterface { /** diff --git a/library/Zend/Filter/Compress/Gz.php b/library/Zend/Filter/Compress/Gz.php index f422a360..fa042640 100644 --- a/library/Zend/Filter/Compress/Gz.php +++ b/library/Zend/Filter/Compress/Gz.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Gz extends Zend_Filter_Compress_CompressAbstract { /** diff --git a/library/Zend/Filter/Compress/Lzf.php b/library/Zend/Filter/Compress/Lzf.php index 71a1f104..c3ee8466 100644 --- a/library/Zend/Filter/Compress/Lzf.php +++ b/library/Zend/Filter/Compress/Lzf.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Lzf implements Zend_Filter_Compress_CompressInterface { /** diff --git a/library/Zend/Filter/Compress/Rar.php b/library/Zend/Filter/Compress/Rar.php index e3d2b530..cfb8d34c 100644 --- a/library/Zend/Filter/Compress/Rar.php +++ b/library/Zend/Filter/Compress/Rar.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Rar extends Zend_Filter_Compress_CompressAbstract { /** diff --git a/library/Zend/Filter/Compress/Tar.php b/library/Zend/Filter/Compress/Tar.php index dbf70cce..7add64d9 100644 --- a/library/Zend/Filter/Compress/Tar.php +++ b/library/Zend/Filter/Compress/Tar.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Tar extends Zend_Filter_Compress_CompressAbstract { /** @@ -187,9 +188,9 @@ public function compress($content) if (is_dir($content)) { // collect all file infos foreach (new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($content, RecursiveDirectoryIterator::KEY_AS_PATHNAME), - RecursiveIteratorIterator::SELF_FIRST - ) as $directory => $info + new RecursiveDirectoryIterator($content, RecursiveDirectoryIterator::KEY_AS_PATHNAME), + RecursiveIteratorIterator::SELF_FIRST + ) as $directory => $info ) { if ($info->isFile()) { $file[] = $directory; diff --git a/library/Zend/Filter/Compress/Zip.php b/library/Zend/Filter/Compress/Zip.php index d9184f2e..07824145 100644 --- a/library/Zend/Filter/Compress/Zip.php +++ b/library/Zend/Filter/Compress/Zip.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Zip extends Zend_Filter_Compress_CompressAbstract { /** @@ -250,13 +251,13 @@ public function decompress($content) if (($currName[0] == '/') || (substr($currName, 0, 2) == '..') || (substr($currName, 0, 4) == './..') - ) { + ) { require_once 'Zend/Filter/Exception.php'; throw new Zend_Filter_Exception('Upward directory traversal was detected inside ' . $archive . ' please use PHP 5.2.8 or greater to take advantage of path resolution features of ' . 'the zip extension in this decompress() method.' - ); + ); } } } diff --git a/library/Zend/Filter/Decompress.php b/library/Zend/Filter/Decompress.php index 96ec4959..f14e1488 100644 --- a/library/Zend/Filter/Decompress.php +++ b/library/Zend/Filter/Decompress.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Decompress extends Zend_Filter_Compress { /** diff --git a/library/Zend/Filter/Digits.php b/library/Zend/Filter/Digits.php index 51762544..db8b5dbf 100644 --- a/library/Zend/Filter/Digits.php +++ b/library/Zend/Filter/Digits.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Digits implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Dir.php b/library/Zend/Filter/Dir.php index e765f48e..eaf6cfd5 100644 --- a/library/Zend/Filter/Dir.php +++ b/library/Zend/Filter/Dir.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Dir implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Exception.php b/library/Zend/Filter/Exception.php index 19134780..2b7c357b 100644 --- a/library/Zend/Filter/Exception.php +++ b/library/Zend/Filter/Exception.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Exception extends Zend_Exception { } diff --git a/library/Zend/Filter/File/LowerCase.php b/library/Zend/Filter/File/LowerCase.php index 7d379533..45a30ec4 100644 --- a/library/Zend/Filter/File/LowerCase.php +++ b/library/Zend/Filter/File/LowerCase.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_File_LowerCase extends Zend_Filter_StringToLower { /** diff --git a/library/Zend/Filter/File/Rename.php b/library/Zend/Filter/File/Rename.php index 3aa113df..7d4897f3 100644 --- a/library/Zend/Filter/File/Rename.php +++ b/library/Zend/Filter/File/Rename.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_File_Rename implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/File/UpperCase.php b/library/Zend/Filter/File/UpperCase.php index 34cfc2a6..b64852fa 100644 --- a/library/Zend/Filter/File/UpperCase.php +++ b/library/Zend/Filter/File/UpperCase.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_File_UpperCase extends Zend_Filter_StringToUpper { /** diff --git a/library/Zend/Filter/HtmlEntities.php b/library/Zend/Filter/HtmlEntities.php index ac899d02..53c74422 100644 --- a/library/Zend/Filter/HtmlEntities.php +++ b/library/Zend/Filter/HtmlEntities.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_HtmlEntities implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Inflector.php b/library/Zend/Filter/Inflector.php index 0f1719af..cd409d51 100644 --- a/library/Zend/Filter/Inflector.php +++ b/library/Zend/Filter/Inflector.php @@ -33,6 +33,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Inflector implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Input.php b/library/Zend/Filter/Input.php index f9896486..faa70a2e 100644 --- a/library/Zend/Filter/Input.php +++ b/library/Zend/Filter/Input.php @@ -35,6 +35,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Input { public const ALLOW_EMPTY = 'allowEmpty'; @@ -562,8 +563,8 @@ public function setOptions(array $options) foreach ($value as $prefix) { $this->addValidatorPrefixPath( - $prefix, - str_replace('_', DIRECTORY_SEPARATOR, $prefix) + $prefix, + str_replace('_', DIRECTORY_SEPARATOR, $prefix) ); } @@ -575,8 +576,8 @@ public function setOptions(array $options) foreach ($value as $prefix) { $this->addFilterPrefixPath( - $prefix, - str_replace('_', DIRECTORY_SEPARATOR, $prefix) + $prefix, + str_replace('_', DIRECTORY_SEPARATOR, $prefix) ); } @@ -865,6 +866,7 @@ protected function _validate() foreach ($validatorRule as $rule) { if ($rule === 'NotEmpty') { $foundNotEmptyValidator = true; + // field may not be empty, we are ready break; } @@ -876,6 +878,7 @@ protected function _validate() $ruleClass = $rule[$classKey]; if ($ruleClass === 'NotEmpty') { $foundNotEmptyValidator = true; + // field may not be empty, we are ready break; } @@ -890,6 +893,7 @@ protected function _validate() if ($rule instanceof Zend_Validate_NotEmpty) { $foundNotEmptyValidator = true; + // field may not be empty, we are ready break; } @@ -1120,7 +1124,7 @@ protected function _validateRule(array $validatorRule) $this->_invalidMessages[$validatorRule[self::RULE]] = $collectedMessages; if (isset($this->_invalidErrors[$validatorRule[self::RULE]])) { $this->_invalidErrors[$validatorRule[self::RULE]] = array_merge($this->_invalidErrors[$validatorRule[self::RULE]], - $validatorChain->getErrors()); + $validatorChain->getErrors()); } else { $this->_invalidErrors[$validatorRule[self::RULE]] = $validatorChain->getErrors(); } diff --git a/library/Zend/Filter/Int.php b/library/Zend/Filter/Int.php index 263872e4..c05667a9 100644 --- a/library/Zend/Filter/Int.php +++ b/library/Zend/Filter/Int.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Int implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Null.php b/library/Zend/Filter/Null.php index 31962927..baeba00d 100644 --- a/library/Zend/Filter/Null.php +++ b/library/Zend/Filter/Null.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Null implements Zend_Filter_Interface { public const BOOLEAN = 1; diff --git a/library/Zend/Filter/PregReplace.php b/library/Zend/Filter/PregReplace.php index 7ac6cea8..8d00be09 100644 --- a/library/Zend/Filter/PregReplace.php +++ b/library/Zend/Filter/PregReplace.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_PregReplace implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/RealPath.php b/library/Zend/Filter/RealPath.php index d2ef6955..16183cd3 100644 --- a/library/Zend/Filter/RealPath.php +++ b/library/Zend/Filter/RealPath.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_RealPath implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/StringToLower.php b/library/Zend/Filter/StringToLower.php index b1f9c1f6..769f81fa 100644 --- a/library/Zend/Filter/StringToLower.php +++ b/library/Zend/Filter/StringToLower.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_StringToLower implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/StringToUpper.php b/library/Zend/Filter/StringToUpper.php index e51055c0..1a46da41 100644 --- a/library/Zend/Filter/StringToUpper.php +++ b/library/Zend/Filter/StringToUpper.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_StringToUpper implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/StringTrim.php b/library/Zend/Filter/StringTrim.php index c157dcab..cce43f5a 100644 --- a/library/Zend/Filter/StringTrim.php +++ b/library/Zend/Filter/StringTrim.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_StringTrim implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/StripNewlines.php b/library/Zend/Filter/StripNewlines.php index 5385035e..4f453185 100644 --- a/library/Zend/Filter/StripNewlines.php +++ b/library/Zend/Filter/StripNewlines.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_StripNewlines implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/StripTags.php b/library/Zend/Filter/StripTags.php index 523a6dc6..df9dbdf7 100644 --- a/library/Zend/Filter/StripTags.php +++ b/library/Zend/Filter/StripTags.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_StripTags implements Zend_Filter_Interface { /** diff --git a/library/Zend/Filter/Word/CamelCaseToDash.php b/library/Zend/Filter/Word/CamelCaseToDash.php index 160ac562..7345797e 100644 --- a/library/Zend/Filter/Word/CamelCaseToDash.php +++ b/library/Zend/Filter/Word/CamelCaseToDash.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToDash extends Zend_Filter_Word_CamelCaseToSeparator { /** diff --git a/library/Zend/Filter/Word/CamelCaseToSeparator.php b/library/Zend/Filter/Word/CamelCaseToSeparator.php index 864e9f1f..a490c7c4 100644 --- a/library/Zend/Filter/Word/CamelCaseToSeparator.php +++ b/library/Zend/Filter/Word/CamelCaseToSeparator.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToSeparator extends Zend_Filter_Word_Separator_Abstract { public function filter($value) diff --git a/library/Zend/Filter/Word/CamelCaseToUnderscore.php b/library/Zend/Filter/Word/CamelCaseToUnderscore.php index 027c18a5..bd4bd581 100644 --- a/library/Zend/Filter/Word/CamelCaseToUnderscore.php +++ b/library/Zend/Filter/Word/CamelCaseToUnderscore.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToUnderscore extends Zend_Filter_Word_CamelCaseToSeparator { /** diff --git a/library/Zend/Filter/Word/DashToCamelCase.php b/library/Zend/Filter/Word/DashToCamelCase.php index 88c27535..024e12a1 100644 --- a/library/Zend/Filter/Word/DashToCamelCase.php +++ b/library/Zend/Filter/Word/DashToCamelCase.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToCamelCase extends Zend_Filter_Word_SeparatorToCamelCase { /** diff --git a/library/Zend/Filter/Word/DashToSeparator.php b/library/Zend/Filter/Word/DashToSeparator.php index 2b64f9cb..5102978a 100644 --- a/library/Zend/Filter/Word/DashToSeparator.php +++ b/library/Zend/Filter/Word/DashToSeparator.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToSeparator extends Zend_Filter_Word_Separator_Abstract { public function filter($value) diff --git a/library/Zend/Filter/Word/DashToUnderscore.php b/library/Zend/Filter/Word/DashToUnderscore.php index 39ca020e..4a7091c0 100644 --- a/library/Zend/Filter/Word/DashToUnderscore.php +++ b/library/Zend/Filter/Word/DashToUnderscore.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToUnderscore extends Zend_Filter_Word_SeparatorToSeparator { /** diff --git a/library/Zend/Filter/Word/Separator/Abstract.php b/library/Zend/Filter/Word/Separator/Abstract.php index 126d3f3a..777be122 100644 --- a/library/Zend/Filter/Word/Separator/Abstract.php +++ b/library/Zend/Filter/Word/Separator/Abstract.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Filter_Word_Separator_Abstract extends Zend_Filter_PregReplace { protected $_separator; diff --git a/library/Zend/Filter/Word/SeparatorToCamelCase.php b/library/Zend/Filter/Word/SeparatorToCamelCase.php index 4e1d7617..f4de4ffc 100644 --- a/library/Zend/Filter/Word/SeparatorToCamelCase.php +++ b/library/Zend/Filter/Word/SeparatorToCamelCase.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToCamelCase extends Zend_Filter_Word_Separator_Abstract { public function filter($value) diff --git a/library/Zend/Filter/Word/SeparatorToDash.php b/library/Zend/Filter/Word/SeparatorToDash.php index 01a15af2..0eb381df 100644 --- a/library/Zend/Filter/Word/SeparatorToDash.php +++ b/library/Zend/Filter/Word/SeparatorToDash.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToDash extends Zend_Filter_Word_SeparatorToSeparator { /** diff --git a/library/Zend/Filter/Word/SeparatorToSeparator.php b/library/Zend/Filter/Word/SeparatorToSeparator.php index 3236b632..eb2be3f2 100644 --- a/library/Zend/Filter/Word/SeparatorToSeparator.php +++ b/library/Zend/Filter/Word/SeparatorToSeparator.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToSeparator extends Zend_Filter_PregReplace { protected $_searchSeparator; diff --git a/library/Zend/Filter/Word/UnderscoreToCamelCase.php b/library/Zend/Filter/Word/UnderscoreToCamelCase.php index 588e3483..edb88434 100644 --- a/library/Zend/Filter/Word/UnderscoreToCamelCase.php +++ b/library/Zend/Filter/Word/UnderscoreToCamelCase.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToCamelCase extends Zend_Filter_Word_SeparatorToCamelCase { /** diff --git a/library/Zend/Filter/Word/UnderscoreToDash.php b/library/Zend/Filter/Word/UnderscoreToDash.php index d69eada3..c661a3df 100644 --- a/library/Zend/Filter/Word/UnderscoreToDash.php +++ b/library/Zend/Filter/Word/UnderscoreToDash.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToDash extends Zend_Filter_Word_SeparatorToSeparator { /** diff --git a/library/Zend/Filter/Word/UnderscoreToSeparator.php b/library/Zend/Filter/Word/UnderscoreToSeparator.php index b86f6956..efc084c9 100644 --- a/library/Zend/Filter/Word/UnderscoreToSeparator.php +++ b/library/Zend/Filter/Word/UnderscoreToSeparator.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToSeparator extends Zend_Filter_Word_SeparatorToSeparator { /** diff --git a/library/Zend/Form.php b/library/Zend/Form.php index 32302e2a..145c7249 100644 --- a/library/Zend/Form.php +++ b/library/Zend/Form.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form implements Iterator, Countable, Zend_Validate_Interface { /**#@+ @@ -1465,7 +1466,7 @@ public function getValues($suppressArrayNotation = false) $merge[$key] = $subForm->getValues(); } else { $merge = $this->_attachToArray($subForm->getValues(true), - $subForm->getElementsBelongTo()); + $subForm->getElementsBelongTo()); } $values = $this->_array_replace_recursive($values, $merge); } @@ -2689,7 +2690,7 @@ public function getErrors($name = null, $suppressArrayNotation = false) $merge[$key] = $subForm->getErrors(); } else { $merge = $this->_attachToArray($subForm->getErrors(null, true), - $subForm->getElementsBelongTo()); + $subForm->getElementsBelongTo()); } $errors = $this->_array_replace_recursive($errors, $merge); } @@ -2754,7 +2755,7 @@ public function getMessages($name = null, $suppressArrayNotation = false) $merge = [$key => $merge]; } else { $merge = $this->_attachToArray($merge, - $subForm->getElementsBelongTo()); + $subForm->getElementsBelongTo()); } $messages = $this->_array_replace_recursive($messages, $merge); } @@ -2785,8 +2786,6 @@ public function getCustomMessages() /** * Set view object. * - * @param Zend_View_Interface $view - * * @return Zend_Form */ public function setView(?Zend_View_Interface $view = null) @@ -3107,8 +3106,6 @@ public function setSubFormDecorators(array $decorators) /** * Render form. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Decorator/Abstract.php b/library/Zend/Form/Decorator/Abstract.php index 2b2fc867..c5ae495f 100644 --- a/library/Zend/Form/Decorator/Abstract.php +++ b/library/Zend/Form/Decorator/Abstract.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] abstract class Zend_Form_Decorator_Abstract implements Zend_Form_Decorator_Interface { /** diff --git a/library/Zend/Form/Decorator/Callback.php b/library/Zend/Form/Decorator/Callback.php index a3680eb5..3a8f1cba 100644 --- a/library/Zend/Form/Decorator/Callback.php +++ b/library/Zend/Form/Decorator/Callback.php @@ -41,6 +41,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Callback extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Captcha.php b/library/Zend/Form/Decorator/Captcha.php index 667c2e94..88dd4008 100644 --- a/library/Zend/Form/Decorator/Captcha.php +++ b/library/Zend/Form/Decorator/Captcha.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Captcha extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Captcha/Word.php b/library/Zend/Form/Decorator/Captcha/Word.php index e0a95790..9f74a507 100644 --- a/library/Zend/Form/Decorator/Captcha/Word.php +++ b/library/Zend/Form/Decorator/Captcha/Word.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Captcha_Word extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Description.php b/library/Zend/Form/Decorator/Description.php index 7f66887a..387c60df 100644 --- a/library/Zend/Form/Decorator/Description.php +++ b/library/Zend/Form/Decorator/Description.php @@ -34,6 +34,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Description extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/DtDdWrapper.php b/library/Zend/Form/Decorator/DtDdWrapper.php index b425b3b0..eaae07b3 100644 --- a/library/Zend/Form/Decorator/DtDdWrapper.php +++ b/library/Zend/Form/Decorator/DtDdWrapper.php @@ -28,6 +28,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_DtDdWrapper extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Errors.php b/library/Zend/Form/Decorator/Errors.php index af4c2ee9..bbef0277 100644 --- a/library/Zend/Form/Decorator/Errors.php +++ b/library/Zend/Form/Decorator/Errors.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Errors extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Exception.php b/library/Zend/Form/Decorator/Exception.php index 16c8765e..98f3090f 100644 --- a/library/Zend/Form/Decorator/Exception.php +++ b/library/Zend/Form/Decorator/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Exception extends Zend_Form_Exception { } diff --git a/library/Zend/Form/Decorator/Fieldset.php b/library/Zend/Form/Decorator/Fieldset.php index b755d397..9778297d 100644 --- a/library/Zend/Form/Decorator/Fieldset.php +++ b/library/Zend/Form/Decorator/Fieldset.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Fieldset extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/File.php b/library/Zend/Form/Decorator/File.php index f9b8c2b4..df120fe0 100644 --- a/library/Zend/Form/Decorator/File.php +++ b/library/Zend/Form/Decorator/File.php @@ -33,6 +33,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_File extends Zend_Form_Decorator_Abstract implements Zend_Form_Decorator_Marker_File_Interface { /** diff --git a/library/Zend/Form/Decorator/Form.php b/library/Zend/Form/Decorator/Form.php index 27f8b6ba..d1898bda 100644 --- a/library/Zend/Form/Decorator/Form.php +++ b/library/Zend/Form/Decorator/Form.php @@ -34,6 +34,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Form extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/FormElements.php b/library/Zend/Form/Decorator/FormElements.php index 2254d897..84b34da5 100644 --- a/library/Zend/Form/Decorator/FormElements.php +++ b/library/Zend/Form/Decorator/FormElements.php @@ -32,6 +32,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FormElements extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/FormErrors.php b/library/Zend/Form/Decorator/FormErrors.php index 110cab4d..ca64e30f 100644 --- a/library/Zend/Form/Decorator/FormErrors.php +++ b/library/Zend/Form/Decorator/FormErrors.php @@ -29,6 +29,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FormErrors extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/HtmlTag.php b/library/Zend/Form/Decorator/HtmlTag.php index 1f5eee62..790d3430 100644 --- a/library/Zend/Form/Decorator/HtmlTag.php +++ b/library/Zend/Form/Decorator/HtmlTag.php @@ -40,6 +40,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_HtmlTag extends Zend_Form_Decorator_Abstract { /** @@ -157,7 +158,6 @@ public function getTag() * Get the formatted open tag. * * @param string $tag - * @param array $attribs * * @return string */ diff --git a/library/Zend/Form/Decorator/Image.php b/library/Zend/Form/Decorator/Image.php index d6d5f575..42f4e6ba 100644 --- a/library/Zend/Form/Decorator/Image.php +++ b/library/Zend/Form/Decorator/Image.php @@ -32,6 +32,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Image extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/Label.php b/library/Zend/Form/Decorator/Label.php index 9f3706be..585272ff 100644 --- a/library/Zend/Form/Decorator/Label.php +++ b/library/Zend/Form/Decorator/Label.php @@ -37,6 +37,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Label extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/PrepareElements.php b/library/Zend/Form/Decorator/PrepareElements.php index 920480ba..b16f1fbb 100644 --- a/library/Zend/Form/Decorator/PrepareElements.php +++ b/library/Zend/Form/Decorator/PrepareElements.php @@ -32,6 +32,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_PrepareElements extends Zend_Form_Decorator_FormElements { /** diff --git a/library/Zend/Form/Decorator/Tooltip.php b/library/Zend/Form/Decorator/Tooltip.php index c7284c80..eebfc996 100644 --- a/library/Zend/Form/Decorator/Tooltip.php +++ b/library/Zend/Form/Decorator/Tooltip.php @@ -27,6 +27,7 @@ * * @version $Id: Tooltip.php$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_Tooltip extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/ViewHelper.php b/library/Zend/Form/Decorator/ViewHelper.php index e6b86081..bc61a26a 100644 --- a/library/Zend/Form/Decorator/ViewHelper.php +++ b/library/Zend/Form/Decorator/ViewHelper.php @@ -35,6 +35,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ViewHelper extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/Decorator/ViewScript.php b/library/Zend/Form/Decorator/ViewScript.php index c71d77f9..7f957c97 100644 --- a/library/Zend/Form/Decorator/ViewScript.php +++ b/library/Zend/Form/Decorator/ViewScript.php @@ -43,6 +43,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ViewScript extends Zend_Form_Decorator_Abstract { /** diff --git a/library/Zend/Form/DisplayGroup.php b/library/Zend/Form/DisplayGroup.php index 95a27bdf..c52cb6ab 100644 --- a/library/Zend/Form/DisplayGroup.php +++ b/library/Zend/Form/DisplayGroup.php @@ -22,6 +22,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_DisplayGroup implements Iterator, Countable { /** @@ -919,8 +920,6 @@ public function clearDecorators() /** * Set view. * - * @param Zend_View_Interface $view - * * @return Zend_Form_DisplayGroup */ public function setView(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Element.php b/library/Zend/Form/Element.php index 4446ace4..b2d9083f 100644 --- a/library/Zend/Form/Element.php +++ b/library/Zend/Form/Element.php @@ -34,6 +34,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element implements Zend_Validate_Interface { /** @@ -1909,8 +1910,6 @@ public function clearFilters() /** * Set view object. * - * @param Zend_View_Interface $view - * * @return Zend_Form_Element */ public function setView(?Zend_View_Interface $view = null) @@ -2162,8 +2161,6 @@ public function clearDecorators() /** * Render form element. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Element/Button.php b/library/Zend/Form/Element/Button.php index 17375404..de89e853 100644 --- a/library/Zend/Form/Element/Button.php +++ b/library/Zend/Form/Element/Button.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Button extends Zend_Form_Element_Submit { /** diff --git a/library/Zend/Form/Element/Captcha.php b/library/Zend/Form/Element/Captcha.php index fd4622ab..bc3783f6 100644 --- a/library/Zend/Form/Element/Captcha.php +++ b/library/Zend/Form/Element/Captcha.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_Captcha extends Zend_Form_Element_Xhtml { /** @@ -152,8 +153,6 @@ public function setOptions(array $options) /** * Render form element. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Element/Checkbox.php b/library/Zend/Form/Element/Checkbox.php index 1071ba2d..cadf498e 100644 --- a/library/Zend/Form/Element/Checkbox.php +++ b/library/Zend/Form/Element/Checkbox.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Exception.php b/library/Zend/Form/Element/Exception.php index 9cd4fb22..40a21647 100644 --- a/library/Zend/Form/Element/Exception.php +++ b/library/Zend/Form/Element/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_Exception extends Zend_Form_Exception { } diff --git a/library/Zend/Form/Element/File.php b/library/Zend/Form/Element/File.php index b629f9d4..006df0a0 100644 --- a/library/Zend/Form/Element/File.php +++ b/library/Zend/Form/Element/File.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_File extends Zend_Form_Element_Xhtml { /** @@ -897,8 +898,6 @@ public function getMimeType() * Render form element * Checks for decorator interface to prevent errors. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Element/Hash.php b/library/Zend/Form/Element/Hash.php index 4bbffa9c..27d803da 100644 --- a/library/Zend/Form/Element/Hash.php +++ b/library/Zend/Form/Element/Hash.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml { /** @@ -229,8 +230,6 @@ public function initCsrfToken() /** * Render CSRF token in form. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Form/Element/Hidden.php b/library/Zend/Form/Element/Hidden.php index 9b341b26..f1e48a80 100644 --- a/library/Zend/Form/Element/Hidden.php +++ b/library/Zend/Form/Element/Hidden.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Hidden extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Image.php b/library/Zend/Form/Element/Image.php index 0e0a330a..d415b0ec 100644 --- a/library/Zend/Form/Element/Image.php +++ b/library/Zend/Form/Element/Image.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Multi.php b/library/Zend/Form/Element/Multi.php index 4477e172..858f3db2 100644 --- a/library/Zend/Form/Element/Multi.php +++ b/library/Zend/Form/Element/Multi.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] abstract class Zend_Form_Element_Multi extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/MultiCheckbox.php b/library/Zend/Form/Element/MultiCheckbox.php index d0453a93..aae1e2f8 100644 --- a/library/Zend/Form/Element/MultiCheckbox.php +++ b/library/Zend/Form/Element/MultiCheckbox.php @@ -29,6 +29,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_MultiCheckbox extends Zend_Form_Element_Multi { /** diff --git a/library/Zend/Form/Element/Multiselect.php b/library/Zend/Form/Element/Multiselect.php index 08f4fa7a..4e5f29cd 100644 --- a/library/Zend/Form/Element/Multiselect.php +++ b/library/Zend/Form/Element/Multiselect.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Multiselect extends Zend_Form_Element_Select { /** diff --git a/library/Zend/Form/Element/Note.php b/library/Zend/Form/Element/Note.php index f2197382..e3442cbf 100644 --- a/library/Zend/Form/Element/Note.php +++ b/library/Zend/Form/Element/Note.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Note extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Password.php b/library/Zend/Form/Element/Password.php index 8a8f8d30..d39bfbb8 100644 --- a/library/Zend/Form/Element/Password.php +++ b/library/Zend/Form/Element/Password.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Radio.php b/library/Zend/Form/Element/Radio.php index 1fb0d0d0..7fa26fdd 100644 --- a/library/Zend/Form/Element/Radio.php +++ b/library/Zend/Form/Element/Radio.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Radio extends Zend_Form_Element_Multi { /** diff --git a/library/Zend/Form/Element/Reset.php b/library/Zend/Form/Element/Reset.php index 72fde9b9..fa2cd618 100644 --- a/library/Zend/Form/Element/Reset.php +++ b/library/Zend/Form/Element/Reset.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Reset extends Zend_Form_Element_Submit { /** diff --git a/library/Zend/Form/Element/Select.php b/library/Zend/Form/Element/Select.php index 4e5c091f..a17a5167 100644 --- a/library/Zend/Form/Element/Select.php +++ b/library/Zend/Form/Element/Select.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Select extends Zend_Form_Element_Multi { /** diff --git a/library/Zend/Form/Element/Submit.php b/library/Zend/Form/Element/Submit.php index c4156cbb..102c756e 100644 --- a/library/Zend/Form/Element/Submit.php +++ b/library/Zend/Form/Element/Submit.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Text.php b/library/Zend/Form/Element/Text.php index ee5f3d8d..d22a5a49 100644 --- a/library/Zend/Form/Element/Text.php +++ b/library/Zend/Form/Element/Text.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Text extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Textarea.php b/library/Zend/Form/Element/Textarea.php index 77bf07bb..2489a5df 100644 --- a/library/Zend/Form/Element/Textarea.php +++ b/library/Zend/Form/Element/Textarea.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_Element_Textarea extends Zend_Form_Element_Xhtml { /** diff --git a/library/Zend/Form/Element/Xhtml.php b/library/Zend/Form/Element/Xhtml.php index 978ca77a..156824b5 100644 --- a/library/Zend/Form/Element/Xhtml.php +++ b/library/Zend/Form/Element/Xhtml.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] abstract class Zend_Form_Element_Xhtml extends Zend_Form_Element { } diff --git a/library/Zend/Form/Exception.php b/library/Zend/Form/Exception.php index ddb238b3..f028807b 100644 --- a/library/Zend/Form/Exception.php +++ b/library/Zend/Form/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Exception extends Zend_Exception { } diff --git a/library/Zend/Form/SubForm.php b/library/Zend/Form/SubForm.php index aa8ddb53..57df2832 100644 --- a/library/Zend/Form/SubForm.php +++ b/library/Zend/Form/SubForm.php @@ -25,6 +25,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Form_SubForm extends Zend_Form { /** diff --git a/library/Zend/Http/Client.php b/library/Zend/Http/Client.php index 578a13a0..dee25f40 100644 --- a/library/Zend/Http/Client.php +++ b/library/Zend/Http/Client.php @@ -58,6 +58,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client { /** @@ -710,8 +711,8 @@ public function setCookie($cookie, $value = null) $this->cookiejar->addCookie($cookie); } elseif (is_string($cookie) && $value !== null) { $cookie = Zend_Http_Cookie::fromString("{$cookie}={$value}", - $this->uri, - $this->config['encodecookies']); + $this->uri, + $this->config['encodecookies']); $this->cookiejar->addCookie($cookie); } } else { @@ -1011,7 +1012,7 @@ protected function _openTempStream() if (!is_string($this->_stream_name)) { // If name is not given, create temp name $this->_stream_name = tempnam($this->config['stream_tmp_dir'] ?? sys_get_temp_dir(), - \Zend_Http_Client::class); + \Zend_Http_Client::class); } if (false === ($fp = @fopen($this->_stream_name, 'w+b'))) { @@ -1146,7 +1147,6 @@ public function request($method = null) // If we got redirected, look for the Location header if ($response->isRedirect() && ($location = $response->getHeader('location'))) { - // Avoid problems with buggy servers that add whitespace at the // end of some headers (See ZF-11283) $location = trim($location); @@ -1165,7 +1165,6 @@ public function request($method = null) $this->setHeaders('host', null); $this->setUri($location); } else { - // Split into path and query and set the query if (strpos($location, '?') !== false) { [$location, $query] = explode('?', $location, 2); @@ -1178,7 +1177,7 @@ public function request($method = null) if (strpos($location, '/') === 0) { $this->uri->setPath($location); - // Else, assume we have a relative path + // Else, assume we have a relative path } else { // Get the current path directory, removing any trailing slashes $path = $this->uri->getPath(); @@ -1544,7 +1543,7 @@ public static function encodeAuthHeader($user, $password, $type = self::AUTH_BAS break; - //case self::AUTH_DIGEST: + //case self::AUTH_DIGEST: // @todo Implement digest authentication // break; @@ -1582,7 +1581,6 @@ protected static function _flattenParametersArray($parray, $prefix = null) $parameters = []; foreach ($parray as $name => $value) { - // Calculate array key if ($prefix) { if (is_int($name)) { diff --git a/library/Zend/Http/Client/Adapter/Curl.php b/library/Zend/Http/Client/Adapter/Curl.php index 03b428cd..8f99c877 100644 --- a/library/Zend/Http/Client/Adapter/Curl.php +++ b/library/Zend/Http/Client/Adapter/Curl.php @@ -38,6 +38,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Adapter_Curl implements Zend_Http_Client_Adapter_Interface, Zend_Http_Client_Adapter_Stream { /** diff --git a/library/Zend/Http/Client/Adapter/Exception.php b/library/Zend/Http/Client/Adapter/Exception.php index 8bf99ff9..1250d053 100644 --- a/library/Zend/Http/Client/Adapter/Exception.php +++ b/library/Zend/Http/Client/Adapter/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Adapter_Exception extends Zend_Http_Client_Exception { public const READ_TIMEOUT = 1000; diff --git a/library/Zend/Http/Client/Adapter/Proxy.php b/library/Zend/Http/Client/Adapter/Proxy.php index c836afe1..1d2dcfdd 100644 --- a/library/Zend/Http/Client/Adapter/Proxy.php +++ b/library/Zend/Http/Client/Adapter/Proxy.php @@ -42,6 +42,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Adapter_Proxy extends Zend_Http_Client_Adapter_Socket { /** diff --git a/library/Zend/Http/Client/Adapter/Socket.php b/library/Zend/Http/Client/Adapter/Socket.php index ae32c9a1..daffa580 100644 --- a/library/Zend/Http/Client/Adapter/Socket.php +++ b/library/Zend/Http/Client/Adapter/Socket.php @@ -37,6 +37,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Adapter_Socket implements Zend_Http_Client_Adapter_Interface, Zend_Http_Client_Adapter_Stream { /** @@ -199,7 +200,7 @@ public function connect($host, $port = 80, $secure = false) if ($secure || $this->config['sslusecontext']) { if ($this->config['sslcert'] !== null) { if (!stream_context_set_option($context, 'ssl', 'local_cert', - $this->config['sslcert'])) { + $this->config['sslcert'])) { require_once 'Zend/Http/Client/Adapter/Exception.php'; throw new Zend_Http_Client_Adapter_Exception('Unable to set sslcert option'); @@ -207,7 +208,7 @@ public function connect($host, $port = 80, $secure = false) } if ($this->config['sslpassphrase'] !== null) { if (!stream_context_set_option($context, 'ssl', 'passphrase', - $this->config['sslpassphrase'])) { + $this->config['sslpassphrase'])) { require_once 'Zend/Http/Client/Adapter/Exception.php'; throw new Zend_Http_Client_Adapter_Exception('Unable to set sslpassphrase option'); @@ -221,11 +222,11 @@ public function connect($host, $port = 80, $secure = false) } $this->socket = @stream_socket_client($host . ':' . $port, - $errno, - $errstr, - (int) $this->config['timeout'], - $flags, - $context); + $errno, + $errstr, + (int) $this->config['timeout'], + $flags, + $context); if (!$this->socket) { $this->close(); @@ -355,7 +356,6 @@ public function read() */ if ($statusCode == 304 || $statusCode == 204 || $this->method == Zend_Http_Client::HEAD) { - // Close the connection if requested to do so by the server if (isset($headers['connection']) && $headers['connection'] == 'close') { $this->close(); @@ -434,7 +434,6 @@ public function read() } // Else, if we got the content-length header, read this number of bytes } elseif (isset($headers['content-length'])) { - // If we got more than one Content-Length header (see ZF-9404) use // the last value sent if (is_array($headers['content-length'])) { @@ -447,8 +446,8 @@ public function read() $chunk = ''; for ($read_to = $current_pos + $contentLength; - $read_to > $current_pos; - $current_pos = ftell($this->socket)) { + $read_to > $current_pos; + $current_pos = ftell($this->socket)) { if ($this->out_stream) { if (@stream_copy_to_stream($this->socket, $this->out_stream, $read_to - $current_pos) == 0) { $this->_checkSocketReadTimeout(); diff --git a/library/Zend/Http/Client/Adapter/Test.php b/library/Zend/Http/Client/Adapter/Test.php index b8f3c94d..0f0c6a3e 100644 --- a/library/Zend/Http/Client/Adapter/Test.php +++ b/library/Zend/Http/Client/Adapter/Test.php @@ -40,6 +40,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Adapter_Test implements Zend_Http_Client_Adapter_Interface { /** diff --git a/library/Zend/Http/Client/Exception.php b/library/Zend/Http/Client/Exception.php index 6665b978..9fffb817 100644 --- a/library/Zend/Http/Client/Exception.php +++ b/library/Zend/Http/Client/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Client_Exception extends Zend_Http_Exception { } diff --git a/library/Zend/Http/Cookie.php b/library/Zend/Http/Cookie.php index 450cf7fd..742fc14a 100644 --- a/library/Zend/Http/Cookie.php +++ b/library/Zend/Http/Cookie.php @@ -37,6 +37,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Cookie { /** diff --git a/library/Zend/Http/CookieJar.php b/library/Zend/Http/CookieJar.php index dfd9557e..558e1650 100644 --- a/library/Zend/Http/CookieJar.php +++ b/library/Zend/Http/CookieJar.php @@ -50,6 +50,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_CookieJar implements Countable, IteratorAggregate { /** diff --git a/library/Zend/Http/Exception.php b/library/Zend/Http/Exception.php index a913fc71..2000c930 100644 --- a/library/Zend/Http/Exception.php +++ b/library/Zend/Http/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Exception extends Zend_Exception { } diff --git a/library/Zend/Http/Header/Exception/InvalidArgumentException.php b/library/Zend/Http/Header/Exception/InvalidArgumentException.php index fd2492cb..0857e0d6 100644 --- a/library/Zend/Http/Header/Exception/InvalidArgumentException.php +++ b/library/Zend/Http/Header/Exception/InvalidArgumentException.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Header_Exception_InvalidArgumentException extends Zend_Http_Exception { } diff --git a/library/Zend/Http/Header/Exception/RuntimeException.php b/library/Zend/Http/Header/Exception/RuntimeException.php index bc83e3cf..91e7c4be 100644 --- a/library/Zend/Http/Header/Exception/RuntimeException.php +++ b/library/Zend/Http/Header/Exception/RuntimeException.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Header_Exception_RuntimeException extends Zend_Http_Exception { } diff --git a/library/Zend/Http/Header/SetCookie.php b/library/Zend/Http/Header/SetCookie.php index 79b814ff..88832a69 100644 --- a/library/Zend/Http/Header/SetCookie.php +++ b/library/Zend/Http/Header/SetCookie.php @@ -43,6 +43,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Header_SetCookie { /** @@ -112,8 +113,8 @@ class Zend_Http_Header_SetCookie * * @static * - * @param $headerLine * @param bool $bypassHeaderFieldName + * @param mixed $headerLine * * @return array|SetCookie */ @@ -151,25 +152,25 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false) switch (str_replace(['-', '_'], '', strtolower($headerKey))) { case 'expires' : $header->setExpires($headerValue); -break; + break; case 'domain' : $header->setDomain($headerValue); -break; + break; case 'path' : $header->setPath($headerValue); -break; + break; case 'secure' : $header->setSecure(true); -break; + break; case 'httponly': $header->setHttponly(true); -break; + break; case 'version' : $header->setVersion((int) $headerValue); -break; + break; case 'maxage' : $header->setMaxAge((int) $headerValue); -break; + break; default: // Intentionally omitted } diff --git a/library/Zend/Http/Response.php b/library/Zend/Http/Response.php index bc94a841..b54040cc 100644 --- a/library/Zend/Http/Response.php +++ b/library/Zend/Http/Response.php @@ -30,6 +30,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Response { /** @@ -257,15 +258,14 @@ public function getBody() // Decode the body if it was transfer-encoded switch (strtolower($this->getHeader('transfer-encoding') ?? '')) { - // Handle chunked body case 'chunked': $body = self::decodeChunkedBody($this->body); break; - // No transfer encoding, or unknown encoding extension: - // return body as is + // No transfer encoding, or unknown encoding extension: + // return body as is default: $body = $this->body; @@ -274,14 +274,13 @@ public function getBody() // Decode any content-encoding (gzip or deflate) if needed switch (strtolower($this->getHeader('content-encoding') ?? '')) { - // Handle gzip encoding case 'gzip': $body = self::decodeGzip($body); break; - // Handle deflate encoding + // Handle deflate encoding case 'deflate': $body = self::decodeDeflate($body); diff --git a/library/Zend/Http/Response/Stream.php b/library/Zend/Http/Response/Stream.php index 4455ade6..47b60678 100755 --- a/library/Zend/Http/Response/Stream.php +++ b/library/Zend/Http/Response/Stream.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_Response_Stream extends Zend_Http_Response { /** diff --git a/library/Zend/Http/UserAgent.php b/library/Zend/Http/UserAgent.php index 7d94d9d2..5ce65ee3 100644 --- a/library/Zend/Http/UserAgent.php +++ b/library/Zend/Http/UserAgent.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent implements Serializable { /** diff --git a/library/Zend/Http/UserAgent/AbstractDevice.php b/library/Zend/Http/UserAgent/AbstractDevice.php index a94ea636..134f32ea 100644 --- a/library/Zend/Http/UserAgent/AbstractDevice.php +++ b/library/Zend/Http/UserAgent/AbstractDevice.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Http_UserAgent_AbstractDevice implements Zend_Http_UserAgent_Device { /** @@ -707,7 +708,7 @@ public static function extractFromUserAgent($userAgent) // Opera X.XX if (isset($result['others']['detail'][1][1])) { $result['browser_version'] = $result['others']['detail'][1][1]; - // Opera/X.XX + // Opera/X.XX } elseif (isset($result['others']['detail'][0][2])) { $result['browser_version'] = $result['others']['detail'][0][2]; } diff --git a/library/Zend/Http/UserAgent/Bot.php b/library/Zend/Http/UserAgent/Bot.php index 149e2559..bb77b384 100644 --- a/library/Zend/Http/UserAgent/Bot.php +++ b/library/Zend/Http/UserAgent/Bot.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Bot extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Checker.php b/library/Zend/Http/UserAgent/Checker.php index a52bca5c..332b63fc 100644 --- a/library/Zend/Http/UserAgent/Checker.php +++ b/library/Zend/Http/UserAgent/Checker.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Checker extends Zend_Http_UserAgent_Desktop { /** diff --git a/library/Zend/Http/UserAgent/Console.php b/library/Zend/Http/UserAgent/Console.php index dfbbaadb..24cd10f5 100644 --- a/library/Zend/Http/UserAgent/Console.php +++ b/library/Zend/Http/UserAgent/Console.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Console extends Zend_Http_UserAgent_Desktop { /** diff --git a/library/Zend/Http/UserAgent/Desktop.php b/library/Zend/Http/UserAgent/Desktop.php index 20fb3e3f..54a8e848 100644 --- a/library/Zend/Http/UserAgent/Desktop.php +++ b/library/Zend/Http/UserAgent/Desktop.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Desktop extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Email.php b/library/Zend/Http/UserAgent/Email.php index 68349f08..7317e742 100644 --- a/library/Zend/Http/UserAgent/Email.php +++ b/library/Zend/Http/UserAgent/Email.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Email extends Zend_Http_UserAgent_Desktop { /** diff --git a/library/Zend/Http/UserAgent/Exception.php b/library/Zend/Http/UserAgent/Exception.php index d63a1e62..168f0ea8 100644 --- a/library/Zend/Http/UserAgent/Exception.php +++ b/library/Zend/Http/UserAgent/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Exception extends Zend_Exception { } diff --git a/library/Zend/Http/UserAgent/Features/Adapter/Browscap.php b/library/Zend/Http/UserAgent/Features/Adapter/Browscap.php index bd3a40f8..2c5a937a 100644 --- a/library/Zend/Http/UserAgent/Features/Adapter/Browscap.php +++ b/library/Zend/Http/UserAgent/Features/Adapter/Browscap.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Features_Adapter_Browscap implements Zend_Http_UserAgent_Features_Adapter { /** diff --git a/library/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php b/library/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php index 482d8efe..9bc6e0ef 100644 --- a/library/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php +++ b/library/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Features_Adapter_DeviceAtlas implements Zend_Http_UserAgent_Features_Adapter { /** diff --git a/library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php b/library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php index 5d91b621..25aeb20e 100644 --- a/library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php +++ b/library/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Features_Adapter_TeraWurfl implements Zend_Http_UserAgent_Features_Adapter { /** diff --git a/library/Zend/Http/UserAgent/Features/Exception.php b/library/Zend/Http/UserAgent/Features/Exception.php index 32f71d89..9692f844 100644 --- a/library/Zend/Http/UserAgent/Features/Exception.php +++ b/library/Zend/Http/UserAgent/Features/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Features_Exception extends Zend_Http_UserAgent_Exception { } diff --git a/library/Zend/Http/UserAgent/Feed.php b/library/Zend/Http/UserAgent/Feed.php index 5166c33e..9dd427a8 100644 --- a/library/Zend/Http/UserAgent/Feed.php +++ b/library/Zend/Http/UserAgent/Feed.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Feed extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Mobile.php b/library/Zend/Http/UserAgent/Mobile.php index 4300476b..773649c0 100644 --- a/library/Zend/Http/UserAgent/Mobile.php +++ b/library/Zend/Http/UserAgent/Mobile.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Mobile extends Zend_Http_UserAgent_AbstractDevice { public const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap'; diff --git a/library/Zend/Http/UserAgent/Offline.php b/library/Zend/Http/UserAgent/Offline.php index 1308164e..8858e9f0 100644 --- a/library/Zend/Http/UserAgent/Offline.php +++ b/library/Zend/Http/UserAgent/Offline.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Offline extends Zend_Http_UserAgent_Desktop { /** diff --git a/library/Zend/Http/UserAgent/Probe.php b/library/Zend/Http/UserAgent/Probe.php index a273749e..ea2a7a94 100644 --- a/library/Zend/Http/UserAgent/Probe.php +++ b/library/Zend/Http/UserAgent/Probe.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Probe extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Spam.php b/library/Zend/Http/UserAgent/Spam.php index 9c8ad152..da049220 100644 --- a/library/Zend/Http/UserAgent/Spam.php +++ b/library/Zend/Http/UserAgent/Spam.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Spam extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Storage/Exception.php b/library/Zend/Http/UserAgent/Storage/Exception.php index 3f0115b5..6b0251b9 100644 --- a/library/Zend/Http/UserAgent/Storage/Exception.php +++ b/library/Zend/Http/UserAgent/Storage/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Storage_Exception extends Zend_Http_UserAgent_Exception { } diff --git a/library/Zend/Http/UserAgent/Storage/NonPersistent.php b/library/Zend/Http/UserAgent/Storage/NonPersistent.php index c59a5ef1..e11abcc4 100644 --- a/library/Zend/Http/UserAgent/Storage/NonPersistent.php +++ b/library/Zend/Http/UserAgent/Storage/NonPersistent.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Storage_NonPersistent implements Zend_Http_UserAgent_Storage { /** diff --git a/library/Zend/Http/UserAgent/Storage/Session.php b/library/Zend/Http/UserAgent/Storage/Session.php index 8e9c3252..9f3f7ced 100644 --- a/library/Zend/Http/UserAgent/Storage/Session.php +++ b/library/Zend/Http/UserAgent/Storage/Session.php @@ -28,6 +28,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Storage_Session implements Zend_Http_UserAgent_Storage { /** diff --git a/library/Zend/Http/UserAgent/Text.php b/library/Zend/Http/UserAgent/Text.php index bad704d5..fec83c31 100644 --- a/library/Zend/Http/UserAgent/Text.php +++ b/library/Zend/Http/UserAgent/Text.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Text extends Zend_Http_UserAgent_AbstractDevice { /** diff --git a/library/Zend/Http/UserAgent/Validator.php b/library/Zend/Http/UserAgent/Validator.php index 07c25b84..93572262 100644 --- a/library/Zend/Http/UserAgent/Validator.php +++ b/library/Zend/Http/UserAgent/Validator.php @@ -21,6 +21,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Http_UserAgent_Validator extends Zend_Http_UserAgent_Desktop { /** diff --git a/library/Zend/Json.php b/library/Zend/Json.php index 625a0899..295b818a 100644 --- a/library/Zend/Json.php +++ b/library/Zend/Json.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Json { /** diff --git a/library/Zend/Json/Decoder.php b/library/Zend/Json/Decoder.php index 34401f26..f7718da3 100644 --- a/library/Zend/Json/Decoder.php +++ b/library/Zend/Json/Decoder.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Json_Decoder { /** @@ -297,11 +298,11 @@ protected function _decodeArray() protected function _eatWhitespace() { if (preg_match( - '/([\t\b\f\n\r ])*/s', - $this->_source, - $matches, - PREG_OFFSET_CAPTURE, - $this->_offset) + '/([\t\b\f\n\r ])*/s', + $this->_source, + $matches, + PREG_OFFSET_CAPTURE, + $this->_offset) && $matches[0][1] == $this->_offset) { $this->_offset += strlen($matches[0][0]); } @@ -329,9 +330,9 @@ protected function _getNextToken() switch ($str[$i]) { case '{': - $this->_token = self::LBRACE; + $this->_token = self::LBRACE; - break; + break; case '}': $this->_token = self::RBRACE; diff --git a/library/Zend/Json/Encoder.php b/library/Zend/Json/Encoder.php index 341feddf..b98d1ed0 100644 --- a/library/Zend/Json/Encoder.php +++ b/library/Zend/Json/Encoder.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Json_Encoder { /** @@ -118,9 +119,9 @@ protected function _encodeObject(&$value) require_once 'Zend/Json/Exception.php'; throw new Zend_Json_Exception( - 'Cycles not supported in JSON encoding, cycle introduced by ' - . 'class "' . get_class($value) . '"' - ); + 'Cycles not supported in JSON encoding, cycle introduced by ' + . 'class "' . get_class($value) . '"' + ); } $this->_visited[] = $value; @@ -469,8 +470,8 @@ public static function encodeUnicodeString($value) // characters U-00000800 - U-0000FFFF, mask 1110XXXX // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 $char = pack('C*', $ord_var_c, - ord($value[$i + 1]), - ord($value[$i + 2])); + ord($value[$i + 1]), + ord($value[$i + 2])); $i += 2; $utf16 = self::_utf82utf16($char); $ascii .= sprintf('\u%04s', bin2hex($utf16)); @@ -481,9 +482,9 @@ public static function encodeUnicodeString($value) // characters U-00010000 - U-001FFFFF, mask 11110XXX // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 $char = pack('C*', $ord_var_c, - ord($value[$i + 1]), - ord($value[$i + 2]), - ord($value[$i + 3])); + ord($value[$i + 1]), + ord($value[$i + 2]), + ord($value[$i + 3])); $i += 3; $utf16 = self::_utf82utf16($char); $ascii .= sprintf('\u%04s', bin2hex($utf16)); @@ -494,10 +495,10 @@ public static function encodeUnicodeString($value) // characters U-00200000 - U-03FFFFFF, mask 111110XX // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 $char = pack('C*', $ord_var_c, - ord($value[$i + 1]), - ord($value[$i + 2]), - ord($value[$i + 3]), - ord($value[$i + 4])); + ord($value[$i + 1]), + ord($value[$i + 2]), + ord($value[$i + 3]), + ord($value[$i + 4])); $i += 4; $utf16 = self::_utf82utf16($char); $ascii .= sprintf('\u%04s', bin2hex($utf16)); @@ -508,11 +509,11 @@ public static function encodeUnicodeString($value) // characters U-04000000 - U-7FFFFFFF, mask 1111110X // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 $char = pack('C*', $ord_var_c, - ord($value[$i + 1]), - ord($value[$i + 2]), - ord($value[$i + 3]), - ord($value[$i + 4]), - ord($value[$i + 5])); + ord($value[$i + 1]), + ord($value[$i + 2]), + ord($value[$i + 3]), + ord($value[$i + 4]), + ord($value[$i + 5])); $i += 5; $utf16 = self::_utf82utf16($char); $ascii .= sprintf('\u%04s', bin2hex($utf16)); diff --git a/library/Zend/Json/Exception.php b/library/Zend/Json/Exception.php index 51250cee..08d646ab 100644 --- a/library/Zend/Json/Exception.php +++ b/library/Zend/Json/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Json_Exception extends Zend_Exception { } diff --git a/library/Zend/Json/Expr.php b/library/Zend/Json/Expr.php index 461df516..ff5a375a 100644 --- a/library/Zend/Json/Expr.php +++ b/library/Zend/Json/Expr.php @@ -41,6 +41,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Json_Expr { /** diff --git a/library/Zend/Layout.php b/library/Zend/Layout.php index 057e31e9..5f1b76be 100644 --- a/library/Zend/Layout.php +++ b/library/Zend/Layout.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Layout { /** diff --git a/library/Zend/Layout/Controller/Action/Helper/Layout.php b/library/Zend/Layout/Controller/Action/Helper/Layout.php index f2784d94..e90cbd53 100644 --- a/library/Zend/Layout/Controller/Action/Helper/Layout.php +++ b/library/Zend/Layout/Controller/Action/Helper/Layout.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Layout_Controller_Action_Helper_Layout extends Zend_Controller_Action_Helper_Abstract { /** @@ -46,8 +47,6 @@ class Zend_Layout_Controller_Action_Helper_Layout extends Zend_Controller_Action /** * Constructor. - * - * @param Zend_Layout $layout */ public function __construct(?Zend_Layout $layout = null) { diff --git a/library/Zend/Layout/Controller/Plugin/Layout.php b/library/Zend/Layout/Controller/Plugin/Layout.php index c879ab26..f9492433 100644 --- a/library/Zend/Layout/Controller/Plugin/Layout.php +++ b/library/Zend/Layout/Controller/Plugin/Layout.php @@ -27,6 +27,7 @@ * * @version $Id$ */ +#[AllowDynamicProperties] class Zend_Layout_Controller_Plugin_Layout extends Zend_Controller_Plugin_Abstract { protected $_layoutActionHelper; @@ -38,8 +39,6 @@ class Zend_Layout_Controller_Plugin_Layout extends Zend_Controller_Plugin_Abstra /** * Constructor. - * - * @param Zend_Layout $layout */ public function __construct(?Zend_Layout $layout = null) { diff --git a/library/Zend/Layout/Exception.php b/library/Zend/Layout/Exception.php index 13f294f9..5e033bcd 100644 --- a/library/Zend/Layout/Exception.php +++ b/library/Zend/Layout/Exception.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Layout_Exception extends Zend_Exception { } diff --git a/library/Zend/Loader.php b/library/Zend/Loader.php index 580539a1..38c9826c 100644 --- a/library/Zend/Loader.php +++ b/library/Zend/Loader.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader { /** diff --git a/library/Zend/Loader/Autoloader.php b/library/Zend/Loader/Autoloader.php index 4843338e..e6f7c7e2 100644 --- a/library/Zend/Loader/Autoloader.php +++ b/library/Zend/Loader/Autoloader.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_Autoloader { /** diff --git a/library/Zend/Loader/Autoloader/Resource.php b/library/Zend/Loader/Autoloader/Resource.php index e469a777..1463abea 100644 --- a/library/Zend/Loader/Autoloader/Resource.php +++ b/library/Zend/Loader/Autoloader/Resource.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_Autoloader_Resource implements Zend_Loader_Autoloader_Interface { /** diff --git a/library/Zend/Loader/AutoloaderFactory.php b/library/Zend/Loader/AutoloaderFactory.php index db74712c..230c319e 100644 --- a/library/Zend/Loader/AutoloaderFactory.php +++ b/library/Zend/Loader/AutoloaderFactory.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Loader_AutoloaderFactory { public const STANDARD_AUTOLOADER = 'Zend_Loader_StandardAutoloader'; diff --git a/library/Zend/Loader/ClassMapAutoloader.php b/library/Zend/Loader/ClassMapAutoloader.php index 3c129d78..1407db75 100644 --- a/library/Zend/Loader/ClassMapAutoloader.php +++ b/library/Zend/Loader/ClassMapAutoloader.php @@ -25,6 +25,7 @@ * * @license New BSD {@link http://framework.zend.com/license/new-bsd} */ +#[AllowDynamicProperties] class Zend_Loader_ClassMapAutoloader implements Zend_Loader_SplAutoloader { /** diff --git a/library/Zend/Loader/Exception.php b/library/Zend/Loader/Exception.php index 33fdf8b3..ac555895 100644 --- a/library/Zend/Loader/Exception.php +++ b/library/Zend/Loader/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_Exception extends Zend_Exception { } diff --git a/library/Zend/Loader/Exception/InvalidArgumentException.php b/library/Zend/Loader/Exception/InvalidArgumentException.php index e7a968e0..3cd66818 100644 --- a/library/Zend/Loader/Exception/InvalidArgumentException.php +++ b/library/Zend/Loader/Exception/InvalidArgumentException.php @@ -19,6 +19,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_Exception_InvalidArgumentException extends Zend_Loader_Exception { } diff --git a/library/Zend/Loader/PluginLoader.php b/library/Zend/Loader/PluginLoader.php index 626f213b..fba933f4 100644 --- a/library/Zend/Loader/PluginLoader.php +++ b/library/Zend/Loader/PluginLoader.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface { /** diff --git a/library/Zend/Loader/PluginLoader/Exception.php b/library/Zend/Loader/PluginLoader/Exception.php index f7260b3f..20fa1ed6 100644 --- a/library/Zend/Loader/PluginLoader/Exception.php +++ b/library/Zend/Loader/PluginLoader/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_PluginLoader_Exception extends Zend_Loader_Exception { } diff --git a/library/Zend/Loader/SplAutoloader.php b/library/Zend/Loader/SplAutoloader.php index 202ca677..28029d20 100644 --- a/library/Zend/Loader/SplAutoloader.php +++ b/library/Zend/Loader/SplAutoloader.php @@ -50,7 +50,7 @@ public function setOptions($options); /** * Autoload a class. * - * @param $class + * @param mixed $class * * @return mixed * False [if unable to load $class] diff --git a/library/Zend/Loader/StandardAutoloader.php b/library/Zend/Loader/StandardAutoloader.php index d7afd0cc..b579b5b3 100644 --- a/library/Zend/Loader/StandardAutoloader.php +++ b/library/Zend/Loader/StandardAutoloader.php @@ -27,6 +27,7 @@ * * @license New BSD {@link http://framework.zend.com/license/new-bsd} */ +#[AllowDynamicProperties] class Zend_Loader_StandardAutoloader implements Zend_Loader_SplAutoloader { public const NS_SEPARATOR = '\\'; diff --git a/library/Zend/Locale.php b/library/Zend/Locale.php index 94063ed7..7876da2f 100644 --- a/library/Zend/Locale.php +++ b/library/Zend/Locale.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale { /** @@ -1296,7 +1297,7 @@ public static function getBrowser() foreach ($accepted as $accept) { $match = null; $result = preg_match('/^([a-z]{1,8}(?:[-_][a-z]{1,8})*)(?:;\s*q=(0(?:\.[0-9]{1,3})?|1(?:\.0{1,3})?))?$/i', - $accept, $match); + $accept, $match); if ($result < 1) { continue; diff --git a/library/Zend/Locale/Data.php b/library/Zend/Locale/Data.php index c1bee619..f27e922f 100644 --- a/library/Zend/Locale/Data.php +++ b/library/Zend/Locale/Data.php @@ -30,6 +30,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Data { /** @@ -427,6 +428,7 @@ public static function getList($locale, $path, $value = false) case 'characters': $temp = self::_getFile($locale, '/ldml/characters/exemplarCharacters', '', 'characters'); $temp += self::_getFile($locale, '/ldml/characters/exemplarCharacters[@type=\'auxiliary\']', '', 'auxiliary'); + // $temp += self::_getFile($locale, '/ldml/characters/exemplarCharacters[@type=\'currencySymbol\']', '', 'currencySymbol'); break; @@ -1282,6 +1284,7 @@ public static function getContent($locale, $path, $value = false) $value = ['gregorian', $temp]; } $temp = self::_getFile($locale, '/ldml/dates/fields/field[@type=\'day\']/relative[@type=\'' . $value[1] . '\']', '', $value[1]); + // $temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/fields/field/relative[@type=\'' . $value[1] . '\']', '', $value[1]); break; diff --git a/library/Zend/Locale/Data/Translation.php b/library/Zend/Locale/Data/Translation.php index 18288df2..32fe5afa 100644 --- a/library/Zend/Locale/Data/Translation.php +++ b/library/Zend/Locale/Data/Translation.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Data_Translation { /** diff --git a/library/Zend/Locale/Exception.php b/library/Zend/Locale/Exception.php index 47be9b3e..73272af6 100644 --- a/library/Zend/Locale/Exception.php +++ b/library/Zend/Locale/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Exception extends Zend_Exception { } diff --git a/library/Zend/Locale/Format.php b/library/Zend/Locale/Format.php index 6e2f4344..5583d7a0 100644 --- a/library/Zend/Locale/Format.php +++ b/library/Zend/Locale/Format.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Format { public const STANDARD = 'auto'; @@ -181,7 +182,6 @@ private static function _checkOptions(array $options = []) throw new Zend_Locale_Exception("Unknown option: '$name' = '$value'"); break; - } } @@ -346,7 +346,7 @@ public static function toNumber($value, array $options = []) $options['precision'] = null; } else { $options['precision'] = iconv_strlen(iconv_substr($format, iconv_strpos($format, '.') + 1, - iconv_strrpos($format, '0') - iconv_strpos($format, '.'))); + iconv_strrpos($format, '0') - iconv_strpos($format, '.'))); $format = iconv_substr($format, 0, iconv_strpos($format, '.') + 1) . '###' . iconv_substr($format, iconv_strrpos($format, '0') + 1); } @@ -459,7 +459,6 @@ public static function toNumber($value, array $options = []) } $format = iconv_substr($format, 0, iconv_strpos($format, '#')) . $number . iconv_substr($format, $point); } else { - // 2 seperations if (iconv_strlen($number) > ($point - $group)) { $seperation = ($point - $group); @@ -900,7 +899,7 @@ private static function _parseDate($date, $options) // prepare to convert month name to their numeric equivalents, if requested, // and we have a $options['locale'] $position = self::_replaceMonth($number, Zend_Locale_Data::getList($options['locale'], - 'month')); + 'month')); if ($position === false) { $position = self::_replaceMonth($number, Zend_Locale_Data::getList($options['locale'], 'month', ['gregorian', 'format', 'abbreviated'])); diff --git a/library/Zend/Locale/Math.php b/library/Zend/Locale/Math.php index e2b9f7a9..8821177e 100644 --- a/library/Zend/Locale/Math.php +++ b/library/Zend/Locale/Math.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Math { // support unit testing without using bcmath functions diff --git a/library/Zend/Locale/Math/Exception.php b/library/Zend/Locale/Math/Exception.php index 8043608e..62b2d67c 100644 --- a/library/Zend/Locale/Math/Exception.php +++ b/library/Zend/Locale/Math/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Math_Exception extends Zend_Locale_Exception { protected $op1; diff --git a/library/Zend/Locale/Math/PhpMath.php b/library/Zend/Locale/Math/PhpMath.php index 0a90bab9..3fcdae33 100644 --- a/library/Zend/Locale/Math/PhpMath.php +++ b/library/Zend/Locale/Math/PhpMath.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Locale_Math_PhpMath extends Zend_Locale_Math { public static function disable() diff --git a/library/Zend/Navigation.php b/library/Zend/Navigation.php index b5cba39b..2158e290 100644 --- a/library/Zend/Navigation.php +++ b/library/Zend/Navigation.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Navigation extends Zend_Navigation_Container { /** @@ -42,8 +43,8 @@ public function __construct($pages = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $pages must be an array, an ' - . 'instance of Zend_Config, or null'); + 'Invalid argument: $pages must be an array, an ' + . 'instance of Zend_Config, or null'); } } } diff --git a/library/Zend/Navigation/Container.php b/library/Zend/Navigation/Container.php index 095172e0..2a923373 100644 --- a/library/Zend/Navigation/Container.php +++ b/library/Zend/Navigation/Container.php @@ -24,6 +24,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Navigation_Container implements RecursiveIterator, Countable { /** @@ -111,8 +112,8 @@ public function addPage($page) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $page must be an instance of ' - . 'Zend_Navigation_Page or Zend_Config, or an array'); + 'Invalid argument: $page must be an instance of ' + . 'Zend_Navigation_Page or Zend_Config, or an array'); } $hash = $page->hashCode(); @@ -155,9 +156,9 @@ public function addPages($pages) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $pages must be an array, an ' - . 'instance of Zend_Config or an instance of ' - . \Zend_Navigation_Container::class); + 'Invalid argument: $pages must be an array, an ' + . 'instance of Zend_Config or an instance of ' + . \Zend_Navigation_Container::class); } foreach ($pages as $page) { @@ -525,8 +526,8 @@ public function current(): mixed require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Corruption detected in container; ' - . 'invalid key found in internal iterator'); + 'Corruption detected in container; ' + . 'invalid key found in internal iterator'); } /** diff --git a/library/Zend/Navigation/Exception.php b/library/Zend/Navigation/Exception.php index cfa963a6..f10d1a21 100644 --- a/library/Zend/Navigation/Exception.php +++ b/library/Zend/Navigation/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Navigation_Exception extends Zend_Exception { } diff --git a/library/Zend/Navigation/Page.php b/library/Zend/Navigation/Page.php index f2724bbd..619fe2b8 100644 --- a/library/Zend/Navigation/Page.php +++ b/library/Zend/Navigation/Page.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Navigation_Page extends Zend_Navigation_Container { /** @@ -235,9 +236,9 @@ public static function factory($options) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception(sprintf( - 'Invalid argument: Detected type "%s", which ' - . 'is not an instance of Zend_Navigation_Page', - $type)); + 'Invalid argument: Detected type "%s", which ' + . 'is not an instance of Zend_Navigation_Page', + $type)); } return $page; @@ -342,7 +343,7 @@ public function setLabel($label) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $label must be a string or null'); + 'Invalid argument: $label must be a string or null'); } $this->_label = $label; @@ -373,7 +374,7 @@ public function setFragment($fragment) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $fragment must be a string or null'); + 'Invalid argument: $fragment must be a string or null'); } $this->_fragment = $fragment; @@ -405,7 +406,7 @@ public function setId($id = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $id must be a string, number or null'); + 'Invalid argument: $id must be a string, number or null'); } $this->_id = null === $id ? $id : (string) $id; @@ -437,7 +438,7 @@ public function setClass($class = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $class must be a string or null'); + 'Invalid argument: $class must be a string or null'); } $this->_class = $class; @@ -469,7 +470,7 @@ public function setTitle($title = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $title must be a non-empty string'); + 'Invalid argument: $title must be a non-empty string'); } $this->_title = $title; @@ -501,7 +502,7 @@ public function setTarget($target = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $target must be a string or null'); + 'Invalid argument: $target must be a string or null'); } $this->_target = $target; @@ -579,8 +580,8 @@ public function setRel($relations = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $relations must be an ' - . 'array or an instance of Zend_Config'); + 'Invalid argument: $relations must be an ' + . 'array or an instance of Zend_Config'); } foreach ($relations as $name => $relation) { @@ -643,8 +644,8 @@ public function setRev($relations = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $relations must be an ' - . 'array or an instance of Zend_Config'); + 'Invalid argument: $relations must be an ' + . 'array or an instance of Zend_Config'); } foreach ($relations as $name => $relation) { @@ -822,8 +823,8 @@ public function setOrder($order = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $order must be an integer or null, ' - . 'or a string that casts to an integer'); + 'Invalid argument: $order must be an integer or null, ' + . 'or a string that casts to an integer'); } $this->_order = $order; @@ -867,8 +868,8 @@ public function setResource($resource = null) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $resource must be null, a string, ' - . ' or an instance of Zend_Acl_Resource_Interface'); + 'Invalid argument: $resource must be null, a string, ' + . ' or an instance of Zend_Acl_Resource_Interface'); } return $this; @@ -1084,7 +1085,7 @@ public function set($property, $value) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $property must be a non-empty string'); + 'Invalid argument: $property must be a non-empty string'); } $method = 'set' . self::_normalizePropertyName($property); @@ -1116,7 +1117,7 @@ public function get($property) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $property must be a non-empty string'); + 'Invalid argument: $property must be a non-empty string'); } $method = 'get' . self::_normalizePropertyName($property); @@ -1197,8 +1198,8 @@ public function __unset($name) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception(sprintf( - 'Unsetting native property "%s" is not allowed', - $name)); + 'Unsetting native property "%s" is not allowed', + $name)); } if (isset($this->_properties[$name])) { diff --git a/library/Zend/Navigation/Page/Mvc.php b/library/Zend/Navigation/Page/Mvc.php index ce498a5a..776a156d 100644 --- a/library/Zend/Navigation/Page/Mvc.php +++ b/library/Zend/Navigation/Page/Mvc.php @@ -40,6 +40,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Navigation_Page_Mvc extends Zend_Navigation_Page { /** @@ -600,7 +601,7 @@ public function getResetParams() * * @see getHref() * - * @param $encodeUrl + * @param mixed $encodeUrl * * @return Zend_Navigation_Page_Mvc fluent interface, returns self */ diff --git a/library/Zend/Navigation/Page/Uri.php b/library/Zend/Navigation/Page/Uri.php index 405bcc26..26168e63 100644 --- a/library/Zend/Navigation/Page/Uri.php +++ b/library/Zend/Navigation/Page/Uri.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Navigation_Page_Uri extends Zend_Navigation_Page { /** @@ -49,7 +50,7 @@ public function setUri($uri) require_once 'Zend/Navigation/Exception.php'; throw new Zend_Navigation_Exception( - 'Invalid argument: $uri must be a string or null'); + 'Invalid argument: $uri must be a string or null'); } $this->_uri = $uri; diff --git a/library/Zend/Paginator.php b/library/Zend/Paginator.php index 5038031a..f1f6d759 100644 --- a/library/Zend/Paginator.php +++ b/library/Zend/Paginator.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator implements Countable, IteratorAggregate { /** @@ -254,7 +255,6 @@ public static function addScrollingStylePrefixPaths(array $prefixPaths) * * @param mixed $data * @param string $adapter - * @param array $prefixPaths * * @return Zend_Paginator */ @@ -927,8 +927,6 @@ public function getView() /** * Sets the view object. * - * @param Zend_View_Interface $view - * * @return Zend_Paginator */ public function setView(?Zend_View_Interface $view = null) @@ -987,8 +985,6 @@ public function normalizePageNumber($pageNumber) /** * Renders the paginator. * - * @param Zend_View_Interface $view - * * @return string */ public function render(?Zend_View_Interface $view = null) diff --git a/library/Zend/Paginator/Adapter/Array.php b/library/Zend/Paginator/Adapter/Array.php index b4165ea2..6b1280c0 100644 --- a/library/Zend/Paginator/Adapter/Array.php +++ b/library/Zend/Paginator/Adapter/Array.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_Array implements Zend_Paginator_Adapter_Interface { /** diff --git a/library/Zend/Paginator/Adapter/Iterator.php b/library/Zend/Paginator/Adapter/Iterator.php index e442fbdb..55a631a9 100644 --- a/library/Zend/Paginator/Adapter/Iterator.php +++ b/library/Zend/Paginator/Adapter/Iterator.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_Iterator implements Zend_Paginator_Adapter_Interface { /** diff --git a/library/Zend/Paginator/Adapter/Null.php b/library/Zend/Paginator/Adapter/Null.php index 0c07908f..40c3d0bc 100644 --- a/library/Zend/Paginator/Adapter/Null.php +++ b/library/Zend/Paginator/Adapter/Null.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_Null implements Zend_Paginator_Adapter_Interface { /** diff --git a/library/Zend/Paginator/Exception.php b/library/Zend/Paginator/Exception.php index 39647b2b..44f0c315 100644 --- a/library/Zend/Paginator/Exception.php +++ b/library/Zend/Paginator/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_Exception extends Zend_Exception { } diff --git a/library/Zend/Paginator/ScrollingStyle/All.php b/library/Zend/Paginator/ScrollingStyle/All.php index 4a7c2f24..372d99d0 100644 --- a/library/Zend/Paginator/ScrollingStyle/All.php +++ b/library/Zend/Paginator/ScrollingStyle/All.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_All implements Zend_Paginator_ScrollingStyle_Interface { /** diff --git a/library/Zend/Paginator/ScrollingStyle/Elastic.php b/library/Zend/Paginator/ScrollingStyle/Elastic.php index 2427e60a..889c9a9c 100644 --- a/library/Zend/Paginator/ScrollingStyle/Elastic.php +++ b/library/Zend/Paginator/ScrollingStyle/Elastic.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_Elastic extends Zend_Paginator_ScrollingStyle_Sliding { /** diff --git a/library/Zend/Paginator/ScrollingStyle/Jumping.php b/library/Zend/Paginator/ScrollingStyle/Jumping.php index 0fe54062..86e2e600 100644 --- a/library/Zend/Paginator/ScrollingStyle/Jumping.php +++ b/library/Zend/Paginator/ScrollingStyle/Jumping.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_Jumping implements Zend_Paginator_ScrollingStyle_Interface { /** diff --git a/library/Zend/Paginator/ScrollingStyle/Sliding.php b/library/Zend/Paginator/ScrollingStyle/Sliding.php index dcdaa615..7082d4b7 100644 --- a/library/Zend/Paginator/ScrollingStyle/Sliding.php +++ b/library/Zend/Paginator/ScrollingStyle/Sliding.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_Sliding implements Zend_Paginator_ScrollingStyle_Interface { /** diff --git a/library/Zend/Paginator/SerializableLimitIterator.php b/library/Zend/Paginator/SerializableLimitIterator.php index 1301c3fd..31828cdf 100644 --- a/library/Zend/Paginator/SerializableLimitIterator.php +++ b/library/Zend/Paginator/SerializableLimitIterator.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Paginator_SerializableLimitIterator extends LimitIterator implements Serializable, ArrayAccess { /** diff --git a/library/Zend/ProgressBar.php b/library/Zend/ProgressBar.php index 31cc07c2..00993b80 100644 --- a/library/Zend/ProgressBar.php +++ b/library/Zend/ProgressBar.php @@ -20,6 +20,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_ProgressBar { /** diff --git a/library/Zend/Registry.php b/library/Zend/Registry.php index 53657873..5f19d678 100644 --- a/library/Zend/Registry.php +++ b/library/Zend/Registry.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Registry extends ArrayObject { /** diff --git a/library/Zend/Rest/Client.php b/library/Zend/Rest/Client.php index aad4a25e..18385400 100644 --- a/library/Zend/Rest/Client.php +++ b/library/Zend/Rest/Client.php @@ -29,6 +29,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Client extends Zend_Service_Abstract { /** diff --git a/library/Zend/Rest/Client/Exception.php b/library/Zend/Rest/Client/Exception.php index 32f68513..15dfb2c0 100644 --- a/library/Zend/Rest/Client/Exception.php +++ b/library/Zend/Rest/Client/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Client_Exception extends Zend_Rest_Exception { } diff --git a/library/Zend/Rest/Client/Result.php b/library/Zend/Rest/Client/Result.php index 2e55f5ec..754426ee 100644 --- a/library/Zend/Rest/Client/Result.php +++ b/library/Zend/Rest/Client/Result.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Client_Result implements IteratorAggregate { /** diff --git a/library/Zend/Rest/Client/Result/Exception.php b/library/Zend/Rest/Client/Result/Exception.php index f7c9163a..30b18d66 100644 --- a/library/Zend/Rest/Client/Result/Exception.php +++ b/library/Zend/Rest/Client/Result/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Client_Result_Exception extends Zend_Rest_Client_Exception { } diff --git a/library/Zend/Rest/Controller.php b/library/Zend/Rest/Controller.php index fcabde58..4a3533b0 100644 --- a/library/Zend/Rest/Controller.php +++ b/library/Zend/Rest/Controller.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Rest_Controller extends Zend_Controller_Action { /** diff --git a/library/Zend/Rest/Exception.php b/library/Zend/Rest/Exception.php index 95340f35..f4089113 100644 --- a/library/Zend/Rest/Exception.php +++ b/library/Zend/Rest/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Exception extends Zend_Exception { } diff --git a/library/Zend/Rest/Route.php b/library/Zend/Rest/Route.php index 27f661ba..971f840f 100644 --- a/library/Zend/Rest/Route.php +++ b/library/Zend/Rest/Route.php @@ -44,6 +44,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_Route extends Zend_Controller_Router_Route_Module { /** diff --git a/library/Zend/Service/Abstract.php b/library/Zend/Service/Abstract.php index 843d81bc..ad62c8df 100644 --- a/library/Zend/Service/Abstract.php +++ b/library/Zend/Service/Abstract.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Service_Abstract { /** diff --git a/library/Zend/Service/Exception.php b/library/Zend/Service/Exception.php index 5a2522bb..444d1991 100644 --- a/library/Zend/Service/Exception.php +++ b/library/Zend/Service/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Service_Exception extends Zend_Exception { } diff --git a/library/Zend/Session.php b/library/Zend/Session.php index 55b1666d..195ed8e0 100644 --- a/library/Zend/Session.php +++ b/library/Zend/Session.php @@ -40,6 +40,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Session extends Zend_Session_Abstract { /** @@ -242,7 +243,7 @@ public static function setSaveHandler(Zend_Session_SaveHandler_Interface $saveHa [&$saveHandler, 'write'], [&$saveHandler, 'destroy'], [&$saveHandler, 'gc'] - ); + ); if (!$result) { throw new Zend_Session_Exception('Unable to set session handler'); @@ -329,7 +330,7 @@ public static function rememberUntil($seconds = 0) $cookieParams['path'], $cookieParams['domain'], $cookieParams['secure'] - ); + ); // normally "rememberMe()" represents a security context change, so should use new session id self::regenerateId(); @@ -493,13 +494,13 @@ protected static function _checkId($id) switch ($hashBitsPerChar) { case 4: $pattern = '^[0-9a-f]*$'; -break; + break; case 5: $pattern = '^[0-9a-v]*$'; -break; + break; case 6: $pattern = '^[0-9a-zA-Z-,]*$'; -break; + break; } return preg_match('#' . $pattern . '#', $id); @@ -513,10 +514,8 @@ private static function _processStartupMetadataGlobal() { // process global metadata if (isset($_SESSION['__ZF'])) { - // expire globally expired values foreach ($_SESSION['__ZF'] as $namespace => $namespace_metadata) { - // Expire Namespace by Time (ENT) if (isset($namespace_metadata['ENT']) && ($namespace_metadata['ENT'] > 0) && (time() > $namespace_metadata['ENT'])) { unset($_SESSION[$namespace], $_SESSION['__ZF'][$namespace]); @@ -730,7 +729,7 @@ public static function expireSessionCookie() session_name(), false, ['expires' => 315_554_400, 'path' => $cookie_params['path'], 'domain' => $cookie_params['domain'], 'secure' => $cookie_params['secure']] - ); + ); } } diff --git a/library/Zend/Session/Abstract.php b/library/Zend/Session/Abstract.php index da4eb107..a396b826 100644 --- a/library/Zend/Session/Abstract.php +++ b/library/Zend/Session/Abstract.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Session_Abstract { /** diff --git a/library/Zend/Session/Exception.php b/library/Zend/Session/Exception.php index 1aba0bc4..d276049f 100644 --- a/library/Zend/Session/Exception.php +++ b/library/Zend/Session/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Session_Exception extends Zend_Exception { /** diff --git a/library/Zend/Session/Namespace.php b/library/Zend/Session/Namespace.php index 65145637..61caa6bd 100644 --- a/library/Zend/Session/Namespace.php +++ b/library/Zend/Session/Namespace.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Session_Namespace extends Zend_Session_Abstract implements IteratorAggregate { /** @@ -152,7 +153,6 @@ public function __construct($namespace = 'Default', $singleInstance = false) // do not allow write access to namespaces, after stop() or writeClose() if (parent::$_writable === true) { if (isset($_SESSION['__ZF'][$namespace])) { - // Expire Namespace by Namespace Hop (ENNH) if (isset($_SESSION['__ZF'][$namespace]['ENNH'])) { --$_SESSION['__ZF'][$namespace]['ENNH']; @@ -431,7 +431,6 @@ public function setExpirationSeconds($seconds, $variables = null) } if ($variables === null) { - // apply expiration to entire namespace $_SESSION['__ZF'][$this->_namespace]['ENT'] = time() + $seconds; } else { @@ -476,7 +475,6 @@ public function setExpirationHops($hops, $variables = null, $hopCountOnUsageOnly } if ($variables === null) { - // apply expiration to entire namespace if ($hopCountOnUsageOnly === false) { $_SESSION['__ZF'][$this->_namespace]['ENGH'] = $hops; diff --git a/library/Zend/Session/Validator/Abstract.php b/library/Zend/Session/Validator/Abstract.php index 21af52de..9b8b5d5a 100644 --- a/library/Zend/Session/Validator/Abstract.php +++ b/library/Zend/Session/Validator/Abstract.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Session_Validator_Abstract implements Zend_Session_Validator_Interface { /** diff --git a/library/Zend/Session/Validator/Exception.php b/library/Zend/Session/Validator/Exception.php index e174ed7f..78cb7671 100644 --- a/library/Zend/Session/Validator/Exception.php +++ b/library/Zend/Session/Validator/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Session_Validator_Exception extends Zend_Session_Exception { } diff --git a/library/Zend/Session/Validator/HttpUserAgent.php b/library/Zend/Session/Validator/HttpUserAgent.php index 426414eb..79a9dd32 100644 --- a/library/Zend/Session/Validator/HttpUserAgent.php +++ b/library/Zend/Session/Validator/HttpUserAgent.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Session_Validator_HttpUserAgent extends Zend_Session_Validator_Abstract { /** diff --git a/library/Zend/Test/PHPUnit/ControllerTestCase.php b/library/Zend/Test/PHPUnit/ControllerTestCase.php index 1b0165a2..85560206 100644 --- a/library/Zend/Test/PHPUnit/ControllerTestCase.php +++ b/library/Zend/Test/PHPUnit/ControllerTestCase.php @@ -39,6 +39,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Test_PHPUnit_ControllerTestCase extends \PHPUnit\Framework\TestCase { /** diff --git a/library/Zend/Text/Exception.php b/library/Zend/Text/Exception.php index 8a0f5ceb..6e1cd4b2 100644 --- a/library/Zend/Text/Exception.php +++ b/library/Zend/Text/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Text_Exception extends Zend_Exception { } diff --git a/library/Zend/Text/Figlet.php b/library/Zend/Text/Figlet.php index 9ce40fdd..1bec6e81 100644 --- a/library/Zend/Text/Figlet.php +++ b/library/Zend/Text/Figlet.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Text_Figlet { /** @@ -572,8 +573,8 @@ protected function _putString($string) if ($this->_justification > 0) { for ($i = 1; - ((3 - $this->_justification) * $i + $length + $this->_justification - 2) < $this->_outputWidth; - ++$i) { + ((3 - $this->_justification) * $i + $length + $this->_justification - 2) < $this->_outputWidth; + ++$i) { $this->_output .= ' '; } } @@ -882,6 +883,7 @@ protected function _smushem($leftChar, $rightChar) if ($this->_rightToLeft === 1) { return $leftChar; } + // Occurs in the absence of above exceptions return $rightChar; } @@ -1027,14 +1029,14 @@ protected function _loadFont($fontFile) // Get the header $numsRead = sscanf(fgets($fp, 1000), - '%*c%c %d %*d %d %d %d %d %d', - $this->_hardBlank, - $this->_charHeight, - $this->_maxLength, - $smush, - $cmtLines, - $rightToLeft, - $this->_fontSmush); + '%*c%c %d %*d %d %d %d %d %d', + $this->_hardBlank, + $this->_charHeight, + $this->_maxLength, + $smush, + $cmtLines, + $rightToLeft, + $this->_fontSmush); if ($magic !== self::FONTFILE_MAGIC_NUMBER || $numsRead < 5) { require_once 'Zend/Text/Figlet/Exception.php'; diff --git a/library/Zend/Text/Figlet/Exception.php b/library/Zend/Text/Figlet/Exception.php index 2b833d82..55404f49 100644 --- a/library/Zend/Text/Figlet/Exception.php +++ b/library/Zend/Text/Figlet/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Text_Figlet_Exception extends Zend_Text_Exception { } diff --git a/library/Zend/Translate.php b/library/Zend/Translate.php index b854c2ea..51492ba0 100644 --- a/library/Zend/Translate.php +++ b/library/Zend/Translate.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Translate { /** diff --git a/library/Zend/Translate/Adapter.php b/library/Zend/Translate/Adapter.php index f21e804d..ca397e46 100644 --- a/library/Zend/Translate/Adapter.php +++ b/library/Zend/Translate/Adapter.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Translate_Adapter { /** diff --git a/library/Zend/Translate/Adapter/Array.php b/library/Zend/Translate/Adapter/Array.php index e92263f5..01b238c0 100644 --- a/library/Zend/Translate/Adapter/Array.php +++ b/library/Zend/Translate/Adapter/Array.php @@ -26,6 +26,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Translate_Adapter_Array extends Zend_Translate_Adapter { private $_data = []; diff --git a/library/Zend/Translate/Exception.php b/library/Zend/Translate/Exception.php index 6d71de11..2e589c66 100644 --- a/library/Zend/Translate/Exception.php +++ b/library/Zend/Translate/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Translate_Exception extends Zend_Exception { } diff --git a/library/Zend/Translate/Plural.php b/library/Zend/Translate/Plural.php index c601fe37..c94b3988 100644 --- a/library/Zend/Translate/Plural.php +++ b/library/Zend/Translate/Plural.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Translate_Plural { /** diff --git a/library/Zend/Uri.php b/library/Zend/Uri.php index 4ee4ca8b..df1db397 100644 --- a/library/Zend/Uri.php +++ b/library/Zend/Uri.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Uri { /** diff --git a/library/Zend/Uri/Exception.php b/library/Zend/Uri/Exception.php index 120beee9..bbb8b831 100644 --- a/library/Zend/Uri/Exception.php +++ b/library/Zend/Uri/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Uri_Exception extends Zend_Exception { } diff --git a/library/Zend/Uri/Http.php b/library/Zend/Uri/Http.php index 3cdca4e7..1e2ee752 100644 --- a/library/Zend/Uri/Http.php +++ b/library/Zend/Uri/Http.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Uri_Http extends Zend_Uri { /** diff --git a/library/Zend/Validate.php b/library/Zend/Validate.php index b419c0c2..b0a76baf 100644 --- a/library/Zend/Validate.php +++ b/library/Zend/Validate.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate implements Zend_Validate_Interface { /** diff --git a/library/Zend/Validate/Abstract.php b/library/Zend/Validate/Abstract.php index 63af61dd..356a308d 100644 --- a/library/Zend/Validate/Abstract.php +++ b/library/Zend/Validate/Abstract.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Validate_Abstract implements Zend_Validate_Interface { /** diff --git a/library/Zend/Validate/Alnum.php b/library/Zend/Validate/Alnum.php index 81190e6b..929a6675 100644 --- a/library/Zend/Validate/Alnum.php +++ b/library/Zend/Validate/Alnum.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Alnum extends Zend_Validate_Abstract { public const INVALID = 'alnumInvalid'; diff --git a/library/Zend/Validate/Alpha.php b/library/Zend/Validate/Alpha.php index d37c1a36..0b58e676 100644 --- a/library/Zend/Validate/Alpha.php +++ b/library/Zend/Validate/Alpha.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Alpha extends Zend_Validate_Abstract { public const INVALID = 'alphaInvalid'; diff --git a/library/Zend/Validate/Barcode.php b/library/Zend/Validate/Barcode.php index 52ab8cb2..b7b743c8 100644 --- a/library/Zend/Validate/Barcode.php +++ b/library/Zend/Validate/Barcode.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode extends Zend_Validate_Abstract { public const INVALID = 'barcodeInvalid'; diff --git a/library/Zend/Validate/Barcode/AdapterAbstract.php b/library/Zend/Validate/Barcode/AdapterAbstract.php index a54272ec..b5ed1769 100644 --- a/library/Zend/Validate/Barcode/AdapterAbstract.php +++ b/library/Zend/Validate/Barcode/AdapterAbstract.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Validate_Barcode_AdapterAbstract implements Zend_Validate_Barcode_AdapterInterface { /** diff --git a/library/Zend/Validate/Barcode/Code25.php b/library/Zend/Validate/Barcode/Code25.php index 9f3f6517..d712d9fc 100644 --- a/library/Zend/Validate/Barcode/Code25.php +++ b/library/Zend/Validate/Barcode/Code25.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code25 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Code25interleaved.php b/library/Zend/Validate/Barcode/Code25interleaved.php index 1ceb27df..444e60a3 100644 --- a/library/Zend/Validate/Barcode/Code25interleaved.php +++ b/library/Zend/Validate/Barcode/Code25interleaved.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code25interleaved extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Code39.php b/library/Zend/Validate/Barcode/Code39.php index 0eabb80d..3da8bf00 100644 --- a/library/Zend/Validate/Barcode/Code39.php +++ b/library/Zend/Validate/Barcode/Code39.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code39 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Code39ext.php b/library/Zend/Validate/Barcode/Code39ext.php index 204f0c57..1cdfa783 100644 --- a/library/Zend/Validate/Barcode/Code39ext.php +++ b/library/Zend/Validate/Barcode/Code39ext.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code39ext extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Code93.php b/library/Zend/Validate/Barcode/Code93.php index a9226863..34c886ba 100644 --- a/library/Zend/Validate/Barcode/Code93.php +++ b/library/Zend/Validate/Barcode/Code93.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code93 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Code93ext.php b/library/Zend/Validate/Barcode/Code93ext.php index 017134f9..ff1308e4 100644 --- a/library/Zend/Validate/Barcode/Code93ext.php +++ b/library/Zend/Validate/Barcode/Code93ext.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Code93ext extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean12.php b/library/Zend/Validate/Barcode/Ean12.php index 828f16ef..e020dbb5 100644 --- a/library/Zend/Validate/Barcode/Ean12.php +++ b/library/Zend/Validate/Barcode/Ean12.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean12 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean13.php b/library/Zend/Validate/Barcode/Ean13.php index 476b44b9..a6a8394e 100644 --- a/library/Zend/Validate/Barcode/Ean13.php +++ b/library/Zend/Validate/Barcode/Ean13.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean13 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean14.php b/library/Zend/Validate/Barcode/Ean14.php index 26b59904..41f2c438 100644 --- a/library/Zend/Validate/Barcode/Ean14.php +++ b/library/Zend/Validate/Barcode/Ean14.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean14 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean18.php b/library/Zend/Validate/Barcode/Ean18.php index 381b8000..fc690659 100644 --- a/library/Zend/Validate/Barcode/Ean18.php +++ b/library/Zend/Validate/Barcode/Ean18.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean18 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean2.php b/library/Zend/Validate/Barcode/Ean2.php index 5c7ea4d2..b66a2698 100644 --- a/library/Zend/Validate/Barcode/Ean2.php +++ b/library/Zend/Validate/Barcode/Ean2.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean2 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean5.php b/library/Zend/Validate/Barcode/Ean5.php index 57861d68..6296c9a9 100644 --- a/library/Zend/Validate/Barcode/Ean5.php +++ b/library/Zend/Validate/Barcode/Ean5.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean5 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Ean8.php b/library/Zend/Validate/Barcode/Ean8.php index 208aecf3..d4b44510 100644 --- a/library/Zend/Validate/Barcode/Ean8.php +++ b/library/Zend/Validate/Barcode/Ean8.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Ean8 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Gtin12.php b/library/Zend/Validate/Barcode/Gtin12.php index 9f335dad..007f6de6 100644 --- a/library/Zend/Validate/Barcode/Gtin12.php +++ b/library/Zend/Validate/Barcode/Gtin12.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Gtin12 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Gtin13.php b/library/Zend/Validate/Barcode/Gtin13.php index a2717f07..9df0499b 100644 --- a/library/Zend/Validate/Barcode/Gtin13.php +++ b/library/Zend/Validate/Barcode/Gtin13.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Gtin13 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Gtin14.php b/library/Zend/Validate/Barcode/Gtin14.php index c2b31814..bf03f118 100644 --- a/library/Zend/Validate/Barcode/Gtin14.php +++ b/library/Zend/Validate/Barcode/Gtin14.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Gtin14 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Identcode.php b/library/Zend/Validate/Barcode/Identcode.php index 6eeed47c..eac7b386 100644 --- a/library/Zend/Validate/Barcode/Identcode.php +++ b/library/Zend/Validate/Barcode/Identcode.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Identcode extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Intelligentmail.php b/library/Zend/Validate/Barcode/Intelligentmail.php index e40652e4..8b619d22 100644 --- a/library/Zend/Validate/Barcode/Intelligentmail.php +++ b/library/Zend/Validate/Barcode/Intelligentmail.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Intelligentmail extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Issn.php b/library/Zend/Validate/Barcode/Issn.php index b3d4562c..7f8c1cef 100644 --- a/library/Zend/Validate/Barcode/Issn.php +++ b/library/Zend/Validate/Barcode/Issn.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Issn extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Itf14.php b/library/Zend/Validate/Barcode/Itf14.php index a4b3cc5e..c8e3c9ec 100644 --- a/library/Zend/Validate/Barcode/Itf14.php +++ b/library/Zend/Validate/Barcode/Itf14.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Itf14 extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Leitcode.php b/library/Zend/Validate/Barcode/Leitcode.php index 476ac18e..e613dbfa 100644 --- a/library/Zend/Validate/Barcode/Leitcode.php +++ b/library/Zend/Validate/Barcode/Leitcode.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Leitcode extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Planet.php b/library/Zend/Validate/Barcode/Planet.php index fe20db2f..60c67414 100644 --- a/library/Zend/Validate/Barcode/Planet.php +++ b/library/Zend/Validate/Barcode/Planet.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Planet extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Postnet.php b/library/Zend/Validate/Barcode/Postnet.php index 9d52287d..234ae760 100644 --- a/library/Zend/Validate/Barcode/Postnet.php +++ b/library/Zend/Validate/Barcode/Postnet.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Postnet extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Royalmail.php b/library/Zend/Validate/Barcode/Royalmail.php index 67ba92fe..d55edd57 100644 --- a/library/Zend/Validate/Barcode/Royalmail.php +++ b/library/Zend/Validate/Barcode/Royalmail.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Royalmail extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Sscc.php b/library/Zend/Validate/Barcode/Sscc.php index adf6adc2..921c107e 100644 --- a/library/Zend/Validate/Barcode/Sscc.php +++ b/library/Zend/Validate/Barcode/Sscc.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Sscc extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Upca.php b/library/Zend/Validate/Barcode/Upca.php index 8006f4c9..61795e88 100644 --- a/library/Zend/Validate/Barcode/Upca.php +++ b/library/Zend/Validate/Barcode/Upca.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Upca extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Barcode/Upce.php b/library/Zend/Validate/Barcode/Upce.php index b85e7be0..0640f13c 100644 --- a/library/Zend/Validate/Barcode/Upce.php +++ b/library/Zend/Validate/Barcode/Upce.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Barcode_Upce extends Zend_Validate_Barcode_AdapterAbstract { /** diff --git a/library/Zend/Validate/Between.php b/library/Zend/Validate/Between.php index e0263a63..e9a1afbe 100644 --- a/library/Zend/Validate/Between.php +++ b/library/Zend/Validate/Between.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Between extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Callback.php b/library/Zend/Validate/Callback.php index 13c8bdcf..67d9ad97 100644 --- a/library/Zend/Validate/Callback.php +++ b/library/Zend/Validate/Callback.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Callback extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Ccnum.php b/library/Zend/Validate/Ccnum.php index b04d7c85..876918d8 100644 --- a/library/Zend/Validate/Ccnum.php +++ b/library/Zend/Validate/Ccnum.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Ccnum extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/CreditCard.php b/library/Zend/Validate/CreditCard.php index 179d9c30..a5b4f5fa 100644 --- a/library/Zend/Validate/CreditCard.php +++ b/library/Zend/Validate/CreditCard.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_CreditCard extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Date.php b/library/Zend/Validate/Date.php index f64ea2a2..d3e0b8f5 100644 --- a/library/Zend/Validate/Date.php +++ b/library/Zend/Validate/Date.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Date extends Zend_Validate_Abstract { public const INVALID = 'dateInvalid'; diff --git a/library/Zend/Validate/Db/Abstract.php b/library/Zend/Validate/Db/Abstract.php index e2c4b7bb..017758b5 100644 --- a/library/Zend/Validate/Db/Abstract.php +++ b/library/Zend/Validate/Db/Abstract.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_Validate_Db_Abstract extends Zend_Validate_Abstract { /** @@ -329,8 +330,8 @@ public function getSelect() if ($this->_exclude !== null) { if (is_array($this->_exclude)) { $select->where( - $db->quoteIdentifier($this->_exclude['field'], true) - . ' != ?', $this->_exclude['value'] + $db->quoteIdentifier($this->_exclude['field'], true) + . ' != ?', $this->_exclude['value'] ); } else { $select->where($this->_exclude); @@ -360,7 +361,7 @@ protected function _query($value) $select, ['value' => $value], // this should work whether db supports positional or named params Zend_Db::FETCH_ASSOC - ); + ); return $result; } diff --git a/library/Zend/Validate/Db/NoRecordExists.php b/library/Zend/Validate/Db/NoRecordExists.php index e2a96190..e968676a 100644 --- a/library/Zend/Validate/Db/NoRecordExists.php +++ b/library/Zend/Validate/Db/NoRecordExists.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Db_NoRecordExists extends Zend_Validate_Db_Abstract { public function isValid($value) diff --git a/library/Zend/Validate/Db/RecordExists.php b/library/Zend/Validate/Db/RecordExists.php index 5a823570..047909c5 100644 --- a/library/Zend/Validate/Db/RecordExists.php +++ b/library/Zend/Validate/Db/RecordExists.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Db_RecordExists extends Zend_Validate_Db_Abstract { public function isValid($value) diff --git a/library/Zend/Validate/Digits.php b/library/Zend/Validate/Digits.php index ae86fdc6..a0c7df71 100644 --- a/library/Zend/Validate/Digits.php +++ b/library/Zend/Validate/Digits.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Digits extends Zend_Validate_Abstract { public const NOT_DIGITS = 'notDigits'; diff --git a/library/Zend/Validate/EmailAddress.php b/library/Zend/Validate/EmailAddress.php index 38acf96a..8cb64652 100644 --- a/library/Zend/Validate/EmailAddress.php +++ b/library/Zend/Validate/EmailAddress.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_EmailAddress extends Zend_Validate_Abstract { public const INVALID = 'emailAddressInvalid'; diff --git a/library/Zend/Validate/Exception.php b/library/Zend/Validate/Exception.php index 142ce8ef..c25eb13a 100644 --- a/library/Zend/Validate/Exception.php +++ b/library/Zend/Validate/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Exception extends Zend_Exception { } diff --git a/library/Zend/Validate/File/Count.php b/library/Zend/Validate/File/Count.php index 9af5a9b3..536ef14a 100644 --- a/library/Zend/Validate/File/Count.php +++ b/library/Zend/Validate/File/Count.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Count extends Zend_Validate_Abstract { /**#@+ diff --git a/library/Zend/Validate/File/Crc32.php b/library/Zend/Validate/File/Crc32.php index f7df3163..4b4e409a 100644 --- a/library/Zend/Validate/File/Crc32.php +++ b/library/Zend/Validate/File/Crc32.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Crc32 extends Zend_Validate_File_Hash { /** diff --git a/library/Zend/Validate/File/ExcludeExtension.php b/library/Zend/Validate/File/ExcludeExtension.php index bea2fe71..5c2691d0 100644 --- a/library/Zend/Validate/File/ExcludeExtension.php +++ b/library/Zend/Validate/File/ExcludeExtension.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_ExcludeExtension extends Zend_Validate_File_Extension { /** diff --git a/library/Zend/Validate/File/ExcludeMimeType.php b/library/Zend/Validate/File/ExcludeMimeType.php index 94048f22..bd3eb4cb 100644 --- a/library/Zend/Validate/File/ExcludeMimeType.php +++ b/library/Zend/Validate/File/ExcludeMimeType.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_ExcludeMimeType extends Zend_Validate_File_MimeType { public const FALSE_TYPE = 'fileExcludeMimeTypeFalse'; diff --git a/library/Zend/Validate/File/Exists.php b/library/Zend/Validate/File/Exists.php index c2d7f2db..d5beac33 100644 --- a/library/Zend/Validate/File/Exists.php +++ b/library/Zend/Validate/File/Exists.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Exists extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/File/Extension.php b/library/Zend/Validate/File/Extension.php index 389b59db..f3109015 100644 --- a/library/Zend/Validate/File/Extension.php +++ b/library/Zend/Validate/File/Extension.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Extension extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/File/FilesSize.php b/library/Zend/Validate/File/FilesSize.php index 09bc5a0b..e3309506 100644 --- a/library/Zend/Validate/File/FilesSize.php +++ b/library/Zend/Validate/File/FilesSize.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_FilesSize extends Zend_Validate_File_Size { /** diff --git a/library/Zend/Validate/File/Hash.php b/library/Zend/Validate/File/Hash.php index cefc6067..c7171744 100644 --- a/library/Zend/Validate/File/Hash.php +++ b/library/Zend/Validate/File/Hash.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Hash extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/File/ImageSize.php b/library/Zend/Validate/File/ImageSize.php index dfc0324b..b8407811 100644 --- a/library/Zend/Validate/File/ImageSize.php +++ b/library/Zend/Validate/File/ImageSize.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_ImageSize extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/File/IsCompressed.php b/library/Zend/Validate/File/IsCompressed.php index b79e02a0..d4b5cec8 100644 --- a/library/Zend/Validate/File/IsCompressed.php +++ b/library/Zend/Validate/File/IsCompressed.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_IsCompressed extends Zend_Validate_File_MimeType { /** diff --git a/library/Zend/Validate/File/IsImage.php b/library/Zend/Validate/File/IsImage.php index 5d484c3e..c5b47b11 100644 --- a/library/Zend/Validate/File/IsImage.php +++ b/library/Zend/Validate/File/IsImage.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_IsImage extends Zend_Validate_File_MimeType { /** diff --git a/library/Zend/Validate/File/Md5.php b/library/Zend/Validate/File/Md5.php index 56132117..5ad74b31 100644 --- a/library/Zend/Validate/File/Md5.php +++ b/library/Zend/Validate/File/Md5.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Md5 extends Zend_Validate_File_Hash { /** diff --git a/library/Zend/Validate/File/MimeType.php b/library/Zend/Validate/File/MimeType.php index 61f62fd4..1c957e1f 100644 --- a/library/Zend/Validate/File/MimeType.php +++ b/library/Zend/Validate/File/MimeType.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_MimeType extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/File/NotExists.php b/library/Zend/Validate/File/NotExists.php index 123a98e1..f3fda96a 100644 --- a/library/Zend/Validate/File/NotExists.php +++ b/library/Zend/Validate/File/NotExists.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_NotExists extends Zend_Validate_File_Exists { /** diff --git a/library/Zend/Validate/File/Sha1.php b/library/Zend/Validate/File/Sha1.php index 56a896ec..265f333d 100644 --- a/library/Zend/Validate/File/Sha1.php +++ b/library/Zend/Validate/File/Sha1.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Sha1 extends Zend_Validate_File_Hash { /** diff --git a/library/Zend/Validate/File/Size.php b/library/Zend/Validate/File/Size.php index f204896b..4c437137 100644 --- a/library/Zend/Validate/File/Size.php +++ b/library/Zend/Validate/File/Size.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Size extends Zend_Validate_Abstract { /**#@+ diff --git a/library/Zend/Validate/File/Upload.php b/library/Zend/Validate/File/Upload.php index 4598ed3f..34e8d978 100644 --- a/library/Zend/Validate/File/Upload.php +++ b/library/Zend/Validate/File/Upload.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_Upload extends Zend_Validate_Abstract { /**@#+ diff --git a/library/Zend/Validate/File/WordCount.php b/library/Zend/Validate/File/WordCount.php index c3e8e6da..522998f1 100644 --- a/library/Zend/Validate/File/WordCount.php +++ b/library/Zend/Validate/File/WordCount.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_File_WordCount extends Zend_Validate_File_Count { /**#@+ diff --git a/library/Zend/Validate/Float.php b/library/Zend/Validate/Float.php index 5af22e00..03d059d5 100644 --- a/library/Zend/Validate/Float.php +++ b/library/Zend/Validate/Float.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Float extends Zend_Validate_Abstract { public const INVALID = 'floatInvalid'; diff --git a/library/Zend/Validate/GreaterThan.php b/library/Zend/Validate/GreaterThan.php index d344db93..80aa1b34 100644 --- a/library/Zend/Validate/GreaterThan.php +++ b/library/Zend/Validate/GreaterThan.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_GreaterThan extends Zend_Validate_Abstract { public const NOT_GREATER = 'notGreaterThan'; diff --git a/library/Zend/Validate/Hex.php b/library/Zend/Validate/Hex.php index 18a3fe6b..925ce0ad 100644 --- a/library/Zend/Validate/Hex.php +++ b/library/Zend/Validate/Hex.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Hex extends Zend_Validate_Abstract { public const INVALID = 'hexInvalid'; diff --git a/library/Zend/Validate/Hostname.php b/library/Zend/Validate/Hostname.php index 97108d97..bde0a3dd 100644 --- a/library/Zend/Validate/Hostname.php +++ b/library/Zend/Validate/Hostname.php @@ -39,6 +39,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Hostname extends Zend_Validate_Abstract { public const CANNOT_DECODE_PUNYCODE = 'hostnameCannotDecodePunycode'; diff --git a/library/Zend/Validate/Iban.php b/library/Zend/Validate/Iban.php index b3e504f7..462b4247 100644 --- a/library/Zend/Validate/Iban.php +++ b/library/Zend/Validate/Iban.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Iban extends Zend_Validate_Abstract { public const NOTSUPPORTED = 'ibanNotSupported'; diff --git a/library/Zend/Validate/Identical.php b/library/Zend/Validate/Identical.php index d96cdd7b..661fbd8e 100644 --- a/library/Zend/Validate/Identical.php +++ b/library/Zend/Validate/Identical.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Identical extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/InArray.php b/library/Zend/Validate/InArray.php index 267e8972..b09c5ba2 100644 --- a/library/Zend/Validate/InArray.php +++ b/library/Zend/Validate/InArray.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_InArray extends Zend_Validate_Abstract { public const NOT_IN_ARRAY = 'notInArray'; diff --git a/library/Zend/Validate/Int.php b/library/Zend/Validate/Int.php index 97f821a9..6c979d9e 100644 --- a/library/Zend/Validate/Int.php +++ b/library/Zend/Validate/Int.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Int extends Zend_Validate_Abstract { public const INVALID = 'intInvalid'; diff --git a/library/Zend/Validate/Ip.php b/library/Zend/Validate/Ip.php index 215d8d2f..5809c7bf 100644 --- a/library/Zend/Validate/Ip.php +++ b/library/Zend/Validate/Ip.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Ip extends Zend_Validate_Abstract { public const INVALID = 'ipInvalid'; diff --git a/library/Zend/Validate/Isbn.php b/library/Zend/Validate/Isbn.php index 71b0b508..a5a8ae6d 100644 --- a/library/Zend/Validate/Isbn.php +++ b/library/Zend/Validate/Isbn.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Isbn extends Zend_Validate_Abstract { public const AUTO = 'auto'; diff --git a/library/Zend/Validate/LessThan.php b/library/Zend/Validate/LessThan.php index db0b5acd..4517a2dd 100644 --- a/library/Zend/Validate/LessThan.php +++ b/library/Zend/Validate/LessThan.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_LessThan extends Zend_Validate_Abstract { public const NOT_LESS = 'notLessThan'; diff --git a/library/Zend/Validate/NotEmpty.php b/library/Zend/Validate/NotEmpty.php index db88b744..118413da 100644 --- a/library/Zend/Validate/NotEmpty.php +++ b/library/Zend/Validate/NotEmpty.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_NotEmpty extends Zend_Validate_Abstract { public const BOOLEAN = 1; @@ -194,7 +195,7 @@ public function isValid($value) // OBJECT (object) if ($type >= self::OBJECT) { $type -= self::OBJECT; - // fall trough, objects are always not empty + // fall trough, objects are always not empty } elseif ($object === false) { // object not allowed but object given -> return false if (is_object($value)) { diff --git a/library/Zend/Validate/PostCode.php b/library/Zend/Validate/PostCode.php index 88633a48..73131043 100644 --- a/library/Zend/Validate/PostCode.php +++ b/library/Zend/Validate/PostCode.php @@ -30,6 +30,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_PostCode extends Zend_Validate_Abstract { public const INVALID = 'postcodeInvalid'; diff --git a/library/Zend/Validate/Regex.php b/library/Zend/Validate/Regex.php index a5d3aa19..425647c7 100644 --- a/library/Zend/Validate/Regex.php +++ b/library/Zend/Validate/Regex.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Regex extends Zend_Validate_Abstract { public const INVALID = 'regexInvalid'; diff --git a/library/Zend/Validate/Sitemap/Changefreq.php b/library/Zend/Validate/Sitemap/Changefreq.php index 83c9a629..0e33dc30 100644 --- a/library/Zend/Validate/Sitemap/Changefreq.php +++ b/library/Zend/Validate/Sitemap/Changefreq.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_Changefreq extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Sitemap/Lastmod.php b/library/Zend/Validate/Sitemap/Lastmod.php index c5bf788c..b7e03515 100644 --- a/library/Zend/Validate/Sitemap/Lastmod.php +++ b/library/Zend/Validate/Sitemap/Lastmod.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_Lastmod extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Sitemap/Loc.php b/library/Zend/Validate/Sitemap/Loc.php index dccb56fd..0b981690 100644 --- a/library/Zend/Validate/Sitemap/Loc.php +++ b/library/Zend/Validate/Sitemap/Loc.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_Loc extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/Sitemap/Priority.php b/library/Zend/Validate/Sitemap/Priority.php index a69edc59..4ac4abb1 100644 --- a/library/Zend/Validate/Sitemap/Priority.php +++ b/library/Zend/Validate/Sitemap/Priority.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_Priority extends Zend_Validate_Abstract { /** diff --git a/library/Zend/Validate/StringLength.php b/library/Zend/Validate/StringLength.php index d8d168b1..df67dd86 100644 --- a/library/Zend/Validate/StringLength.php +++ b/library/Zend/Validate/StringLength.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_StringLength extends Zend_Validate_Abstract { public const INVALID = 'stringLengthInvalid'; diff --git a/library/Zend/View.php b/library/Zend/View.php index 8d94d5b1..957fe5a6 100644 --- a/library/Zend/View.php +++ b/library/Zend/View.php @@ -76,6 +76,7 @@ * @method string url(array $urlOptions = [], $name = null, $reset = false, $encode = true) * @method Zend_Http_UserAgent userAgent(Zend_Http_UserAgent $userAgent = null) */ +#[AllowDynamicProperties] class Zend_View extends Zend_View_Abstract { /** diff --git a/library/Zend/View/Abstract.php b/library/Zend/View/Abstract.php index a89c76f9..c7bea265 100644 --- a/library/Zend/View/Abstract.php +++ b/library/Zend/View/Abstract.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Abstract implements Zend_View_Interface { /** diff --git a/library/Zend/View/Exception.php b/library/Zend/View/Exception.php index 88ede058..e4271354 100644 --- a/library/Zend/View/Exception.php +++ b/library/Zend/View/Exception.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Exception extends Zend_Exception { protected $view; diff --git a/library/Zend/View/Helper/Abstract.php b/library/Zend/View/Helper/Abstract.php index 6cb4f304..997b6729 100644 --- a/library/Zend/View/Helper/Abstract.php +++ b/library/Zend/View/Helper/Abstract.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_Abstract implements Zend_View_Helper_Interface { /** diff --git a/library/Zend/View/Helper/Action.php b/library/Zend/View/Helper/Action.php index fc307b40..e4b1173b 100644 --- a/library/Zend/View/Helper/Action.php +++ b/library/Zend/View/Helper/Action.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Action extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/BaseUrl.php b/library/Zend/View/Helper/BaseUrl.php index 49e69bc0..359040c7 100644 --- a/library/Zend/View/Helper/BaseUrl.php +++ b/library/Zend/View/Helper/BaseUrl.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_BaseUrl extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Currency.php b/library/Zend/View/Helper/Currency.php index 9d9fb17e..10ce4a8d 100644 --- a/library/Zend/View/Helper/Currency.php +++ b/library/Zend/View/Helper/Currency.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Currency extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Cycle.php b/library/Zend/View/Helper/Cycle.php index d3af26e3..9afe3405 100644 --- a/library/Zend/View/Helper/Cycle.php +++ b/library/Zend/View/Helper/Cycle.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Cycle implements Iterator { /** @@ -150,21 +151,19 @@ public function __toString() /** * Move to next value. - * - * @return Zend_View_Helper_Cycle */ #[ReturnTypeWillChange] - public function next(): Zend_View_Helper_Cycle - { - $count = is_countable($this->_data[$this->_name]) ? count($this->_data[$this->_name]) : 0; - if ($this->_pointers[$this->_name] == ($count - 1)) { - $this->_pointers[$this->_name] = 0; - } else { - $this->_pointers[$this->_name] = ++$this->_pointers[$this->_name]; - } + public function next(): Zend_View_Helper_Cycle + { + $count = is_countable($this->_data[$this->_name]) ? count($this->_data[$this->_name]) : 0; + if ($this->_pointers[$this->_name] == ($count - 1)) { + $this->_pointers[$this->_name] = 0; + } else { + $this->_pointers[$this->_name] = ++$this->_pointers[$this->_name]; + } - return $this; - } + return $this; + } /** * Move to previous value. @@ -199,16 +198,14 @@ public function key(): mixed /** * Rewind pointer. - * - * @return Zend_View_Helper_Cycle */ #[ReturnTypeWillChange] - public function rewind(): Zend_View_Helper_Cycle - { - $this->_pointers[$this->_name] = -1; + public function rewind(): Zend_View_Helper_Cycle + { + $this->_pointers[$this->_name] = -1; - return $this; - } + return $this; + } /** * Check if element is valid. diff --git a/library/Zend/View/Helper/DeclareVars.php b/library/Zend/View/Helper/DeclareVars.php index 9ff5c7e6..1220c114 100644 --- a/library/Zend/View/Helper/DeclareVars.php +++ b/library/Zend/View/Helper/DeclareVars.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_DeclareVars extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Doctype.php b/library/Zend/View/Helper/Doctype.php index 087b08c3..78767407 100644 --- a/library/Zend/View/Helper/Doctype.php +++ b/library/Zend/View/Helper/Doctype.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract { /**#@+ diff --git a/library/Zend/View/Helper/Fieldset.php b/library/Zend/View/Helper/Fieldset.php index ad612ad6..581e2a60 100644 --- a/library/Zend/View/Helper/Fieldset.php +++ b/library/Zend/View/Helper/Fieldset.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Fieldset extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/Form.php b/library/Zend/View/Helper/Form.php index 4badca04..6233e235 100644 --- a/library/Zend/View/Helper/Form.php +++ b/library/Zend/View/Helper/Form.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Form extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormButton.php b/library/Zend/View/Helper/FormButton.php index 88b2ba2a..33acb89e 100644 --- a/library/Zend/View/Helper/FormButton.php +++ b/library/Zend/View/Helper/FormButton.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormButton extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormCheckbox.php b/library/Zend/View/Helper/FormCheckbox.php index 328602e0..3a12d39e 100644 --- a/library/Zend/View/Helper/FormCheckbox.php +++ b/library/Zend/View/Helper/FormCheckbox.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormCheckbox extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormElement.php b/library/Zend/View/Helper/FormElement.php index e4b84d34..385b00b3 100644 --- a/library/Zend/View/Helper/FormElement.php +++ b/library/Zend/View/Helper/FormElement.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_FormElement extends Zend_View_Helper_HtmlElement { /** @@ -144,7 +145,7 @@ protected function _getInfo($name, $value = null, $attribs = null, $info['id'] = (string) $attribs['id']; } elseif ('' !== $info['name']) { $info['id'] = trim(strtr($info['name'] ?? '', - ['[' => '-', ']' => '']), '-'); + ['[' => '-', ']' => '']), '-'); } // Remove NULL name attribute override diff --git a/library/Zend/View/Helper/FormErrors.php b/library/Zend/View/Helper/FormErrors.php index 611ca65c..00e47bf0 100644 --- a/library/Zend/View/Helper/FormErrors.php +++ b/library/Zend/View/Helper/FormErrors.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormErrors extends Zend_View_Helper_FormElement { /** @@ -48,7 +49,6 @@ class Zend_View_Helper_FormErrors extends Zend_View_Helper_FormElement * Render form errors. * * @param array|string $errors Error(s) to render - * @param array $options * * @return string */ diff --git a/library/Zend/View/Helper/FormFile.php b/library/Zend/View/Helper/FormFile.php index ed63f7df..4b53de14 100644 --- a/library/Zend/View/Helper/FormFile.php +++ b/library/Zend/View/Helper/FormFile.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormFile extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormHidden.php b/library/Zend/View/Helper/FormHidden.php index 5d288b03..0fe57803 100644 --- a/library/Zend/View/Helper/FormHidden.php +++ b/library/Zend/View/Helper/FormHidden.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormHidden extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormImage.php b/library/Zend/View/Helper/FormImage.php index cc865823..9b8ea07e 100644 --- a/library/Zend/View/Helper/FormImage.php +++ b/library/Zend/View/Helper/FormImage.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormImage extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormLabel.php b/library/Zend/View/Helper/FormLabel.php index fb0c25b0..ce61cb30 100644 --- a/library/Zend/View/Helper/FormLabel.php +++ b/library/Zend/View/Helper/FormLabel.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormLabel extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormMultiCheckbox.php b/library/Zend/View/Helper/FormMultiCheckbox.php index 0416ab9e..8ec52da5 100644 --- a/library/Zend/View/Helper/FormMultiCheckbox.php +++ b/library/Zend/View/Helper/FormMultiCheckbox.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormMultiCheckbox extends Zend_View_Helper_FormRadio { /** diff --git a/library/Zend/View/Helper/FormNote.php b/library/Zend/View/Helper/FormNote.php index 89432ad6..e426ef3a 100644 --- a/library/Zend/View/Helper/FormNote.php +++ b/library/Zend/View/Helper/FormNote.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormNote extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormPassword.php b/library/Zend/View/Helper/FormPassword.php index 3b90d2df..656442c5 100644 --- a/library/Zend/View/Helper/FormPassword.php +++ b/library/Zend/View/Helper/FormPassword.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormPassword extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormRadio.php b/library/Zend/View/Helper/FormRadio.php index 8020dcc0..1caa778e 100644 --- a/library/Zend/View/Helper/FormRadio.php +++ b/library/Zend/View/Helper/FormRadio.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormRadio extends Zend_View_Helper_FormElement { /** @@ -121,7 +122,6 @@ public function formRadio($name, $value = null, $attribs = null, // add radio buttons to the list. foreach ($options as $opt_value => $opt_label) { - // Should the label be escaped? if ($escape) { $opt_label = $this->view->escape($opt_label); diff --git a/library/Zend/View/Helper/FormReset.php b/library/Zend/View/Helper/FormReset.php index 695569ec..02799246 100644 --- a/library/Zend/View/Helper/FormReset.php +++ b/library/Zend/View/Helper/FormReset.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormReset extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormSelect.php b/library/Zend/View/Helper/FormSelect.php index b47aa0d4..b2a10bd9 100644 --- a/library/Zend/View/Helper/FormSelect.php +++ b/library/Zend/View/Helper/FormSelect.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormSelect extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormSubmit.php b/library/Zend/View/Helper/FormSubmit.php index fdb2c455..d0d35d96 100644 --- a/library/Zend/View/Helper/FormSubmit.php +++ b/library/Zend/View/Helper/FormSubmit.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormText.php b/library/Zend/View/Helper/FormText.php index f0daf769..ef64eee8 100644 --- a/library/Zend/View/Helper/FormText.php +++ b/library/Zend/View/Helper/FormText.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormText extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/FormTextarea.php b/library/Zend/View/Helper/FormTextarea.php index 3d02b757..4e494227 100644 --- a/library/Zend/View/Helper/FormTextarea.php +++ b/library/Zend/View/Helper/FormTextarea.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_FormTextarea extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/Gravatar.php b/library/Zend/View/Helper/Gravatar.php index 09ffc83a..7a193893 100644 --- a/library/Zend/View/Helper/Gravatar.php +++ b/library/Zend/View/Helper/Gravatar.php @@ -27,6 +27,7 @@ * * @see http://pl.gravatar.com/site/implement/url */ +#[AllowDynamicProperties] class Zend_View_Helper_Gravatar extends Zend_View_Helper_HtmlElement { /** diff --git a/library/Zend/View/Helper/HeadLink.php b/library/Zend/View/Helper/HeadLink.php index 96083084..2409d308 100644 --- a/library/Zend/View/Helper/HeadLink.php +++ b/library/Zend/View/Helper/HeadLink.php @@ -38,6 +38,7 @@ * @method $this setAlternate($href, $type, $title, $extras) * @method $this setStylesheet($href, $media = 'screen', $conditionalStylesheet = false, array $extras = array()) */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadLink extends Zend_View_Helper_Placeholder_Container_Standalone { /** diff --git a/library/Zend/View/Helper/HeadMeta.php b/library/Zend/View/Helper/HeadMeta.php index 4ad61eeb..c12eaaec 100644 --- a/library/Zend/View/Helper/HeadMeta.php +++ b/library/Zend/View/Helper/HeadMeta.php @@ -42,6 +42,7 @@ * @method $this setName($keyValue, $content, $modifiers) * @method $this setProperty($property, $content, $modifiers) */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadMeta extends Zend_View_Helper_Placeholder_Container_Standalone { /** diff --git a/library/Zend/View/Helper/HeadScript.php b/library/Zend/View/Helper/HeadScript.php index 2423deb4..0385b975 100644 --- a/library/Zend/View/Helper/HeadScript.php +++ b/library/Zend/View/Helper/HeadScript.php @@ -36,6 +36,7 @@ * @method $this setFile($src, $type = 'text/javascript', array $attrs = array()) * @method $this setScript($script, $type = 'text/javascript', array $attrs = array()) */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadScript extends Zend_View_Helper_Placeholder_Container_Standalone { /**#@+ diff --git a/library/Zend/View/Helper/HeadStyle.php b/library/Zend/View/Helper/HeadStyle.php index 0166c164..173cb40f 100644 --- a/library/Zend/View/Helper/HeadStyle.php +++ b/library/Zend/View/Helper/HeadStyle.php @@ -32,6 +32,7 @@ * @method $this prependStyle($content, array $attributes = array()) * @method $this setStyle($content, array $attributes = array()) */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadStyle extends Zend_View_Helper_Placeholder_Container_Standalone { /** diff --git a/library/Zend/View/Helper/HeadTitle.php b/library/Zend/View/Helper/HeadTitle.php index 699d419b..35d8cc09 100644 --- a/library/Zend/View/Helper/HeadTitle.php +++ b/library/Zend/View/Helper/HeadTitle.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadTitle extends Zend_View_Helper_Placeholder_Container_Standalone { /** diff --git a/library/Zend/View/Helper/HtmlElement.php b/library/Zend/View/Helper/HtmlElement.php index d9c3d549..82e00f01 100644 --- a/library/Zend/View/Helper/HtmlElement.php +++ b/library/Zend/View/Helper/HtmlElement.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_HtmlElement extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/HtmlFlash.php b/library/Zend/View/Helper/HtmlFlash.php index 63402e29..626f1d53 100644 --- a/library/Zend/View/Helper/HtmlFlash.php +++ b/library/Zend/View/Helper/HtmlFlash.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlFlash extends Zend_View_Helper_HtmlObject { /** diff --git a/library/Zend/View/Helper/HtmlList.php b/library/Zend/View/Helper/HtmlList.php index eb911c36..8ddf051e 100644 --- a/library/Zend/View/Helper/HtmlList.php +++ b/library/Zend/View/Helper/HtmlList.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlList extends Zend_View_Helper_FormElement { /** diff --git a/library/Zend/View/Helper/HtmlObject.php b/library/Zend/View/Helper/HtmlObject.php index 3c02232b..279761c7 100644 --- a/library/Zend/View/Helper/HtmlObject.php +++ b/library/Zend/View/Helper/HtmlObject.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlObject extends Zend_View_Helper_HtmlElement { /** diff --git a/library/Zend/View/Helper/HtmlPage.php b/library/Zend/View/Helper/HtmlPage.php index c45ec833..d923611a 100644 --- a/library/Zend/View/Helper/HtmlPage.php +++ b/library/Zend/View/Helper/HtmlPage.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlPage extends Zend_View_Helper_HtmlObject { /** diff --git a/library/Zend/View/Helper/HtmlQuicktime.php b/library/Zend/View/Helper/HtmlQuicktime.php index 18e61208..58ad53d3 100644 --- a/library/Zend/View/Helper/HtmlQuicktime.php +++ b/library/Zend/View/Helper/HtmlQuicktime.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlQuicktime extends Zend_View_Helper_HtmlObject { /** diff --git a/library/Zend/View/Helper/InlineScript.php b/library/Zend/View/Helper/InlineScript.php index 3b164e45..a49366d2 100644 --- a/library/Zend/View/Helper/InlineScript.php +++ b/library/Zend/View/Helper/InlineScript.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_InlineScript extends Zend_View_Helper_HeadScript { /** diff --git a/library/Zend/View/Helper/Json.php b/library/Zend/View/Helper/Json.php index 7bf064b8..cf33146f 100644 --- a/library/Zend/View/Helper/Json.php +++ b/library/Zend/View/Helper/Json.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Json extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Layout.php b/library/Zend/View/Helper/Layout.php index 194e4f70..f7e415d8 100644 --- a/library/Zend/View/Helper/Layout.php +++ b/library/Zend/View/Helper/Layout.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Layout extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Navigation.php b/library/Zend/View/Helper/Navigation.php index 3069711f..76890bcd 100644 --- a/library/Zend/View/Helper/Navigation.php +++ b/library/Zend/View/Helper/Navigation.php @@ -32,6 +32,7 @@ * @method Zend_View_Helper_Navigation_Menu menu * @method Zend_View_Helper_Navigation_Sitemap sitemap */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation extends Zend_View_Helper_Navigation_HelperAbstract { /** @@ -152,8 +153,8 @@ public function findHelper($proxy, $strict = true) $this->view->setHelperPath(null); $this->view->addHelperPath( - str_replace('_', '/', self::NS), - self::NS); + str_replace('_', '/', self::NS), + self::NS); foreach ($paths as $ns => $path) { $this->view->addHelperPath($path, $ns); @@ -174,9 +175,9 @@ public function findHelper($proxy, $strict = true) if ($strict) { require_once 'Zend/View/Exception.php'; $e = new Zend_View_Exception(sprintf( - 'Proxy helper "%s" is not an instance of ' - . \Zend_View_Helper_Navigation_Helper::class, - get_class($helper))); + 'Proxy helper "%s" is not an instance of ' + . \Zend_View_Helper_Navigation_Helper::class, + get_class($helper))); $e->setView($this->view); throw $e; diff --git a/library/Zend/View/Helper/Navigation/Breadcrumbs.php b/library/Zend/View/Helper/Navigation/Breadcrumbs.php index aa8ad94d..66cfc753 100644 --- a/library/Zend/View/Helper/Navigation/Breadcrumbs.php +++ b/library/Zend/View/Helper/Navigation/Breadcrumbs.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_Breadcrumbs extends Zend_View_Helper_Navigation_HelperAbstract { /** diff --git a/library/Zend/View/Helper/Navigation/HelperAbstract.php b/library/Zend/View/Helper/Navigation/HelperAbstract.php index 8db705ed..2272f332 100644 --- a/library/Zend/View/Helper/Navigation/HelperAbstract.php +++ b/library/Zend/View/Helper/Navigation/HelperAbstract.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_Navigation_HelperAbstract extends Zend_View_Helper_HtmlElement implements Zend_View_Helper_Navigation_Helper { /** @@ -368,8 +369,8 @@ public function getPrefixForId() if (null === $this->_prefixForId) { $prefix = get_class($this); $this->_prefixForId = strtolower( - trim(substr($prefix, strrpos($prefix, '_')), '_') - ) . '-'; + trim(substr($prefix, strrpos($prefix, '_')), '_') + ) . '-'; } return $this->_prefixForId; @@ -625,8 +626,8 @@ public function getUseTranslator() public function __call($method, array $arguments = []) { return call_user_func_array( - [$this->getContainer(), $method], - $arguments); + [$this->getContainer(), $method], + $arguments); } /** @@ -690,7 +691,7 @@ public function findActive(Zend_Navigation_Container $container, $found = null; $foundDepth = -1; $iterator = new RecursiveIteratorIterator($container, - RecursiveIteratorIterator::CHILD_FIRST); + RecursiveIteratorIterator::CHILD_FIRST); foreach ($iterator as $page) { $currDepth = $iterator->getDepth(); diff --git a/library/Zend/View/Helper/Navigation/Links.php b/library/Zend/View/Helper/Navigation/Links.php index 0f15f799..1eda84b4 100644 --- a/library/Zend/View/Helper/Navigation/Links.php +++ b/library/Zend/View/Helper/Navigation/Links.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_Links extends Zend_View_Helper_Navigation_HelperAbstract { /**#@+ @@ -135,8 +136,8 @@ public function __call($method, array $arguments = []) { if (@preg_match('/find(Rel|Rev)(.+)/', $method, $match)) { return $this->findRelation($arguments[0], - strtolower($match[1]), - strtolower($match[2])); + strtolower($match[1]), + strtolower($match[2])); } return parent::__call($method, $arguments); @@ -385,7 +386,7 @@ public function searchRelNext(Zend_Navigation_Page $page) $found = null; $break = false; $iterator = new RecursiveIteratorIterator($this->_findRoot($page), - RecursiveIteratorIterator::SELF_FIRST); + RecursiveIteratorIterator::SELF_FIRST); foreach ($iterator as $intermediate) { if ($intermediate === $page) { // current page; break at next accepted page @@ -421,8 +422,8 @@ public function searchRelPrev(Zend_Navigation_Page $page) $found = null; $prev = null; $iterator = new RecursiveIteratorIterator( - $this->_findRoot($page), - RecursiveIteratorIterator::SELF_FIRST); + $this->_findRoot($page), + RecursiveIteratorIterator::SELF_FIRST); foreach ($iterator as $intermediate) { if (!$this->accept($intermediate)) { continue; @@ -694,6 +695,7 @@ protected function _convertToPages($mixed, $recursive = true) return $pages; } + // pass array to factory directly try { $page = Zend_Navigation_Page::factory($mixed); @@ -729,8 +731,8 @@ public function renderLink(Zend_Navigation_Page $page, $attrib, $relation) if (!in_array($attrib, ['rel', 'rev'])) { require_once 'Zend/View/Exception.php'; $e = new Zend_View_Exception(sprintf( - 'Invalid relation attribute "%s", must be "rel" or "rev"', - $attrib)); + 'Invalid relation attribute "%s", must be "rel" or "rev"', + $attrib)); $e->setView($this->view); throw $e; diff --git a/library/Zend/View/Helper/Navigation/Menu.php b/library/Zend/View/Helper/Navigation/Menu.php index db7faa4f..973b7978 100644 --- a/library/Zend/View/Helper/Navigation/Menu.php +++ b/library/Zend/View/Helper/Navigation/Menu.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_Menu extends Zend_View_Helper_Navigation_HelperAbstract { /** @@ -757,7 +758,7 @@ protected function _renderMenu(Zend_Navigation_Container $container, // create iterator $iterator = new RecursiveIteratorIterator($container, - RecursiveIteratorIterator::SELF_FIRST); + RecursiveIteratorIterator::SELF_FIRST); if (is_int($maxDepth)) { $iterator->setMaxDepth($maxDepth); } diff --git a/library/Zend/View/Helper/Navigation/Sitemap.php b/library/Zend/View/Helper/Navigation/Sitemap.php index 4be834ba..7cf2eb66 100644 --- a/library/Zend/View/Helper/Navigation/Sitemap.php +++ b/library/Zend/View/Helper/Navigation/Sitemap.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_Sitemap extends Zend_View_Helper_Navigation_HelperAbstract { /** @@ -196,8 +197,8 @@ public function setServerUrl($serverUrl) } else { require_once 'Zend/Uri/Exception.php'; $e = new Zend_Uri_Exception(sprintf( - 'Invalid server URL: "%s"', - $serverUrl)); + 'Invalid server URL: "%s"', + $serverUrl)); $e->setView($this->view); throw $e; @@ -348,8 +349,8 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) && !$locValidator->isValid($url)) { require_once 'Zend/View/Exception.php'; $e = new Zend_View_Exception(sprintf( - 'Encountered an invalid URL for Sitemap XML: "%s"', - $url)); + 'Encountered an invalid URL for Sitemap XML: "%s"', + $url)); $e->setView($this->view); throw $e; @@ -357,7 +358,7 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) // put url in 'loc' element $urlNode->appendChild($dom->createElementNS(self::SITEMAP_NS, - 'loc', $url)); + 'loc', $url)); // add 'lastmod' element if a valid lastmod is set in page if (isset($page->lastmod)) { @@ -372,7 +373,7 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) || $lastmodValidator->isValid($lastmod)) { $urlNode->appendChild( $dom->createElementNS(self::SITEMAP_NS, 'lastmod', - $lastmod) + $lastmod) ); } } @@ -384,7 +385,7 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) || $changefreqValidator->isValid($changefreq)) { $urlNode->appendChild( $dom->createElementNS(self::SITEMAP_NS, 'changefreq', - $changefreq) + $changefreq) ); } } @@ -396,7 +397,7 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) || $priorityValidator->isValid($priority)) { $urlNode->appendChild( $dom->createElementNS(self::SITEMAP_NS, 'priority', - $priority) + $priority) ); } } @@ -407,8 +408,8 @@ public function getDomSitemap(?Zend_Navigation_Container $container = null) if (!@$dom->schemaValidate(self::SITEMAP_XSD)) { require_once 'Zend/View/Exception.php'; $e = new Zend_View_Exception(sprintf( - 'Sitemap is invalid according to XML Schema at "%s"', - self::SITEMAP_XSD)); + 'Sitemap is invalid according to XML Schema at "%s"', + self::SITEMAP_XSD)); $e->setView($this->view); throw $e; diff --git a/library/Zend/View/Helper/PaginationControl.php b/library/Zend/View/Helper/PaginationControl.php index a9c5b063..876dd150 100644 --- a/library/Zend/View/Helper/PaginationControl.php +++ b/library/Zend/View/Helper/PaginationControl.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_PaginationControl { /** diff --git a/library/Zend/View/Helper/Partial.php b/library/Zend/View/Helper/Partial.php index 5b5dd0a3..4893be3c 100644 --- a/library/Zend/View/Helper/Partial.php +++ b/library/Zend/View/Helper/Partial.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Partial extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Partial/Exception.php b/library/Zend/View/Helper/Partial/Exception.php index fa8a741b..33ec29c8 100644 --- a/library/Zend/View/Helper/Partial/Exception.php +++ b/library/Zend/View/Helper/Partial/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Partial_Exception extends Zend_View_Exception { } diff --git a/library/Zend/View/Helper/PartialLoop.php b/library/Zend/View/Helper/PartialLoop.php index 5a24de07..8c986bb7 100644 --- a/library/Zend/View/Helper/PartialLoop.php +++ b/library/Zend/View/Helper/PartialLoop.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop extends Zend_View_Helper_Partial { /** diff --git a/library/Zend/View/Helper/Placeholder.php b/library/Zend/View/Helper/Placeholder.php index 997db526..1527b6a2 100644 --- a/library/Zend/View/Helper/Placeholder.php +++ b/library/Zend/View/Helper/Placeholder.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Placeholder/Container.php b/library/Zend/View/Helper/Placeholder/Container.php index 94db569a..0098c08a 100644 --- a/library/Zend/View/Helper/Placeholder/Container.php +++ b/library/Zend/View/Helper/Placeholder/Container.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_Container extends Zend_View_Helper_Placeholder_Container_Abstract { } diff --git a/library/Zend/View/Helper/Placeholder/Container/Abstract.php b/library/Zend/View/Helper/Placeholder/Container/Abstract.php index e6d9595e..9144e72f 100644 --- a/library/Zend/View/Helper/Placeholder/Container/Abstract.php +++ b/library/Zend/View/Helper/Placeholder/Container/Abstract.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObject { /** diff --git a/library/Zend/View/Helper/Placeholder/Container/Exception.php b/library/Zend/View/Helper/Placeholder/Container/Exception.php index 1a9c907c..10c42317 100644 --- a/library/Zend/View/Helper/Placeholder/Container/Exception.php +++ b/library/Zend/View/Helper/Placeholder/Container/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_Container_Exception extends Zend_View_Exception { } diff --git a/library/Zend/View/Helper/Placeholder/Container/Standalone.php b/library/Zend/View/Helper/Placeholder/Container/Standalone.php index 8079ab72..b8d00499 100644 --- a/library/Zend/View/Helper/Placeholder/Container/Standalone.php +++ b/library/Zend/View/Helper/Placeholder/Container/Standalone.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_View_Helper_Abstract implements IteratorAggregate, Countable, ArrayAccess { /** diff --git a/library/Zend/View/Helper/Placeholder/Registry.php b/library/Zend/View/Helper/Placeholder/Registry.php index 097602cb..139438a9 100644 --- a/library/Zend/View/Helper/Placeholder/Registry.php +++ b/library/Zend/View/Helper/Placeholder/Registry.php @@ -31,6 +31,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_Registry { /** diff --git a/library/Zend/View/Helper/Placeholder/Registry/Exception.php b/library/Zend/View/Helper/Placeholder/Registry/Exception.php index a78dc9ea..25251b0a 100644 --- a/library/Zend/View/Helper/Placeholder/Registry/Exception.php +++ b/library/Zend/View/Helper/Placeholder/Registry/Exception.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_Registry_Exception extends Zend_View_Exception { } diff --git a/library/Zend/View/Helper/RenderToPlaceholder.php b/library/Zend/View/Helper/RenderToPlaceholder.php index 9e05abb7..c1923031 100644 --- a/library/Zend/View/Helper/RenderToPlaceholder.php +++ b/library/Zend/View/Helper/RenderToPlaceholder.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_RenderToPlaceholder extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/ServerUrl.php b/library/Zend/View/Helper/ServerUrl.php index b2cdc6b9..ac821595 100644 --- a/library/Zend/View/Helper/ServerUrl.php +++ b/library/Zend/View/Helper/ServerUrl.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_ServerUrl { /** @@ -51,7 +52,7 @@ public function __construct() break; default: - $scheme = 'http'; + $scheme = 'http'; } $this->setScheme($scheme); diff --git a/library/Zend/View/Helper/Translate.php b/library/Zend/View/Helper/Translate.php index 6d272142..66886bcb 100644 --- a/library/Zend/View/Helper/Translate.php +++ b/library/Zend/View/Helper/Translate.php @@ -28,6 +28,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Translate extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/Url.php b/library/Zend/View/Helper/Url.php index feb5a88a..c595ba77 100644 --- a/library/Zend/View/Helper/Url.php +++ b/library/Zend/View/Helper/Url.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Url extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Helper/UserAgent.php b/library/Zend/View/Helper/UserAgent.php index 9bf0ca90..9027a954 100644 --- a/library/Zend/View/Helper/UserAgent.php +++ b/library/Zend/View/Helper/UserAgent.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_UserAgent extends Zend_View_Helper_Abstract { /** diff --git a/library/Zend/View/Stream.php b/library/Zend/View/Stream.php index 9808db04..eb98a8a5 100644 --- a/library/Zend/View/Stream.php +++ b/library/Zend/View/Stream.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Stream { /** @@ -159,7 +160,7 @@ public function stream_seek($offset, $whence) return true; } - return false; + return false; break; @@ -170,7 +171,7 @@ public function stream_seek($offset, $whence) return true; } - return false; + return false; break; @@ -181,7 +182,7 @@ public function stream_seek($offset, $whence) return true; } - return false; + return false; break; diff --git a/library/Zend/Xml/Exception.php b/library/Zend/Xml/Exception.php index e62bb4bd..c93e4118 100644 --- a/library/Zend/Xml/Exception.php +++ b/library/Zend/Xml/Exception.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Xml_Exception extends Zend_Exception { } diff --git a/library/Zend/Xml/Security.php b/library/Zend/Xml/Security.php index 6969ff6c..1e8da24e 100644 --- a/library/Zend/Xml/Security.php +++ b/library/Zend/Xml/Security.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Xml_Security { public const ENTITY_DETECT = 'Detected use of ENTITY in XML, disabled to prevent XXE/XEE attacks'; @@ -59,7 +60,6 @@ public static function loadXmlErrorHandler($errno, $errstr, $errfile, $errline) * Scan XML string for potential XXE and XEE attacks. * * @param string $xml - * @param DomDocument $dom * * @return bool|DomDocument|SimpleXMLElement */ @@ -133,7 +133,6 @@ public static function scan($xml, ?DOMDocument $dom = null) * Scan XML file for potential XXE/XEE attacks. * * @param string $file - * @param DOMDocument $dom * * @return DomDocument|SimpleXMLElement */ diff --git a/library/ZendX/Exception.php b/library/ZendX/Exception.php index 3bb74dca..04cf4dd3 100644 --- a/library/ZendX/Exception.php +++ b/library/ZendX/Exception.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_Exception extends Zend_Exception { } diff --git a/library/ZendX/JQuery.php b/library/ZendX/JQuery.php index 1947c858..6734e767 100644 --- a/library/ZendX/JQuery.php +++ b/library/ZendX/JQuery.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery { /** @@ -47,12 +48,14 @@ class ZendX_JQuery /** * @see http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery + * * @const string Base path to CDN */ public const CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/'; /** * @see http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery + * * @const string Base path to CDN */ public const CDN_BASE_GOOGLE_SSL = 'https://ajax.googleapis.com/ajax/libs/'; @@ -72,6 +75,7 @@ class ZendX_JQuery * in production enviroment. An uncompressed version has to included manually. * * @see http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery + * * @const string File path after base and version */ public const CDN_JQUERY_PATH_GOOGLE = '/jquery.min.js'; @@ -82,6 +86,7 @@ class ZendX_JQuery * way the jQuery autogenerated code can be refactored based on personal needs. * * @see ZendX_JQuery_Helper_JQuery::setRenderMode + * * @const Integer */ public const RENDER_LIBRARY = 1; diff --git a/library/ZendX/JQuery/Exception.php b/library/ZendX/JQuery/Exception.php index 3cef3965..30e673df 100644 --- a/library/ZendX/JQuery/Exception.php +++ b/library/ZendX/JQuery/Exception.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Exception extends Zend_Exception { } diff --git a/library/ZendX/JQuery/Form.php b/library/ZendX/JQuery/Form.php index b249e5bf..25ad9066 100644 --- a/library/ZendX/JQuery/Form.php +++ b/library/ZendX/JQuery/Form.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form extends Zend_Form { /** @@ -44,8 +45,6 @@ public function __construct($options = null) * * Ensures that the view object has the jQuery view helper path set. * - * @param Zend_View_Interface $view - * * @return ZendX_JQuery_Form */ public function setView(?Zend_View_Interface $view = null) diff --git a/library/ZendX/JQuery/Form/Decorator/AccordionContainer.php b/library/ZendX/JQuery/Form/Decorator/AccordionContainer.php index fa099581..4f0032ae 100644 --- a/library/ZendX/JQuery/Form/Decorator/AccordionContainer.php +++ b/library/ZendX/JQuery/Form/Decorator/AccordionContainer.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_AccordionContainer extends ZendX_JQuery_Form_Decorator_UiWidgetContainer { protected $_helper = 'accordionContainer'; diff --git a/library/ZendX/JQuery/Form/Decorator/AccordionPane.php b/library/ZendX/JQuery/Form/Decorator/AccordionPane.php index ab39a903..7800996b 100644 --- a/library/ZendX/JQuery/Form/Decorator/AccordionPane.php +++ b/library/ZendX/JQuery/Form/Decorator/AccordionPane.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_AccordionPane extends ZendX_JQuery_Form_Decorator_UiWidgetPane { protected $_helper = 'accordionPane'; diff --git a/library/ZendX/JQuery/Form/Decorator/DialogContainer.php b/library/ZendX/JQuery/Form/Decorator/DialogContainer.php index 17f4a25d..32e34c34 100644 --- a/library/ZendX/JQuery/Form/Decorator/DialogContainer.php +++ b/library/ZendX/JQuery/Form/Decorator/DialogContainer.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_DialogContainer extends ZendX_JQuery_Form_Decorator_UiWidgetContainer { protected $_helper = 'dialogContainer'; diff --git a/library/ZendX/JQuery/Form/Decorator/TabContainer.php b/library/ZendX/JQuery/Form/Decorator/TabContainer.php index 625a0c81..67c2c170 100644 --- a/library/ZendX/JQuery/Form/Decorator/TabContainer.php +++ b/library/ZendX/JQuery/Form/Decorator/TabContainer.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_TabContainer extends ZendX_JQuery_Form_Decorator_UiWidgetContainer { protected $_helper = 'tabContainer'; diff --git a/library/ZendX/JQuery/Form/Decorator/TabPane.php b/library/ZendX/JQuery/Form/Decorator/TabPane.php index 3ea85ecd..86b57b41 100644 --- a/library/ZendX/JQuery/Form/Decorator/TabPane.php +++ b/library/ZendX/JQuery/Form/Decorator/TabPane.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_TabPane extends ZendX_JQuery_Form_Decorator_UiWidgetPane { protected $_helper = 'tabPane'; diff --git a/library/ZendX/JQuery/Form/Decorator/UiWidgetContainer.php b/library/ZendX/JQuery/Form/Decorator/UiWidgetContainer.php index 7655425d..c45e1a5a 100644 --- a/library/ZendX/JQuery/Form/Decorator/UiWidgetContainer.php +++ b/library/ZendX/JQuery/Form/Decorator/UiWidgetContainer.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class ZendX_JQuery_Form_Decorator_UiWidgetContainer extends Zend_Form_Decorator_Abstract { /** diff --git a/library/ZendX/JQuery/Form/Decorator/UiWidgetElement.php b/library/ZendX/JQuery/Form/Decorator/UiWidgetElement.php index 77034c14..b9bd0ff4 100644 --- a/library/ZendX/JQuery/Form/Decorator/UiWidgetElement.php +++ b/library/ZendX/JQuery/Form/Decorator/UiWidgetElement.php @@ -32,6 +32,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Decorator_UiWidgetElement extends Zend_Form_Decorator_ViewHelper implements ZendX_JQuery_Form_Decorator_UiWidgetElementMarker { /** diff --git a/library/ZendX/JQuery/Form/Decorator/UiWidgetPane.php b/library/ZendX/JQuery/Form/Decorator/UiWidgetPane.php index f99bdbbb..e1cd0f36 100644 --- a/library/ZendX/JQuery/Form/Decorator/UiWidgetPane.php +++ b/library/ZendX/JQuery/Form/Decorator/UiWidgetPane.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class ZendX_JQuery_Form_Decorator_UiWidgetPane extends Zend_Form_Decorator_Abstract { /** diff --git a/library/ZendX/JQuery/Form/Element/AutoComplete.php b/library/ZendX/JQuery/Form/Element/AutoComplete.php index 4a3584ad..3b2ba025 100644 --- a/library/ZendX/JQuery/Form/Element/AutoComplete.php +++ b/library/ZendX/JQuery/Form/Element/AutoComplete.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Element_AutoComplete extends ZendX_JQuery_Form_Element_UiWidget { public $helper = 'autoComplete'; diff --git a/library/ZendX/JQuery/Form/Element/DatePicker.php b/library/ZendX/JQuery/Form/Element/DatePicker.php index 1ee748dc..2dd7d5d3 100644 --- a/library/ZendX/JQuery/Form/Element/DatePicker.php +++ b/library/ZendX/JQuery/Form/Element/DatePicker.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Element_DatePicker extends ZendX_JQuery_Form_Element_UiWidget { public $helper = 'datePicker'; diff --git a/library/ZendX/JQuery/Form/Element/Slider.php b/library/ZendX/JQuery/Form/Element/Slider.php index 22c83607..ec832996 100644 --- a/library/ZendX/JQuery/Form/Element/Slider.php +++ b/library/ZendX/JQuery/Form/Element/Slider.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Element_Slider extends ZendX_JQuery_Form_Element_UiWidget { public $helper = 'slider'; diff --git a/library/ZendX/JQuery/Form/Element/Spinner.php b/library/ZendX/JQuery/Form/Element/Spinner.php index a0f24c24..14a60689 100644 --- a/library/ZendX/JQuery/Form/Element/Spinner.php +++ b/library/ZendX/JQuery/Form/Element/Spinner.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Element_Spinner extends ZendX_JQuery_Form_Element_UiWidget { public $helper = 'spinner'; diff --git a/library/ZendX/JQuery/Form/Element/UiWidget.php b/library/ZendX/JQuery/Form/Element/UiWidget.php index 72185b40..0b91e15b 100644 --- a/library/ZendX/JQuery/Form/Element/UiWidget.php +++ b/library/ZendX/JQuery/Form/Element/UiWidget.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_Form_Element_UiWidget extends Zend_Form_Element { /** @@ -129,8 +130,6 @@ public function loadDefaultDecorators() * * Ensures that the view object has the jQuery view helper path set. * - * @param Zend_View_Interface $view - * * @return ZendX_JQuery_Form_Element_UiWidget */ public function setView(?Zend_View_Interface $view = null) diff --git a/library/ZendX/JQuery/View/Exception.php b/library/ZendX/JQuery/View/Exception.php index c1df9ca1..dd0718a8 100644 --- a/library/ZendX/JQuery/View/Exception.php +++ b/library/ZendX/JQuery/View/Exception.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Exception extends ZendX_JQuery_Exception { } diff --git a/library/ZendX/JQuery/View/Helper/AutoComplete.php b/library/ZendX/JQuery/View/Helper/AutoComplete.php index b7220f87..0fbcb4bd 100644 --- a/library/ZendX/JQuery/View/Helper/AutoComplete.php +++ b/library/ZendX/JQuery/View/Helper/AutoComplete.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_AutoComplete extends ZendX_JQuery_View_Helper_UiWidget { /** @@ -72,9 +73,9 @@ public function autoComplete($id, $value = null, array $params = [], array $attr $params = ZendX_JQuery::encodeJson($params); $js = sprintf('%s("#%s").autocomplete(%s);', - ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), - $attribs['id'], - $params + ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), + $attribs['id'], + $params ); $this->jquery->addOnLoad($js); diff --git a/library/ZendX/JQuery/View/Helper/DatePicker.php b/library/ZendX/JQuery/View/Helper/DatePicker.php index c91e26eb..da3fa267 100644 --- a/library/ZendX/JQuery/View/Helper/DatePicker.php +++ b/library/ZendX/JQuery/View/Helper/DatePicker.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_DatePicker extends ZendX_JQuery_View_Helper_UiWidget { /** @@ -60,9 +61,9 @@ public function datePicker($id, $value = null, array $params = [], array $attrib $params = ZendX_JQuery::encodeJson($params); $js = sprintf('%s("#%s").datepicker(%s);', - ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), - $attribs['id'], - $params + ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), + $attribs['id'], + $params ); $this->jquery->addOnLoad($js); diff --git a/library/ZendX/JQuery/View/Helper/DialogContainer.php b/library/ZendX/JQuery/View/Helper/DialogContainer.php index 0316ce61..6c177205 100644 --- a/library/ZendX/JQuery/View/Helper/DialogContainer.php +++ b/library/ZendX/JQuery/View/Helper/DialogContainer.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_DialogContainer extends ZendX_JQuery_View_Helper_UiWidget { /** @@ -54,9 +55,9 @@ public function dialogContainer($id, $content, $params = [], $attribs = []) } $js = sprintf('%s("#%s").dialog(%s);', - ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), - $attribs['id'], - $params + ZendX_JQuery_View_Helper_JQuery::getJQueryHandler(), + $attribs['id'], + $params ); $this->jquery->addOnLoad($js); diff --git a/library/ZendX/JQuery/View/Helper/JQuery.php b/library/ZendX/JQuery/View/Helper/JQuery.php index 6df62524..9700af66 100644 --- a/library/ZendX/JQuery/View/Helper/JQuery.php +++ b/library/ZendX/JQuery/View/Helper/JQuery.php @@ -44,6 +44,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_JQuery extends Zend_View_Helper_Abstract { /** @@ -55,6 +56,7 @@ class ZendX_JQuery_View_Helper_JQuery extends Zend_View_Helper_Abstract * jQuery no Conflict Mode. * * @see http://docs.jquery.com/Using_jQuery_with_Other_Libraries + * * @staticvar Boolean Status of noConflict Mode */ private static bool $noConflictMode = false; diff --git a/library/ZendX/JQuery/View/Helper/JQuery/Container.php b/library/ZendX/JQuery/View/Helper/JQuery/Container.php index 815ac29c..eb07b6c8 100644 --- a/library/ZendX/JQuery/View/Helper/JQuery/Container.php +++ b/library/ZendX/JQuery/View/Helper/JQuery/Container.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_JQuery_Container { /** diff --git a/library/ZendX/JQuery/View/Helper/Slider.php b/library/ZendX/JQuery/View/Helper/Slider.php index 377d5c10..717c8043 100644 --- a/library/ZendX/JQuery/View/Helper/Slider.php +++ b/library/ZendX/JQuery/View/Helper/Slider.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_Slider extends ZendX_JQuery_View_Helper_UiWidget { /** @@ -103,8 +104,8 @@ protected function getChangeCallback($jqh, $sliderHiddenId, $elementId, $handler } return sprintf(' %s("#%s").attr("value", %s("#%s-slider").slider("value", %d));' . PHP_EOL, - $jqh, $sliderHiddenId, $jqh, $elementId, $handlerNum - ); + $jqh, $sliderHiddenId, $jqh, $elementId, $handlerNum + ); } protected function getHandleCount($params) diff --git a/library/ZendX/JQuery/View/Helper/Spinner.php b/library/ZendX/JQuery/View/Helper/Spinner.php index b3c702dd..a855a1df 100644 --- a/library/ZendX/JQuery/View/Helper/Spinner.php +++ b/library/ZendX/JQuery/View/Helper/Spinner.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_Spinner extends ZendX_JQuery_View_Helper_UiWidget { /** diff --git a/library/ZendX/JQuery/View/Helper/TabContainer.php b/library/ZendX/JQuery/View/Helper/TabContainer.php index 5c2f142d..dbe0eed1 100644 --- a/library/ZendX/JQuery/View/Helper/TabContainer.php +++ b/library/ZendX/JQuery/View/Helper/TabContainer.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_TabContainer extends ZendX_JQuery_View_Helper_UiWidget { /** diff --git a/library/ZendX/JQuery/View/Helper/TabPane.php b/library/ZendX/JQuery/View/Helper/TabPane.php index 614d35f3..68f01fc8 100644 --- a/library/ZendX/JQuery/View/Helper/TabPane.php +++ b/library/ZendX/JQuery/View/Helper/TabPane.php @@ -25,6 +25,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendX_JQuery_View_Helper_TabPane extends ZendX_JQuery_View_Helper_UiWidgetPane { /** diff --git a/library/ZendX/JQuery/View/Helper/UiWidget.php b/library/ZendX/JQuery/View/Helper/UiWidget.php index 2e36e169..df109078 100644 --- a/library/ZendX/JQuery/View/Helper/UiWidget.php +++ b/library/ZendX/JQuery/View/Helper/UiWidget.php @@ -34,6 +34,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class ZendX_JQuery_View_Helper_UiWidget extends Zend_View_Helper_HtmlElement { /** diff --git a/library/ZendX/JQuery/View/Helper/UiWidgetPane.php b/library/ZendX/JQuery/View/Helper/UiWidgetPane.php index a3aebe9f..800dbfe4 100644 --- a/library/ZendX/JQuery/View/Helper/UiWidgetPane.php +++ b/library/ZendX/JQuery/View/Helper/UiWidgetPane.php @@ -29,6 +29,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] abstract class ZendX_JQuery_View_Helper_UiWidgetPane extends ZendX_JQuery_View_Helper_UiWidget { /** diff --git a/phpunit.xml b/phpunit.xml index f049b9fc..c04c6a18 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,6 @@ ./tests/ diff --git a/tests/Zend/Acl/AclTest.php b/tests/Zend/Acl/AclTest.php index 8de7dab3..1cc6b11d 100644 --- a/tests/Zend/Acl/AclTest.php +++ b/tests/Zend/Acl/AclTest.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Acl_AclTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/AllTests/StreamWrapper/PhpInput.php b/tests/Zend/AllTests/StreamWrapper/PhpInput.php index 6ee30b32..a65437ee 100644 --- a/tests/Zend/AllTests/StreamWrapper/PhpInput.php +++ b/tests/Zend/AllTests/StreamWrapper/PhpInput.php @@ -42,6 +42,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_AllTests_StreamWrapper_PhpInput { protected static $_data; diff --git a/tests/Zend/Application/ApplicationTest.php b/tests/Zend/Application/ApplicationTest.php index d124b1b9..321ab92c 100644 --- a/tests/Zend/Application/ApplicationTest.php +++ b/tests/Zend/Application/ApplicationTest.php @@ -25,8 +25,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_ApplicationTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -99,6 +101,7 @@ public function testConstructorShouldSetOptionsWhenProvided() /** * @group GH-564 + * * @depends testConstructorInstantiatesAutoloader */ public function testConstructorRespectsSuppressFileNotFoundWarningFlag() diff --git a/tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php b/tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php index 79d48a62..b5339bc9 100644 --- a/tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php +++ b/tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php @@ -49,8 +49,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapAbstractTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -759,6 +761,7 @@ public function testPathDefaultZendXToPluginsResources() } } +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapAbstractTest_View extends Zend_Application_Resource_ResourceAbstract { public function init() @@ -767,6 +770,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapAbstractTest_Layout extends Zend_Application_Resource_ResourceAbstract { public $_explicitType = 'BootstrapAbstractTestLayout'; @@ -787,6 +791,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapAbstractTest_Foo extends Zend_Application_Resource_ResourceAbstract { public $bootstrapSetInConstructor = false; @@ -805,6 +810,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapAbstractTest_OptionKeys extends Zend_Application_Bootstrap_Bootstrap { public function getOptionKeys() diff --git a/tests/Zend/Application/Bootstrap/BootstrapTest.php b/tests/Zend/Application/Bootstrap/BootstrapTest.php index 2d3b3b0f..99eedc67 100644 --- a/tests/Zend/Application/Bootstrap/BootstrapTest.php +++ b/tests/Zend/Application/Bootstrap/BootstrapTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Module/AutoloaderTest.php b/tests/Zend/Application/Module/AutoloaderTest.php index 12061a38..ca580bcf 100644 --- a/tests/Zend/Application/Module/AutoloaderTest.php +++ b/tests/Zend/Application/Module/AutoloaderTest.php @@ -37,8 +37,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Module_AutoloaderTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Module/BootstrapTest.php b/tests/Zend/Application/Module/BootstrapTest.php index 2d737c98..4204be0f 100644 --- a/tests/Zend/Application/Module/BootstrapTest.php +++ b/tests/Zend/Application/Module/BootstrapTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Module_BootstrapTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/CacheManagerTest.php b/tests/Zend/Application/Resource/CacheManagerTest.php index f895e4dc..45102894 100644 --- a/tests/Zend/Application/Resource/CacheManagerTest.php +++ b/tests/Zend/Application/Resource/CacheManagerTest.php @@ -44,8 +44,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_CacheManagerTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/FrontcontrollerTest.php b/tests/Zend/Application/Resource/FrontcontrollerTest.php index f58f9362..a1a2bbbb 100644 --- a/tests/Zend/Application/Resource/FrontcontrollerTest.php +++ b/tests/Zend/Application/Resource/FrontcontrollerTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_FrontcontrollerTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/LayoutTest.php b/tests/Zend/Application/Resource/LayoutTest.php index 2d660a40..4f1b4bcc 100644 --- a/tests/Zend/Application/Resource/LayoutTest.php +++ b/tests/Zend/Application/Resource/LayoutTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_LayoutTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/LocaleTest.php b/tests/Zend/Application/Resource/LocaleTest.php index 429935b3..faf80632 100644 --- a/tests/Zend/Application/Resource/LocaleTest.php +++ b/tests/Zend/Application/Resource/LocaleTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_LocaleTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/ModulesTest.php b/tests/Zend/Application/Resource/ModulesTest.php index a91a2c38..483a4447 100644 --- a/tests/Zend/Application/Resource/ModulesTest.php +++ b/tests/Zend/Application/Resource/ModulesTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_ModulesTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/NavigationTest.php b/tests/Zend/Application/Resource/NavigationTest.php index df288477..62384671 100644 --- a/tests/Zend/Application/Resource/NavigationTest.php +++ b/tests/Zend/Application/Resource/NavigationTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_NavigationTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/ResourceAbstractTest.php b/tests/Zend/Application/Resource/ResourceAbstractTest.php index 230c9cc9..2acd0a92 100644 --- a/tests/Zend/Application/Resource/ResourceAbstractTest.php +++ b/tests/Zend/Application/Resource/ResourceAbstractTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_ResourceAbstractTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/RouterTest.php b/tests/Zend/Application/Resource/RouterTest.php index f055c926..04e9c573 100644 --- a/tests/Zend/Application/Resource/RouterTest.php +++ b/tests/Zend/Application/Resource/RouterTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_RouterTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/SessionTest.php b/tests/Zend/Application/Resource/SessionTest.php index e0b8366c..b00338bc 100644 --- a/tests/Zend/Application/Resource/SessionTest.php +++ b/tests/Zend/Application/Resource/SessionTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_SessionTest extends \PHPUnit\Framework\TestCase { public $resource; diff --git a/tests/Zend/Application/Resource/TestAsset/ViewRenderer.php b/tests/Zend/Application/Resource/TestAsset/ViewRenderer.php index 7d7abac7..cd943474 100644 --- a/tests/Zend/Application/Resource/TestAsset/ViewRenderer.php +++ b/tests/Zend/Application/Resource/TestAsset/ViewRenderer.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_Resource_TestAsset_ViewRenderer extends Zend_Controller_Action_Helper_ViewRenderer { } diff --git a/tests/Zend/Application/Resource/UseragentTest.php b/tests/Zend/Application/Resource/UseragentTest.php index b1e60fae..2dd3c7b8 100644 --- a/tests/Zend/Application/Resource/UseragentTest.php +++ b/tests/Zend/Application/Resource/UseragentTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_UseragentTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/ViewTest.php b/tests/Zend/Application/Resource/ViewTest.php index ee570e58..82b824af 100644 --- a/tests/Zend/Application/Resource/ViewTest.php +++ b/tests/Zend/Application/Resource/ViewTest.php @@ -26,8 +26,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Application */ +#[AllowDynamicProperties] class Zend_Application_Resource_ViewTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Application/Resource/_files/ZfAppBootstrapCustomView.php b/tests/Zend/Application/Resource/_files/ZfAppBootstrapCustomView.php index e1ae57cb..d41f5289 100644 --- a/tests/Zend/Application/Resource/_files/ZfAppBootstrapCustomView.php +++ b/tests/Zend/Application/Resource/_files/ZfAppBootstrapCustomView.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfAppBootstrapCustomView extends Zend_Application_Bootstrap_Bootstrap { public function _initView() diff --git a/tests/Zend/Application/Resource/mailTestCAsE.php b/tests/Zend/Application/Resource/mailTestCAsE.php index c7bebcf4..e79bb220 100644 --- a/tests/Zend/Application/Resource/mailTestCAsE.php +++ b/tests/Zend/Application/Resource/mailTestCAsE.php @@ -3,6 +3,7 @@ /** * @group ZF-9136 */ +#[AllowDynamicProperties] class Zend_Application_Resource_mailTestCAsE extends Zend_Mail_Transport_Abstract { public function _sendMail() diff --git a/tests/Zend/Application/_files/BootstrapBaseCircularDependency.php b/tests/Zend/Application/_files/BootstrapBaseCircularDependency.php index 17ac0908..f3029902 100644 --- a/tests/Zend/Application/_files/BootstrapBaseCircularDependency.php +++ b/tests/Zend/Application/_files/BootstrapBaseCircularDependency.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class BootstrapBaseCircularDependency extends Zend_Application_Bootstrap_BootstrapAbstract { public $complete = false; diff --git a/tests/Zend/Application/_files/Zf7696Bootstrap.php b/tests/Zend/Application/_files/Zf7696Bootstrap.php index 94349020..26e96118 100644 --- a/tests/Zend/Application/_files/Zf7696Bootstrap.php +++ b/tests/Zend/Application/_files/Zf7696Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zf7696Bootstrap extends Zend_Application_Bootstrap_BootstrapAbstract { public $barExecuted = 0; diff --git a/tests/Zend/Application/_files/ZfAppBadBootstrap.php b/tests/Zend/Application/_files/ZfAppBadBootstrap.php index 11b55fc7..1ff62971 100644 --- a/tests/Zend/Application/_files/ZfAppBadBootstrap.php +++ b/tests/Zend/Application/_files/ZfAppBadBootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfAppBadBootstrap { } diff --git a/tests/Zend/Application/_files/ZfAppBootstrap.php b/tests/Zend/Application/_files/ZfAppBootstrap.php index 55e497ef..ae004933 100644 --- a/tests/Zend/Application/_files/ZfAppBootstrap.php +++ b/tests/Zend/Application/_files/ZfAppBootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfAppBootstrap extends Zend_Application_Bootstrap_BootstrapAbstract { public $barExecuted = 0; diff --git a/tests/Zend/Application/_files/ZfModuleBootstrap.php b/tests/Zend/Application/_files/ZfModuleBootstrap.php index aba67941..541bb8c7 100644 --- a/tests/Zend/Application/_files/ZfModuleBootstrap.php +++ b/tests/Zend/Application/_files/ZfModuleBootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfModule_Bootstrap extends Zend_Application_Module_Bootstrap { public function run() diff --git a/tests/Zend/Application/_files/modules/bar/Bootstrap.php b/tests/Zend/Application/_files/modules/bar/Bootstrap.php index 75604f3b..6b19ab7f 100644 --- a/tests/Zend/Application/_files/modules/bar/Bootstrap.php +++ b/tests/Zend/Application/_files/modules/bar/Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Bar_Bootstrap extends Zend_Application_Module_Bootstrap { public $bootstrapped = false; diff --git a/tests/Zend/Application/_files/modules/default/Bootstrap.php b/tests/Zend/Application/_files/modules/default/Bootstrap.php index 8b12c980..e689c299 100644 --- a/tests/Zend/Application/_files/modules/default/Bootstrap.php +++ b/tests/Zend/Application/_files/modules/default/Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Bootstrap extends Zend_Application_Bootstrap_BootstrapAbstract { public $bootstrapped = false; diff --git a/tests/Zend/Application/_files/modules/foo-bar/Bootstrap.php b/tests/Zend/Application/_files/modules/foo-bar/Bootstrap.php index ab7ce6ac..cfb62766 100644 --- a/tests/Zend/Application/_files/modules/foo-bar/Bootstrap.php +++ b/tests/Zend/Application/_files/modules/foo-bar/Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooBar_Bootstrap extends Zend_Application_Module_Bootstrap { public $bootstrapped = false; diff --git a/tests/Zend/Application/_files/modules/foo/Bootstrap.php b/tests/Zend/Application/_files/modules/foo/Bootstrap.php index 8dca82f2..9506c10c 100644 --- a/tests/Zend/Application/_files/modules/foo/Bootstrap.php +++ b/tests/Zend/Application/_files/modules/foo/Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_Bootstrap extends Zend_Application_Module_Bootstrap { public $bootstrapped = false; diff --git a/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/ErrorController.php b/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/ErrorController.php index fcebaa71..c923d4ad 100644 --- a/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/ErrorController.php +++ b/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/ErrorController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zfappbootstrap_ErrorController extends Zend_Controller_Action { public function errorAction() diff --git a/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/IndexController.php b/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/IndexController.php index 1df43726..586ae07d 100644 --- a/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/IndexController.php +++ b/tests/Zend/Application/_files/modules/zfappbootstrap/controllers/IndexController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zfappbootstrap_IndexController extends Zend_Controller_Action { public function indexAction() diff --git a/tests/Zend/Application/_files/more_modules/bat/Bootstrap.php b/tests/Zend/Application/_files/more_modules/bat/Bootstrap.php index eb965111..282aeab4 100644 --- a/tests/Zend/Application/_files/more_modules/bat/Bootstrap.php +++ b/tests/Zend/Application/_files/more_modules/bat/Bootstrap.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Bat_Bootstrap extends Zend_Application_Module_Bootstrap { public $bootstrapped = false; diff --git a/tests/Zend/Application/_files/resources/Autoloaded.php b/tests/Zend/Application/_files/resources/Autoloaded.php index b6bca2c1..cb95a950 100644 --- a/tests/Zend/Application/_files/resources/Autoloaded.php +++ b/tests/Zend/Application/_files/resources/Autoloaded.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zabt_Resource_Autoloaded extends Zend_Application_Resource_ResourceAbstract { public function init() diff --git a/tests/Zend/Application/_files/resources/Baz.php b/tests/Zend/Application/_files/resources/Baz.php index e5dde476..79dc24f5 100644 --- a/tests/Zend/Application/_files/resources/Baz.php +++ b/tests/Zend/Application/_files/resources/Baz.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_BootstrapTest_Resource_Baz extends Zend_Application_Resource_ResourceAbstract { public function init() diff --git a/tests/Zend/Application/_files/resources/Foo.php b/tests/Zend/Application/_files/resources/Foo.php index d72d41d2..52f04d5c 100644 --- a/tests/Zend/Application/_files/resources/Foo.php +++ b/tests/Zend/Application/_files/resources/Foo.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_BootstrapTest_Resource_Foo extends Zend_Application_Resource_ResourceAbstract { public $someArbitraryKey; diff --git a/tests/Zend/Application/_files/resources/Foobar.php b/tests/Zend/Application/_files/resources/Foobar.php index 89e97898..a5b11d29 100644 --- a/tests/Zend/Application/_files/resources/Foobar.php +++ b/tests/Zend/Application/_files/resources/Foobar.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Application_BootstrapTest_Resource_Foobar extends Zend_Application_Resource_ResourceAbstract { public function init() diff --git a/tests/Zend/Captcha/DumbTest.php b/tests/Zend/Captcha/DumbTest.php index 50d558ce..8e91559d 100644 --- a/tests/Zend/Captcha/DumbTest.php +++ b/tests/Zend/Captcha/DumbTest.php @@ -21,8 +21,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Captcha */ +#[AllowDynamicProperties] class Zend_Captcha_DumbTest extends \PHPUnit\Framework\TestCase { /** @@ -103,6 +105,7 @@ public function testRendersLabelUsingProvidedValue() } } +#[AllowDynamicProperties] class Zend_Captcha_DumbTest_SessionContainer { protected static $_word; diff --git a/tests/Zend/Captcha/FigletTest.php b/tests/Zend/Captcha/FigletTest.php index c1e92694..993d1f77 100644 --- a/tests/Zend/Captcha/FigletTest.php +++ b/tests/Zend/Captcha/FigletTest.php @@ -22,8 +22,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Captcha */ +#[AllowDynamicProperties] class Zend_Captcha_FigletTest extends \PHPUnit\Framework\TestCase { /** @@ -153,7 +155,7 @@ public function testGetWordLength() public function testAdapterElementName() { $this->assertEquals($this->captcha->getName(), - $this->element->getName()); + $this->element->getName()); } public function testGenerateIsRandomised() @@ -173,7 +175,7 @@ public function testRenderSetsValue() { $this->testCaptchaIsRendered(); $this->assertEquals($this->captcha->getId(), - $this->element->getValue()); + $this->element->getValue()); } public function testLabelIsNull() @@ -296,6 +298,7 @@ public function testSetSessionWorks() } } +#[AllowDynamicProperties] class Zend_Captcha_FigletTest_SessionContainer { protected static $_word; diff --git a/tests/Zend/Captcha/ImageTest.php b/tests/Zend/Captcha/ImageTest.php index 21c99c09..78f235ac 100644 --- a/tests/Zend/Captcha/ImageTest.php +++ b/tests/Zend/Captcha/ImageTest.php @@ -21,8 +21,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Captcha */ +#[AllowDynamicProperties] class Zend_Captcha_ImageTest extends \PHPUnit\Framework\TestCase { protected $_tmpDir; @@ -62,11 +64,11 @@ public function setUp(): void @mkdir($this->testDir); } $this->element = new Zend_Form_Element_Captcha('captchaI', - ['captcha' => ['Image', - 'sessionClass' => 'Zend_Captcha_ImageTest_SessionContainer', - 'imgDir' => $this->testDir, - 'font' => __DIR__ . '/../Pdf/_fonts/Vera.ttf', ], - ]); + ['captcha' => ['Image', + 'sessionClass' => 'Zend_Captcha_ImageTest_SessionContainer', + 'imgDir' => $this->testDir, + 'font' => __DIR__ . '/../Pdf/_fonts/Vera.ttf', ], + ]); $this->captcha = $this->element->getCaptcha(); } @@ -216,7 +218,7 @@ public function testGetWordLength() public function testAdapterElementName() { $this->assertEquals($this->captcha->getName(), - $this->element->getName()); + $this->element->getName()); } public function testGenerateIsRandomised() @@ -236,7 +238,7 @@ public function testRenderSetsValue() { $this->testCaptchaIsRendered(); $this->assertEquals($this->captcha->getId(), - $this->element->getValue()); + $this->element->getValue()); } public function testLabelIsNull() @@ -311,6 +313,7 @@ public function testImageTagRenderedProperlyBasedUponDoctype() } } +#[AllowDynamicProperties] class Zend_Captcha_ImageTest_SessionContainer { protected static $_word; diff --git a/tests/Zend/Config/IniTest.php b/tests/Zend/Config/IniTest.php index 4e0904be..d018fbb0 100644 --- a/tests/Zend/Config/IniTest.php +++ b/tests/Zend/Config/IniTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Config */ +#[AllowDynamicProperties] class Zend_Config_IniTest extends \PHPUnit\Framework\TestCase { protected $_iniFileConfig; @@ -268,7 +270,7 @@ public function testZF8159() ); $this->assertTrue(isset( - $config->user->login->elements->password + $config->user->login->elements->password )); $this->assertEquals( diff --git a/tests/Zend/Config/XmlTest.php b/tests/Zend/Config/XmlTest.php index 3c3b7d15..e70ec5f9 100644 --- a/tests/Zend/Config/XmlTest.php +++ b/tests/Zend/Config/XmlTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Config */ +#[AllowDynamicProperties] class Zend_Config_XmlTest extends \PHPUnit\Framework\TestCase { protected $_xmlFileConfig; diff --git a/tests/Zend/ConfigTest.php b/tests/Zend/ConfigTest.php index fc194635..664a479b 100644 --- a/tests/Zend/ConfigTest.php +++ b/tests/Zend/ConfigTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Config */ +#[AllowDynamicProperties] class Zend_ConfigTest extends \PHPUnit\Framework\TestCase { protected $_iniFileConfig; diff --git a/tests/Zend/Console/GetoptTest.php b/tests/Zend/Console/GetoptTest.php index b1bac14c..c0cf202b 100644 --- a/tests/Zend/Console/GetoptTest.php +++ b/tests/Zend/Console/GetoptTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Console_Getopt */ +#[AllowDynamicProperties] class Zend_Console_GetoptTest extends \PHPUnit\Framework\TestCase { public function setUp(): void @@ -594,7 +596,7 @@ public function testDashWithinLongOptionGetsParsed() '--man-bear', 'foobar', ] - ); + ); $opts->parse(); $this->assertEquals('foobar', $opts->getOption('man-bear')); @@ -609,9 +611,9 @@ public function testAddRulesDoesNotThrowWarnings() // Fails if warning is thrown: Should not happen! $opts = new Zend_Console_Getopt('abp:'); $opts->addRules( - [ - 'verbose|v' => 'Print verbose output', - ] + [ + 'verbose|v' => 'Print verbose output', + ] ); self::assertTrue(true); } diff --git a/tests/Zend/Controller/Action/Helper/ActionStackTest.php b/tests/Zend/Controller/Action/Helper/ActionStackTest.php index c36dae3d..9c9ad5dc 100644 --- a/tests/Zend/Controller/Action/Helper/ActionStackTest.php +++ b/tests/Zend/Controller/Action/Helper/ActionStackTest.php @@ -24,10 +24,12 @@ * Test class for Zend_Controller_Action_Helper_ActionStack. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ActionStackTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Action/Helper/AjaxContextTest.php b/tests/Zend/Controller/Action/Helper/AjaxContextTest.php index 0f7f2b63..bb75bad9 100644 --- a/tests/Zend/Controller/Action/Helper/AjaxContextTest.php +++ b/tests/Zend/Controller/Action/Helper/AjaxContextTest.php @@ -31,10 +31,12 @@ * Test class for Zend_Controller_Action_Helper_AjaxContext. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_AjaxContextTest extends \PHPUnit\Framework\TestCase { /** @@ -188,11 +190,11 @@ public function testAjaxContextIsRequestDependent() $helper = new Zend_Controller_Action_Helper_AjaxContext(); $helper->setActionController( - new Zend_Controller_Action_Helper_AjaxContextTestController( - $request, - $this->response, - [] - ) + new Zend_Controller_Action_Helper_AjaxContextTestController( + $request, + $this->response, + [] + ) ); try { diff --git a/tests/Zend/Controller/Action/Helper/CacheTest.php b/tests/Zend/Controller/Action/Helper/CacheTest.php index 2c73ba5f..f4ab9dac 100644 --- a/tests/Zend/Controller/Action/Helper/CacheTest.php +++ b/tests/Zend/Controller/Action/Helper/CacheTest.php @@ -12,6 +12,7 @@ /** * Test class for Zend_Controller_Action_Helper_Cache. */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_CacheTest extends \PHPUnit\Framework\TestCase { protected $_requestUriOld; @@ -145,6 +146,7 @@ public function testPreDispatchDoesNotCallCachesStartMethodWithBadAction() /** * @group ZF-11885 + * * @dataProvider dataprovider_testEncodedCacheIdsAreUsedConsistently * * @param mixed $recursive @@ -168,6 +170,7 @@ public function testEncodedCacheIdsAreUsedConsistently($recursive) /** * @group ZF-11885 + * * @dataProvider dataprovider_testEncodedCacheIdsAreUsedConsistently * * @param mixed $recursive diff --git a/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php b/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php index 21b9636e..62276e8e 100644 --- a/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php +++ b/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php @@ -33,10 +33,12 @@ * Test class for Zend_Controller_Action_Helper_ContextSwitch. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ContextSwitchTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Action/Helper/FlashMessengerTest.php b/tests/Zend/Controller/Action/Helper/FlashMessengerTest.php index 366e6ecd..32fbfa79 100644 --- a/tests/Zend/Controller/Action/Helper/FlashMessengerTest.php +++ b/tests/Zend/Controller/Action/Helper/FlashMessengerTest.php @@ -27,10 +27,12 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_FlashMessengerTest extends \PHPUnit\Framework\TestCase { /** @@ -209,6 +211,7 @@ public function testSimulateCrossRequestMessagePassing() * Subclass of FlashMessenger action helper which exposes a reset method * to allow faking a second (fresh) request. */ +#[AllowDynamicProperties] class FlashMessengerControllerActionHelper extends Zend_Controller_Action_Helper_FlashMessenger { public function getName() diff --git a/tests/Zend/Controller/Action/Helper/JsonTest.php b/tests/Zend/Controller/Action/Helper/JsonTest.php index 4801b2e9..4ab93715 100644 --- a/tests/Zend/Controller/Action/Helper/JsonTest.php +++ b/tests/Zend/Controller/Action/Helper/JsonTest.php @@ -29,10 +29,12 @@ * Test class for Zend_Controller_Action_Helper_Json. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_JsonTest extends \PHPUnit\Framework\TestCase { /** @@ -215,6 +217,7 @@ public function testSendingPreencodedJsonViaEncodeJsonWillStillSendHeaders() /** * Zend_Layout subclass to allow resetting MVC instance. */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_JsonTest_Layout extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/Controller/Action/Helper/NamespaceTest.php b/tests/Zend/Controller/Action/Helper/NamespaceTest.php index 9f2e4bb0..13db5650 100644 --- a/tests/Zend/Controller/Action/Helper/NamespaceTest.php +++ b/tests/Zend/Controller/Action/Helper/NamespaceTest.php @@ -22,10 +22,12 @@ * Test class for Zend_Controller_Action_Helper_Abstract. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_NamespaceTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Action/Helper/RedirectorTest.php b/tests/Zend/Controller/Action/Helper/RedirectorTest.php index a6a7748b..a96066df 100644 --- a/tests/Zend/Controller/Action/Helper/RedirectorTest.php +++ b/tests/Zend/Controller/Action/Helper/RedirectorTest.php @@ -27,10 +27,12 @@ * Test class for Zend_Controller_Action_Helper_Redirector. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_RedirectorTest extends \PHPUnit\Framework\TestCase { /** @@ -315,7 +317,7 @@ public function testGoto() public function testGotoAndExit() { $this->markTestSkipped( - 'Testing Zend_Controller_Action_Helper_Redirector::gotoAndExit() would break the test suite' + 'Testing Zend_Controller_Action_Helper_Redirector::gotoAndExit() would break the test suite' ); } @@ -343,7 +345,7 @@ public function testGotoRoute() public function testGotoRouteAndExit() { $this->markTestSkipped( - 'Testing Zend_Controller_Action_Helper_Redirector::gotoRouteAndExit() would break the test suite' + 'Testing Zend_Controller_Action_Helper_Redirector::gotoRouteAndExit() would break the test suite' ); } @@ -359,14 +361,14 @@ public function testGotoUrl() public function testGotoUrlAndExit() { $this->markTestSkipped( - 'Testing Zend_Controller_Action_Helper_Redirector::gotoUrlAndExit() would break the test suite' + 'Testing Zend_Controller_Action_Helper_Redirector::gotoUrlAndExit() would break the test suite' ); } public function testRedirectAndExit() { $this->markTestSkipped( - 'Testing Zend_Controller_Action_Helper_Redirector::redirectAndExit() would break the test suite' + 'Testing Zend_Controller_Action_Helper_Redirector::redirectAndExit() would break the test suite' ); } @@ -559,6 +561,7 @@ protected function _parseLocationHeaderValue() /** * Test controller for use with redirector tests. */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_Redirector_TestController extends Zend_Controller_Action { } diff --git a/tests/Zend/Controller/Action/Helper/UrlTest.php b/tests/Zend/Controller/Action/Helper/UrlTest.php index 9cab4a2e..3c76220f 100644 --- a/tests/Zend/Controller/Action/Helper/UrlTest.php +++ b/tests/Zend/Controller/Action/Helper/UrlTest.php @@ -25,10 +25,12 @@ * Test class for Zend_Controller_Action_Helper_Url. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_UrlTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Action/Helper/ViewRendererTest.php b/tests/Zend/Controller/Action/Helper/ViewRendererTest.php index 7e488c39..e2d95428 100644 --- a/tests/Zend/Controller/Action/Helper/ViewRendererTest.php +++ b/tests/Zend/Controller/Action/Helper/ViewRendererTest.php @@ -30,10 +30,12 @@ * Test class for Zend_Controller_Action_Helper_ViewRenderer. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ViewRendererTest extends \PHPUnit\Framework\TestCase { /** @@ -266,7 +268,7 @@ public function testInitViewWithOptions() $this->assertStringContainsString( $this->_normalizePath($viewDir), $this->_normalizePath($scriptPath) - ); + ); $helperPaths = $this->helper->view->getHelperPaths(); $found = false; @@ -778,7 +780,7 @@ public function testStockInflectorWorksWithViewBaseSpec() $this->assertMatchesRegularExpression( $expectedPathRegex, $this->_normalizePath($viewScriptPaths['script'][0]) - ); + ); $this->assertEquals($this->helper->getViewScript(), 'index/admin.phtml'); } @@ -798,7 +800,7 @@ public function testStockInflectorWorksWithDottedRequestParts() $this->assertMatchesRegularExpression( $expectedPathRegex, $this->_normalizePath($viewScriptPaths['script'][0]) - ); + ); $this->assertEquals('car-bar/baz.phtml', $this->helper->getViewScript()); } @@ -862,6 +864,7 @@ public function testViewSuffixInstanceNotSharedWhenViewHelperIsCloned() /** * @group ZF-10725 + * * @dataProvider providerViewScriptNameDoesNotIncludeDisallowedCharacters * * @param mixed $actionName @@ -898,6 +901,7 @@ public function providerViewScriptNameDoesNotIncludeDisallowedCharacters() /** * @group GH-440 + * * @dataProvider providerControllerNameDoesNotIncludeDisallowedCharacters * * @param mixed $controllerName @@ -943,14 +947,14 @@ public function testControllerNameFormattingShouldRespectWordCamelCaseToDash() ->setActionName('index'); $this->helper->setActionController( - new Bar_IndexController( - $this->request, $this->response, [] - ) - ); + new Bar_IndexController( + $this->request, $this->response, [] + ) + ); $this->assertEquals( - 'metadata-validation/index.phtml', $this->helper->getViewScript() - ); + 'metadata-validation/index.phtml', $this->helper->getViewScript() + ); } protected function _normalizePath($path) diff --git a/tests/Zend/Controller/Action/HelperBroker/PriorityStackTest.php b/tests/Zend/Controller/Action/HelperBroker/PriorityStackTest.php index 542372f1..81475d36 100644 --- a/tests/Zend/Controller/Action/HelperBroker/PriorityStackTest.php +++ b/tests/Zend/Controller/Action/HelperBroker/PriorityStackTest.php @@ -22,10 +22,12 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_HelperBroker_PriorityStackTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Action/HelperBrokerTest.php b/tests/Zend/Controller/Action/HelperBrokerTest.php index b814f3a3..781602b6 100644 --- a/tests/Zend/Controller/Action/HelperBrokerTest.php +++ b/tests/Zend/Controller/Action/HelperBrokerTest.php @@ -26,10 +26,12 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ +#[AllowDynamicProperties] class Zend_Controller_Action_HelperBrokerTest extends \PHPUnit\Framework\TestCase { /** @@ -202,7 +204,7 @@ public function testCustomHelperFromPath() Zend_Controller_Action_HelperBroker::addPath( dirname(__FILE__, 2) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Helpers', 'MyApp' - ); + ); $response = $this->front->dispatch($request); $this->assertEquals('MyApp_TestHelper', $response->getBody()); @@ -292,7 +294,7 @@ public function testHelperPathStackIsLifo() Zend_Controller_Action_HelperBroker::addPath( dirname(__FILE__, 2) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Helpers', 'MyApp' - ); + ); $urlHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('url'); $this->assertTrue($urlHelper instanceof MyApp_Url); diff --git a/tests/Zend/Controller/ActionTest.php b/tests/Zend/Controller/ActionTest.php index 4e5a14eb..a2707cce 100644 --- a/tests/Zend/Controller/ActionTest.php +++ b/tests/Zend/Controller/ActionTest.php @@ -24,9 +24,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Action */ +#[AllowDynamicProperties] class Zend_Controller_ActionTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Dispatcher/StandardTest.php b/tests/Zend/Controller/Dispatcher/StandardTest.php index 04b4fc46..608d7bd0 100644 --- a/tests/Zend/Controller/Dispatcher/StandardTest.php +++ b/tests/Zend/Controller/Dispatcher/StandardTest.php @@ -25,9 +25,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Dispatcher */ +#[AllowDynamicProperties] class Zend_Controller_Dispatcher_StandardTest extends \PHPUnit\Framework\TestCase { protected $_dispatcher; @@ -432,7 +434,7 @@ public function testModuleSubdirControllerFound() ->addControllerDirectory( __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'controllers', 'foo' - ); + ); $request = new Zend_Controller_Request_Http(); $request->setModuleName('foo'); diff --git a/tests/Zend/Controller/FrontTest.php b/tests/Zend/Controller/FrontTest.php index 4bcd3e44..032be39b 100644 --- a/tests/Zend/Controller/FrontTest.php +++ b/tests/Zend/Controller/FrontTest.php @@ -27,9 +27,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Front */ +#[AllowDynamicProperties] class Zend_Controller_FrontTest extends \PHPUnit\Framework\TestCase { protected $_controller; diff --git a/tests/Zend/Controller/Plugin/ActionStackTest.php b/tests/Zend/Controller/Plugin/ActionStackTest.php index c43e827d..16a20759 100644 --- a/tests/Zend/Controller/Plugin/ActionStackTest.php +++ b/tests/Zend/Controller/Plugin/ActionStackTest.php @@ -24,9 +24,11 @@ * Test class for Zend_Controller_Plugin_ActionStack. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Plugin */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_ActionStackTest extends \PHPUnit\Framework\TestCase { public $key = \Zend_Controller_Plugin_ActionStack::class; diff --git a/tests/Zend/Controller/Plugin/BrokerTest.php b/tests/Zend/Controller/Plugin/BrokerTest.php index c6412ba3..762cc3f0 100644 --- a/tests/Zend/Controller/Plugin/BrokerTest.php +++ b/tests/Zend/Controller/Plugin/BrokerTest.php @@ -24,9 +24,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Plugin */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_BrokerTest extends \PHPUnit\Framework\TestCase { public $controller; diff --git a/tests/Zend/Controller/Plugin/ErrorHandlerTest.php b/tests/Zend/Controller/Plugin/ErrorHandlerTest.php index c2321dcc..6951f4ff 100644 --- a/tests/Zend/Controller/Plugin/ErrorHandlerTest.php +++ b/tests/Zend/Controller/Plugin/ErrorHandlerTest.php @@ -30,9 +30,11 @@ * Generated by PHPUnit_Util_Skeleton on 2007-05-15 at 09:50:21. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Plugin */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_ErrorHandlerTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Plugin/PutHandlerTest.php b/tests/Zend/Controller/Plugin/PutHandlerTest.php index 73c0e534..d1267989 100644 --- a/tests/Zend/Controller/Plugin/PutHandlerTest.php +++ b/tests/Zend/Controller/Plugin/PutHandlerTest.php @@ -25,9 +25,11 @@ */ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Plugin */ +#[AllowDynamicProperties] class Zend_Controller_Plugin_PutHandlerTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Request/Apache404Test.php b/tests/Zend/Controller/Request/Apache404Test.php index 045495c4..1f3a11b9 100644 --- a/tests/Zend/Controller/Request/Apache404Test.php +++ b/tests/Zend/Controller/Request/Apache404Test.php @@ -23,9 +23,11 @@ * Generated by PHPUnit_Util_Skeleton on 2007-06-25 at 08:20:40. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Request */ +#[AllowDynamicProperties] class Zend_Controller_Request_Apache404Test extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Request/HttpTest.php b/tests/Zend/Controller/Request/HttpTest.php index 81b73b59..009ae16e 100644 --- a/tests/Zend/Controller/Request/HttpTest.php +++ b/tests/Zend/Controller/Request/HttpTest.php @@ -20,9 +20,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Request */ +#[AllowDynamicProperties] class Zend_Controller_Request_HttpTest extends \PHPUnit\Framework\TestCase { /** @@ -440,6 +442,7 @@ public function prefixProvider() /** * @dataProvider prefixProvider + * * @group ZF-10040 * * @param mixed $prefix diff --git a/tests/Zend/Controller/Request/HttpTestCaseTest.php b/tests/Zend/Controller/Request/HttpTestCaseTest.php index cb0c4eda..91491b7f 100644 --- a/tests/Zend/Controller/Request/HttpTestCaseTest.php +++ b/tests/Zend/Controller/Request/HttpTestCaseTest.php @@ -24,9 +24,11 @@ * Test class for Zend_Controller_Request_HttpTestCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Request */ +#[AllowDynamicProperties] class Zend_Controller_Request_HttpTestCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Request/SimpleTest.php b/tests/Zend/Controller/Request/SimpleTest.php index 89588548..fdf4ec6f 100644 --- a/tests/Zend/Controller/Request/SimpleTest.php +++ b/tests/Zend/Controller/Request/SimpleTest.php @@ -22,9 +22,11 @@ * Test class for Zend_Controller_Request_Simple. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Request */ +#[AllowDynamicProperties] class Zend_Controller_Request_SimpleTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Response/HttpTest.php b/tests/Zend/Controller/Response/HttpTest.php index 3ef93314..58bdd113 100644 --- a/tests/Zend/Controller/Response/HttpTest.php +++ b/tests/Zend/Controller/Response/HttpTest.php @@ -24,9 +24,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Response */ +#[AllowDynamicProperties] class Zend_Controller_Response_HttpTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Response/HttpTestCaseTest.php b/tests/Zend/Controller/Response/HttpTestCaseTest.php index 34da8fe5..3a297a9b 100644 --- a/tests/Zend/Controller/Response/HttpTestCaseTest.php +++ b/tests/Zend/Controller/Response/HttpTestCaseTest.php @@ -24,9 +24,11 @@ * Test class for Zend_Controller_Response_HttpTestCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Response */ +#[AllowDynamicProperties] class Zend_Controller_Response_HttpTestCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Controller/Router/RewriteTest.php b/tests/Zend/Controller/Router/RewriteTest.php index b17ba784..933bf0c5 100644 --- a/tests/Zend/Controller/Router/RewriteTest.php +++ b/tests/Zend/Controller/Router/RewriteTest.php @@ -43,9 +43,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_RewriteTest extends \PHPUnit\Framework\TestCase { protected $_router; @@ -724,7 +726,9 @@ public function testRequestParamsUsedAsGlobalParam() * Test that it is possible to generate a URL with a numerical key. * * @since 2010-06-11 + * * @group ZF-8914 + * * @covers Zend_Controller_Router_Rewrite::assemble */ public function testCanGenerateNumericKeyUri() @@ -735,7 +739,7 @@ public function testCanGenerateNumericKeyUri() ':controller/:action/*', ['controller' => 'index', 'action' => 'index'] ) - ); + ); $params = [ 'controller' => 'index', @@ -765,6 +769,7 @@ public function testCallingAssembleWithNullArgumentShouldThrowException() * * @uses Zend_Controller_Request_Interface */ +#[AllowDynamicProperties] class Zend_Controller_Router_RewriteTest_Request extends Zend_Controller_Request_Http { protected $_host; @@ -798,6 +803,7 @@ public function getHttpHost() /** * Zend_Controller_RouterTest_Dispatcher. */ +#[AllowDynamicProperties] class Zend_Controller_Router_RewriteTest_Dispatcher extends Zend_Controller_Dispatcher_Standard { public function getDefaultControllerName() @@ -816,6 +822,7 @@ public function getDefaultAction() * * @uses Zend_Controller_Request_Abstract */ +#[AllowDynamicProperties] class Zend_Controller_Router_RewriteTest_Request_Incorrect extends Zend_Controller_Request_Abstract { } @@ -825,6 +832,7 @@ class Zend_Controller_Router_RewriteTest_Request_Incorrect extends Zend_Controll * * @uses Zend_Controller_Request_Abstract */ +#[AllowDynamicProperties] class Zend_Controller_RouterTest_RouteV2_Stub extends Zend_Controller_Router_Route_Abstract { public function match($request) diff --git a/tests/Zend/Controller/Router/Route/ChainTest.php b/tests/Zend/Controller/Router/Route/ChainTest.php index 063c32bb..5e68303d 100644 --- a/tests/Zend/Controller/Router/Route/ChainTest.php +++ b/tests/Zend/Controller/Router/Route/ChainTest.php @@ -55,9 +55,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_ChainTest extends \PHPUnit\Framework\TestCase { /** @@ -1037,6 +1039,7 @@ public static function getInstance(Zend_Config $config) * * @uses Zend_Controller_Request_Interface */ +#[AllowDynamicProperties] class Zend_Controller_Router_ChainTest_Request extends Zend_Controller_Request_Http { protected $_host; @@ -1070,6 +1073,7 @@ public function getHttpHost() /** * Zend_Controller_Router_ChainTest_Dispatcher - dispatcher object for router testing. */ +#[AllowDynamicProperties] class Zend_Controller_Router_ChainTest_Dispatcher extends Zend_Controller_Dispatcher_Standard { public function getDefaultControllerName() diff --git a/tests/Zend/Controller/Router/Route/HostnameTest.php b/tests/Zend/Controller/Router/Route/HostnameTest.php index 0985053c..d6e57c11 100644 --- a/tests/Zend/Controller/Router/Route/HostnameTest.php +++ b/tests/Zend/Controller/Router/Route/HostnameTest.php @@ -25,9 +25,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_HostnameTest extends \PHPUnit\Framework\TestCase { /** @@ -194,8 +196,8 @@ public function testForcedSchemeAssembling() protected function _getStaticHostRoute() { $route = new Zend_Controller_Router_Route_Hostname('www.zend.com', - ['controller' => 'ctrl', - 'action' => 'act', ]); + ['controller' => 'ctrl', + 'action' => 'act', ]); return $route; } @@ -203,9 +205,9 @@ protected function _getStaticHostRoute() protected function _getHostRoute() { $route = new Zend_Controller_Router_Route_Hostname(':subdomain.zend.com', - ['controller' => 'ctrl', - 'action' => 'act', ], - ['subdomain' => '(foo|bar)']); + ['controller' => 'ctrl', + 'action' => 'act', ], + ['subdomain' => '(foo|bar)']); return $route; } @@ -213,10 +215,10 @@ protected function _getHostRoute() protected function _getHostRouteWithDefault() { $route = new Zend_Controller_Router_Route_Hostname(':subdomain.zend.com', - ['controller' => 'ctrl', - 'action' => 'act', - 'subdomain' => 'bar', ], - ['subdomain' => '(foo|bar)']); + ['controller' => 'ctrl', + 'action' => 'act', + 'subdomain' => 'bar', ], + ['subdomain' => '(foo|bar)']); return $route; } @@ -230,6 +232,7 @@ protected function _getRequest($host) /** * Zend_Controller_RouterTest_Request_Stub - request object for route testing. */ +#[AllowDynamicProperties] class Zend_Controller_Router_RewriteTest_Request_Stub extends Zend_Controller_Request_Abstract { protected $_host; diff --git a/tests/Zend/Controller/Router/Route/ModuleTest.php b/tests/Zend/Controller/Router/Route/ModuleTest.php index 267913b1..ab425a0f 100644 --- a/tests/Zend/Controller/Router/Route/ModuleTest.php +++ b/tests/Zend/Controller/Router/Route/ModuleTest.php @@ -25,9 +25,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_ModuleTest extends \PHPUnit\Framework\TestCase { protected $_request; diff --git a/tests/Zend/Controller/Router/Route/RegexTest.php b/tests/Zend/Controller/Router/Route/RegexTest.php index f9143798..f7eced22 100644 --- a/tests/Zend/Controller/Router/Route/RegexTest.php +++ b/tests/Zend/Controller/Router/Route/RegexTest.php @@ -22,9 +22,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_RegexTest extends \PHPUnit\Framework\TestCase { public function testStaticMatch() @@ -98,8 +100,8 @@ public function testDoubleMatch() public function testNegativeMatch() { $route = new Zend_Controller_Router_Route_Regex('((?!admin|moderator).+)', - ['module' => 'index', 'controller' => 'index'], - [1 => 'action'] + ['module' => 'index', 'controller' => 'index'], + [1 => 'action'] ); $values = $route->match('users'); @@ -358,7 +360,7 @@ public function testAssembleZF1332() ['module' => 'default', 'controller' => 'content.item', 'action' => 'forward'], [1 => 'name', 2 => 'id', 3 => 'class'], '%s.%s-%s.html' - ); + ); $route->match('uml-explained-composition.72-3.html'); diff --git a/tests/Zend/Controller/Router/Route/StaticTest.php b/tests/Zend/Controller/Router/Route/StaticTest.php index 6e84a34b..79320dcc 100644 --- a/tests/Zend/Controller/Router/Route/StaticTest.php +++ b/tests/Zend/Controller/Router/Route/StaticTest.php @@ -22,9 +22,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_Route_StaticTest extends \PHPUnit\Framework\TestCase { public function testStaticMatch() @@ -46,7 +48,7 @@ public function testStaticMatchFailure() public function testStaticMatchWithDefaults() { $route = new Zend_Controller_Router_Route_Static('users/all', - ['controller' => 'ctrl', 'action' => 'act']); + ['controller' => 'ctrl', 'action' => 'act']); $values = $route->match('users/all'); $this->assertTrue(is_array($values)); @@ -81,7 +83,7 @@ public function testAssemble() public function testGetDefaults() { $route = new Zend_Controller_Router_Route_Static('users/all', - ['controller' => 'ctrl', 'action' => 'act']); + ['controller' => 'ctrl', 'action' => 'act']); $values = $route->getDefaults(); @@ -93,7 +95,7 @@ public function testGetDefaults() public function testGetDefault() { $route = new Zend_Controller_Router_Route_Static('users/all', - ['controller' => 'ctrl', 'action' => 'act']); + ['controller' => 'ctrl', 'action' => 'act']); $this->assertSame('ctrl', $route->getDefault('controller')); $this->assertSame(null, $route->getDefault('bogus')); diff --git a/tests/Zend/Controller/Router/RouteTest.php b/tests/Zend/Controller/Router/RouteTest.php index 3e2437ad..4932e7db 100644 --- a/tests/Zend/Controller/Router/RouteTest.php +++ b/tests/Zend/Controller/Router/RouteTest.php @@ -31,9 +31,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Controller * @group Zend_Controller_Router */ +#[AllowDynamicProperties] class Zend_Controller_Router_RouteTest extends \PHPUnit\Framework\TestCase { /** @@ -453,7 +455,7 @@ public function testWildcardUrlVariablesOverwriting() public function testGetDefaults() { $route = new Zend_Controller_Router_Route('users/all', - ['controller' => 'ctrl', 'action' => 'act']); + ['controller' => 'ctrl', 'action' => 'act']); $values = $route->getDefaults(); @@ -465,7 +467,7 @@ public function testGetDefaults() public function testGetDefault() { $route = new Zend_Controller_Router_Route('users/all', - ['controller' => 'ctrl', 'action' => 'act']); + ['controller' => 'ctrl', 'action' => 'act']); $this->assertEquals('ctrl', $route->getDefault('controller')); $this->assertEquals(null, $route->getDefault('bogus')); diff --git a/tests/Zend/Controller/_files/Admin/BazController.php b/tests/Zend/Controller/_files/Admin/BazController.php index 2fd3d381..dd5799f4 100644 --- a/tests/Zend/Controller/_files/Admin/BazController.php +++ b/tests/Zend/Controller/_files/Admin/BazController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Admin_BazController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/Admin/FooBarController.php b/tests/Zend/Controller/_files/Admin/FooBarController.php index 6f0d842d..890b42c3 100644 --- a/tests/Zend/Controller/_files/Admin/FooBarController.php +++ b/tests/Zend/Controller/_files/Admin/FooBarController.php @@ -24,6 +24,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Admin_FooBarController extends FooController { /** diff --git a/tests/Zend/Controller/_files/Admin/FooController.php b/tests/Zend/Controller/_files/Admin/FooController.php index 96455352..10b25301 100644 --- a/tests/Zend/Controller/_files/Admin/FooController.php +++ b/tests/Zend/Controller/_files/Admin/FooController.php @@ -24,6 +24,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Admin_FooController extends FooController { /** diff --git a/tests/Zend/Controller/_files/BazController.php b/tests/Zend/Controller/_files/BazController.php index 4b3c6811..cce26a85 100644 --- a/tests/Zend/Controller/_files/BazController.php +++ b/tests/Zend/Controller/_files/BazController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class BazController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/EmptyController.php b/tests/Zend/Controller/_files/EmptyController.php index ee0eb581..f9fb2ae4 100644 --- a/tests/Zend/Controller/_files/EmptyController.php +++ b/tests/Zend/Controller/_files/EmptyController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class EmptyController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/FooBarController.php b/tests/Zend/Controller/_files/FooBarController.php index 1b08a1e1..f25beb30 100644 --- a/tests/Zend/Controller/_files/FooBarController.php +++ b/tests/Zend/Controller/_files/FooBarController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooBarController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/FooController.php b/tests/Zend/Controller/_files/FooController.php index 6660ce8e..61533ea0 100644 --- a/tests/Zend/Controller/_files/FooController.php +++ b/tests/Zend/Controller/_files/FooController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/HelperBrokerController.php b/tests/Zend/Controller/_files/HelperBrokerController.php index 382dc710..fa298a43 100644 --- a/tests/Zend/Controller/_files/HelperBrokerController.php +++ b/tests/Zend/Controller/_files/HelperBrokerController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class HelperBrokerController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/HelperFlashMessengerController.php b/tests/Zend/Controller/_files/HelperFlashMessengerController.php index 82c65f93..271b1d6b 100644 --- a/tests/Zend/Controller/_files/HelperFlashMessengerController.php +++ b/tests/Zend/Controller/_files/HelperFlashMessengerController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class HelperFlashMessengerController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/Helpers/TestHelper.php b/tests/Zend/Controller/_files/Helpers/TestHelper.php index 65f7d42f..a7da1eaf 100644 --- a/tests/Zend/Controller/_files/Helpers/TestHelper.php +++ b/tests/Zend/Controller/_files/Helpers/TestHelper.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class MyApp_TestHelper extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/tests/Zend/Controller/_files/Helpers/Url.php b/tests/Zend/Controller/_files/Helpers/Url.php index 66d78049..cb7c5ab2 100644 --- a/tests/Zend/Controller/_files/Helpers/Url.php +++ b/tests/Zend/Controller/_files/Helpers/Url.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class MyApp_Url extends Zend_Controller_Action_Helper_Abstract { /** diff --git a/tests/Zend/Controller/_files/IndexController.php b/tests/Zend/Controller/_files/IndexController.php index 09d78490..60baed9d 100644 --- a/tests/Zend/Controller/_files/IndexController.php +++ b/tests/Zend/Controller/_files/IndexController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class IndexController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/ManuallyIncludedControllers.php b/tests/Zend/Controller/_files/ManuallyIncludedControllers.php index 8809b026..e4de3f21 100644 --- a/tests/Zend/Controller/_files/ManuallyIncludedControllers.php +++ b/tests/Zend/Controller/_files/ManuallyIncludedControllers.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class IncludedController extends Zend_Controller_Action { public function indexAction() diff --git a/tests/Zend/Controller/_files/ObController.php b/tests/Zend/Controller/_files/ObController.php index 4d2c0d9c..b8043f7d 100644 --- a/tests/Zend/Controller/_files/ObController.php +++ b/tests/Zend/Controller/_files/ObController.php @@ -24,6 +24,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ObController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/ViewController.php b/tests/Zend/Controller/_files/ViewController.php index 51d7e819..ab27e899 100644 --- a/tests/Zend/Controller/_files/ViewController.php +++ b/tests/Zend/Controller/_files/ViewController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ViewController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/modules/bar/controllers/IndexController.php b/tests/Zend/Controller/_files/modules/bar/controllers/IndexController.php index 95555550..38c5d093 100644 --- a/tests/Zend/Controller/_files/modules/bar/controllers/IndexController.php +++ b/tests/Zend/Controller/_files/modules/bar/controllers/IndexController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Bar_IndexController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/modules/baz-bat/controllers/FooController.php b/tests/Zend/Controller/_files/modules/baz-bat/controllers/FooController.php index fe0c13de..16749383 100644 --- a/tests/Zend/Controller/_files/modules/baz-bat/controllers/FooController.php +++ b/tests/Zend/Controller/_files/modules/baz-bat/controllers/FooController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class BazBat_FooController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/modules/default/controllers/Admin/HelperController.php b/tests/Zend/Controller/_files/modules/default/controllers/Admin/HelperController.php index 44da63d9..b079c90b 100644 --- a/tests/Zend/Controller/_files/modules/default/controllers/Admin/HelperController.php +++ b/tests/Zend/Controller/_files/modules/default/controllers/Admin/HelperController.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Admin_HelperController extends Zend_Controller_Action { public function renderAction() diff --git a/tests/Zend/Controller/_files/modules/default/views/helpers/SampleZfHelper.php b/tests/Zend/Controller/_files/modules/default/views/helpers/SampleZfHelper.php index e9b55508..337c6237 100644 --- a/tests/Zend/Controller/_files/modules/default/views/helpers/SampleZfHelper.php +++ b/tests/Zend/Controller/_files/modules/default/views/helpers/SampleZfHelper.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_SampleZfHelper extends Zend_View_Helper_Abstract { public function sampleZfHelper() diff --git a/tests/Zend/Controller/_files/modules/foo/controllers/Admin/IndexController.php b/tests/Zend/Controller/_files/modules/foo/controllers/Admin/IndexController.php index 3b641e01..1080c539 100644 --- a/tests/Zend/Controller/_files/modules/foo/controllers/Admin/IndexController.php +++ b/tests/Zend/Controller/_files/modules/foo/controllers/Admin/IndexController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_Admin_IndexController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/modules/foo/controllers/IndexController.php b/tests/Zend/Controller/_files/modules/foo/controllers/IndexController.php index 7514c4a3..72e51c1e 100644 --- a/tests/Zend/Controller/_files/modules/foo/controllers/IndexController.php +++ b/tests/Zend/Controller/_files/modules/foo/controllers/IndexController.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_IndexController extends Zend_Controller_Action { /** diff --git a/tests/Zend/Controller/_files/modules/foo/views/helpers/FooUseHelper.php b/tests/Zend/Controller/_files/modules/foo/views/helpers/FooUseHelper.php index ee2ce2b9..93158fff 100644 --- a/tests/Zend/Controller/_files/modules/foo/views/helpers/FooUseHelper.php +++ b/tests/Zend/Controller/_files/modules/foo/views/helpers/FooUseHelper.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_View_Helper_FooUseHelper extends Zend_View_Helper_Abstract { public function fooUseHelper() diff --git a/tests/Zend/Date/DateObjectTest.php b/tests/Zend/Date/DateObjectTest.php index 415aaa31..db1f9ce6 100644 --- a/tests/Zend/Date/DateObjectTest.php +++ b/tests/Zend/Date/DateObjectTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Date */ +#[AllowDynamicProperties] class Zend_Date_DateObjectTest extends \PHPUnit\Framework\TestCase { public function setUp(): void @@ -34,8 +36,8 @@ public function setUp(): void date_default_timezone_set('Europe/Paris'); require_once 'Zend/Cache.php'; $this->_cache = Zend_Cache::factory('Core', 'File', - ['lifetime' => 120, 'automatic_serialization' => true], - ['cache_dir' => __DIR__ . '/../_files/']); + ['lifetime' => 120, 'automatic_serialization' => true], + ['cache_dir' => __DIR__ . '/../_files/']); Zend_Date_DateObjectTestHelper::setOptions(['cache' => $this->_cache]); } diff --git a/tests/Zend/DateTest.php b/tests/Zend/DateTest.php index 95879edc..a11e2aa9 100644 --- a/tests/Zend/DateTest.php +++ b/tests/Zend/DateTest.php @@ -43,8 +43,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Date */ +#[AllowDynamicProperties] class Zend_DateTest extends \PHPUnit\Framework\TestCase { private $_cache; @@ -57,8 +59,8 @@ public function setUp(): void date_default_timezone_set('Indian/Maldives'); require_once 'Zend/Cache.php'; $this->_cache = Zend_Cache::factory('Core', 'File', - ['lifetime' => 120, 'automatic_serialization' => true], - ['cache_dir' => __DIR__ . '/_files/']); + ['lifetime' => 120, 'automatic_serialization' => true], + ['cache_dir' => __DIR__ . '/_files/']); $this->_orig = Zend_Date::setOptions(); Zend_Date::setOptions(['cache' => $this->_cache]); @@ -5331,8 +5333,8 @@ public function testSetOptions() require_once 'Zend/Cache.php'; $cache = Zend_Cache::factory('Core', 'File', - ['lifetime' => 120, 'automatic_serialization' => true], - ['cache_dir' => __DIR__ . '/_files/']); + ['lifetime' => 120, 'automatic_serialization' => true], + ['cache_dir' => __DIR__ . '/_files/']); Zend_Date::setOptions(['cache' => $cache]); } @@ -5478,17 +5480,17 @@ public function testGmtOffsetValues() $localtime = localtime($time, true); $offset = mktime($localtime['tm_hour'], - $localtime['tm_min'], - $localtime['tm_sec'], - $localtime['tm_mon'] + 1, - $localtime['tm_mday'], - $localtime['tm_year'] + 1900) + $localtime['tm_min'], + $localtime['tm_sec'], + $localtime['tm_mon'] + 1, + $localtime['tm_mday'], + $localtime['tm_year'] + 1900) - gmmktime($localtime['tm_hour'], - $localtime['tm_min'], - $localtime['tm_sec'], - $localtime['tm_mon'] + 1, - $localtime['tm_mday'], - $localtime['tm_year'] + 1900); + $localtime['tm_min'], + $localtime['tm_sec'], + $localtime['tm_mon'] + 1, + $localtime['tm_mday'], + $localtime['tm_year'] + 1900); $this->assertEquals($stamp, $offset); @@ -5497,17 +5499,17 @@ public function testGmtOffsetValues() $localtime = localtime($time, true); $offset = mktime($localtime['tm_hour'], - $localtime['tm_min'], - $localtime['tm_sec'], - $localtime['tm_mon'] + 7, - $localtime['tm_mday'], - $localtime['tm_year'] + 1900) + $localtime['tm_min'], + $localtime['tm_sec'], + $localtime['tm_mon'] + 7, + $localtime['tm_mday'], + $localtime['tm_year'] + 1900) - gmmktime($localtime['tm_hour'], - $localtime['tm_min'], - $localtime['tm_sec'], - $localtime['tm_mon'] + 7, - $localtime['tm_mday'], - $localtime['tm_year'] + 1900); + $localtime['tm_min'], + $localtime['tm_sec'], + $localtime['tm_mon'] + 7, + $localtime['tm_mday'], + $localtime['tm_year'] + 1900); $this->assertEquals($stamp, $offset); } diff --git a/tests/Zend/ExceptionTest.php b/tests/Zend/ExceptionTest.php index bb405693..4ec99ca0 100644 --- a/tests/Zend/ExceptionTest.php +++ b/tests/Zend/ExceptionTest.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_ExceptionTest extends \PHPUnit\Framework\TestCase { public function testConstructorDefaults() diff --git a/tests/Zend/File/ClassFileLocatorTest.php b/tests/Zend/File/ClassFileLocatorTest.php index 17fa3916..2d71c3a4 100644 --- a/tests/Zend/File/ClassFileLocatorTest.php +++ b/tests/Zend/File/ClassFileLocatorTest.php @@ -20,8 +20,10 @@ * Test class for Zend_File_ClassFileLocator. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_File */ +#[AllowDynamicProperties] class Zend_File_ClassFileLocatorTest extends \PHPUnit\Framework\TestCase { public function testConstructorThrowsInvalidArgumentExceptionForInvalidStringDirectory() diff --git a/tests/Zend/File/TestAsset/MultipleClassesInMultipleNamespaces.php b/tests/Zend/File/TestAsset/MultipleClassesInMultipleNamespaces.php index c70f84bb..7ee43873 100644 --- a/tests/Zend/File/TestAsset/MultipleClassesInMultipleNamespaces.php +++ b/tests/Zend/File/TestAsset/MultipleClassesInMultipleNamespaces.php @@ -21,7 +21,6 @@ namespace ZendTest\File\TestAsset { - class LocatorShouldFindFirstClass { } @@ -29,12 +28,10 @@ class LocatorShouldFindFirstClass class LocatorShouldFindSecondClass { } - } namespace ZendTest\File\TestAsset\SecondTestNamespace { - class LocatorShouldFindThirdClass { } @@ -42,5 +39,4 @@ class LocatorShouldFindThirdClass class LocatorShouldFindFourthClass { } - } diff --git a/tests/Zend/File/Transfer/Adapter/AbstractTest.php b/tests/Zend/File/Transfer/Adapter/AbstractTest.php index 57b4ddd0..2a557ea6 100644 --- a/tests/Zend/File/Transfer/Adapter/AbstractTest.php +++ b/tests/Zend/File/Transfer/Adapter/AbstractTest.php @@ -28,8 +28,10 @@ * Test class for Zend_File_Transfer_Adapter_Abstract. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_File */ +#[AllowDynamicProperties] class Zend_File_Transfer_Adapter_AbstractTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/File/Transfer/Adapter/HttpTest.php b/tests/Zend/File/Transfer/Adapter/HttpTest.php index 8426203f..0ea5b9bf 100644 --- a/tests/Zend/File/Transfer/Adapter/HttpTest.php +++ b/tests/Zend/File/Transfer/Adapter/HttpTest.php @@ -28,8 +28,10 @@ * Test class for Zend_File_Transfer_Adapter_Http. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_File */ +#[AllowDynamicProperties] class Zend_File_Transfer_Adapter_HttpTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/AlnumTest.php b/tests/Zend/Filter/AlnumTest.php index 66bd3ab7..868428f2 100644 --- a/tests/Zend/Filter/AlnumTest.php +++ b/tests/Zend/Filter/AlnumTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_AlnumTest extends \PHPUnit\Framework\TestCase { /** @@ -68,8 +70,8 @@ public function setUp(): void if (null === self::$_meansEnglishAlphabet) { $this->_locale = new Zend_Locale('auto'); self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), - ['ja'] - ); + ['ja'] + ); } } @@ -119,7 +121,7 @@ public function testBasic() $output, $result = $this->_filter->filter($input), "Expected '$input' to filter to '$output', but received '$result' instead" - ); + ); } } @@ -165,7 +167,7 @@ public function testAllowWhiteSpace() $output, $result = $this->_filter->filter($input), "Expected '$input' to filter to '$output', but received '$result' instead" - ); + ); } } } diff --git a/tests/Zend/Filter/AlphaTest.php b/tests/Zend/Filter/AlphaTest.php index d9716beb..01bae678 100644 --- a/tests/Zend/Filter/AlphaTest.php +++ b/tests/Zend/Filter/AlphaTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_AlphaTest extends \PHPUnit\Framework\TestCase { /** @@ -68,8 +70,8 @@ public function setUp(): void if (null === self::$_meansEnglishAlphabet) { $this->_locale = new Zend_Locale('auto'); self::$_meansEnglishAlphabet = in_array($this->_locale->getLanguage(), - ['ja'] - ); + ['ja'] + ); } } @@ -122,7 +124,7 @@ public function testBasic() $output, $result = $this->_filter->filter($input), "Expected '$input' to filter to '$output', but received '$result' instead" - ); + ); } } @@ -170,7 +172,7 @@ public function testAllowWhiteSpace() $output, $result = $this->_filter->filter($input), "Expected '$input' to filter to '$output', but received '$result' instead" - ); + ); } } } diff --git a/tests/Zend/Filter/BaseNameTest.php b/tests/Zend/Filter/BaseNameTest.php index 4cdf8300..02a84a70 100644 --- a/tests/Zend/Filter/BaseNameTest.php +++ b/tests/Zend/Filter/BaseNameTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_BaseNameTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/BooleanTest.php b/tests/Zend/Filter/BooleanTest.php index d98357a1..4603f13a 100644 --- a/tests/Zend/Filter/BooleanTest.php +++ b/tests/Zend/Filter/BooleanTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_BooleanTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/CallbackTest.php b/tests/Zend/Filter/CallbackTest.php index 863d4260..48216e70 100644 --- a/tests/Zend/Filter/CallbackTest.php +++ b/tests/Zend/Filter/CallbackTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_CallbackTest extends \PHPUnit\Framework\TestCase { public function testObjectCallback() diff --git a/tests/Zend/Filter/Compress/Bz2Test.php b/tests/Zend/Filter/Compress/Bz2Test.php index 754fd82e..3edcadd9 100644 --- a/tests/Zend/Filter/Compress/Bz2Test.php +++ b/tests/Zend/Filter/Compress/Bz2Test.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_Bz2Test extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Compress/GzTest.php b/tests/Zend/Filter/Compress/GzTest.php index 9c6063e1..81bcd56a 100644 --- a/tests/Zend/Filter/Compress/GzTest.php +++ b/tests/Zend/Filter/Compress/GzTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_GzTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Compress/LzfTest.php b/tests/Zend/Filter/Compress/LzfTest.php index c3ca9f99..e2ff3a7d 100644 --- a/tests/Zend/Filter/Compress/LzfTest.php +++ b/tests/Zend/Filter/Compress/LzfTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_LzfTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Compress/RarTest.php b/tests/Zend/Filter/Compress/RarTest.php index d3cb716b..d9de2137 100644 --- a/tests/Zend/Filter/Compress/RarTest.php +++ b/tests/Zend/Filter/Compress/RarTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_RarTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Compress/TarTest.php b/tests/Zend/Filter/Compress/TarTest.php index 3dd93eb1..40c1c5ca 100644 --- a/tests/Zend/Filter/Compress/TarTest.php +++ b/tests/Zend/Filter/Compress/TarTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_TarTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Compress/ZipTest.php b/tests/Zend/Filter/Compress/ZipTest.php index df4ff168..81484fce 100644 --- a/tests/Zend/Filter/Compress/ZipTest.php +++ b/tests/Zend/Filter/Compress/ZipTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_Compress_ZipTest extends \PHPUnit\Framework\TestCase { /** @@ -314,7 +315,7 @@ public function testDecompressWillThrowExceptionWhenDetectingUpwardDirectoryTrav 'archive' => __DIR__ . '/../_files/compressed.zip', 'target' => __DIR__ . '/../_files/evil.zip', ] - ); + ); $filter->decompress(__DIR__ . '/../_files/evil.zip'); } diff --git a/tests/Zend/Filter/CompressTest.php b/tests/Zend/Filter/CompressTest.php index 81fc287c..93d4396b 100644 --- a/tests/Zend/Filter/CompressTest.php +++ b/tests/Zend/Filter/CompressTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_CompressTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/DecompressTest.php b/tests/Zend/Filter/DecompressTest.php index e4b5d39a..24fe36a5 100644 --- a/tests/Zend/Filter/DecompressTest.php +++ b/tests/Zend/Filter/DecompressTest.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Filter_DecompressTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/DigitsTest.php b/tests/Zend/Filter/DigitsTest.php index 13bc00fe..247b1591 100644 --- a/tests/Zend/Filter/DigitsTest.php +++ b/tests/Zend/Filter/DigitsTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_DigitsTest extends \PHPUnit\Framework\TestCase { /** @@ -92,7 +94,7 @@ public function testBasic() $output, $result = $this->_filter->filter($input), "Expected '$input' to filter to '$output', but received '$result' instead" - ); + ); } } } diff --git a/tests/Zend/Filter/DirTest.php b/tests/Zend/Filter/DirTest.php index 6148addb..f8674fb6 100644 --- a/tests/Zend/Filter/DirTest.php +++ b/tests/Zend/Filter/DirTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_DirTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/File/LowerCaseTest.php b/tests/Zend/Filter/File/LowerCaseTest.php index e9b9bee9..24c8276d 100644 --- a/tests/Zend/Filter/File/LowerCaseTest.php +++ b/tests/Zend/Filter/File/LowerCaseTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_File_LowerCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/File/RenameTest.php b/tests/Zend/Filter/File/RenameTest.php index 9a470be0..81b222ec 100644 --- a/tests/Zend/Filter/File/RenameTest.php +++ b/tests/Zend/Filter/File/RenameTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_File_RenameTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/File/UpperCaseTest.php b/tests/Zend/Filter/File/UpperCaseTest.php index 76e8e730..73c561f1 100644 --- a/tests/Zend/Filter/File/UpperCaseTest.php +++ b/tests/Zend/Filter/File/UpperCaseTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_File_UpperCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/HtmlEntitiesTest.php b/tests/Zend/Filter/HtmlEntitiesTest.php index 38bfa89c..eb0c2e14 100644 --- a/tests/Zend/Filter/HtmlEntitiesTest.php +++ b/tests/Zend/Filter/HtmlEntitiesTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_HtmlEntitiesTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/InflectorTest.php b/tests/Zend/Filter/InflectorTest.php index a2c62bf7..8fdd65e4 100644 --- a/tests/Zend/Filter/InflectorTest.php +++ b/tests/Zend/Filter/InflectorTest.php @@ -33,8 +33,10 @@ * Test class for Zend_Filter_Inflector. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_InflectorTest extends \PHPUnit\Framework\TestCase { /** @@ -268,7 +270,7 @@ public function testTargetReplacementIdentiferWorksWhenInflected() ], null, '?=##' - ); + ); $filtered = $this->inflector->filter([ 'controller' => 'FooBar', @@ -303,7 +305,7 @@ public function testTargetExceptionThrownWhenTargetSourceNotSatisfied() ], true, '?=##' - ); + ); try { $filtered = $this->inflector->filter(['controller' => 'FooBar']); @@ -324,7 +326,7 @@ public function testTargetExceptionNotThrownOnIdentifierNotFollowedByCharacter() ], true, ':' - ); + ); try { $filtered = $this->inflector->filter(['controller' => 'FooBar', 'action' => 'MooToo']); @@ -425,7 +427,7 @@ public function testCheckInflectorWithPregBackreferenceLikeParts() ], true, ':' - ); + ); $this->inflector->setStaticRule('moduleDir', 'C:\htdocs\public\cache\00\01\42\app\modules'); diff --git a/tests/Zend/Filter/InputTest.php b/tests/Zend/Filter/InputTest.php index 9b4f189b..6a0ffa37 100644 --- a/tests/Zend/Filter/InputTest.php +++ b/tests/Zend/Filter/InputTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_InputTest extends \PHPUnit\Framework\TestCase { /** @@ -678,11 +680,11 @@ public function testValidatorMultiFieldAllowEmptyProcessing() $this->assertTrue(is_array($messages)); $this->assertEquals(['rule2', 'rule3'], array_keys($messages)); $this->assertEquals(['isEmpty' => "You must give a non-empty value for field 'password3'"], - $messages['rule2']); + $messages['rule2']); $this->assertEquals(['isEmpty' => "You must give a non-empty value for field 'password3'", 0 => "You must give a non-empty value for field 'password4'", ], - $messages['rule3']); + $messages['rule3']); } public function testValidatorBreakChain() @@ -718,12 +720,12 @@ public function testValidatorBreakChain() $messageUserDefined, current($messages['field1']), 'Expected message to break 2 validators, the message of the latter overwriting that of the former' - ); + ); $this->assertEquals( "'150' is not between '1' and '100', inclusively", current($messages['field2']), 'Expected rule for field2 to break the validation chain at the first validator' - ); + ); } public function testValidatorAllowEmpty() diff --git a/tests/Zend/Filter/IntTest.php b/tests/Zend/Filter/IntTest.php index a164480f..6d7b4ea2 100644 --- a/tests/Zend/Filter/IntTest.php +++ b/tests/Zend/Filter/IntTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_IntTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/NullTest.php b/tests/Zend/Filter/NullTest.php index 8d6d567b..178dc10f 100644 --- a/tests/Zend/Filter/NullTest.php +++ b/tests/Zend/Filter/NullTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_NullTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/PregReplaceTest.php b/tests/Zend/Filter/PregReplaceTest.php index 7151e092..ae6ea64f 100644 --- a/tests/Zend/Filter/PregReplaceTest.php +++ b/tests/Zend/Filter/PregReplaceTest.php @@ -28,8 +28,10 @@ * Test class for Zend_Filter_PregReplace. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_PregReplaceTest extends \PHPUnit\Framework\TestCase { /** @@ -128,6 +130,7 @@ public function testExtendsPregReplace() /** * @group ZF-9202 */ +#[AllowDynamicProperties] class XPregReplace extends Zend_Filter_PregReplace { protected $_matchPattern = '~(>){3,}~i'; diff --git a/tests/Zend/Filter/RealPathTest.php b/tests/Zend/Filter/RealPathTest.php index 2f7c021c..5c5cfa2c 100644 --- a/tests/Zend/Filter/RealPathTest.php +++ b/tests/Zend/Filter/RealPathTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_RealPathTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/StringToLowerTest.php b/tests/Zend/Filter/StringToLowerTest.php index 1ae836f1..f886c197 100644 --- a/tests/Zend/Filter/StringToLowerTest.php +++ b/tests/Zend/Filter/StringToLowerTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_StringToLowerTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/StringToUpperTest.php b/tests/Zend/Filter/StringToUpperTest.php index 22975d39..5a2c657f 100644 --- a/tests/Zend/Filter/StringToUpperTest.php +++ b/tests/Zend/Filter/StringToUpperTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_StringToUpperTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/StringTrimTest.php b/tests/Zend/Filter/StringTrimTest.php index cbcbffeb..385e0638 100644 --- a/tests/Zend/Filter/StringTrimTest.php +++ b/tests/Zend/Filter/StringTrimTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_StringTrimTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/StripNewlinesTest.php b/tests/Zend/Filter/StripNewlinesTest.php index a8fa18c7..c1927742 100644 --- a/tests/Zend/Filter/StripNewlinesTest.php +++ b/tests/Zend/Filter/StripNewlinesTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_StripNewlinesTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/StripTagsTest.php b/tests/Zend/Filter/StripTagsTest.php index 824b6149..e373bd97 100644 --- a/tests/Zend/Filter/StripTagsTest.php +++ b/tests/Zend/Filter/StripTagsTest.php @@ -26,8 +26,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_StripTagsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/CamelCaseToDashTest.php b/tests/Zend/Filter/Word/CamelCaseToDashTest.php index 070403e4..a53ed5d5 100644 --- a/tests/Zend/Filter/Word/CamelCaseToDashTest.php +++ b/tests/Zend/Filter/Word/CamelCaseToDashTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_CamelCaseToDash. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToDashTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/CamelCaseToSeparatorTest.php b/tests/Zend/Filter/Word/CamelCaseToSeparatorTest.php index 1b353982..1e8ea603 100644 --- a/tests/Zend/Filter/Word/CamelCaseToSeparatorTest.php +++ b/tests/Zend/Filter/Word/CamelCaseToSeparatorTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_CamelCaseToSeparator. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToSeparatorTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/CamelCaseToUnderscoreTest.php b/tests/Zend/Filter/Word/CamelCaseToUnderscoreTest.php index 3e9d1683..e7553a5e 100644 --- a/tests/Zend/Filter/Word/CamelCaseToUnderscoreTest.php +++ b/tests/Zend/Filter/Word/CamelCaseToUnderscoreTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_CamelCaseToUnderscore. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_CamelCaseToUnderscoreTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/DashToCamelCaseTest.php b/tests/Zend/Filter/Word/DashToCamelCaseTest.php index 20d5a78c..9e940bd4 100644 --- a/tests/Zend/Filter/Word/DashToCamelCaseTest.php +++ b/tests/Zend/Filter/Word/DashToCamelCaseTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_DashToCamelCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToCamelCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/DashToSeparatorTest.php b/tests/Zend/Filter/Word/DashToSeparatorTest.php index e5c14915..05a78e31 100644 --- a/tests/Zend/Filter/Word/DashToSeparatorTest.php +++ b/tests/Zend/Filter/Word/DashToSeparatorTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_DashToSeparator. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToSeparatorTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/DashToUnderscoreTest.php b/tests/Zend/Filter/Word/DashToUnderscoreTest.php index e58b06e7..a49f210e 100644 --- a/tests/Zend/Filter/Word/DashToUnderscoreTest.php +++ b/tests/Zend/Filter/Word/DashToUnderscoreTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_DashToUnderscore. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_DashToUnderscoreTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/SeparatorToCamelCaseTest.php b/tests/Zend/Filter/Word/SeparatorToCamelCaseTest.php index b34e06d2..aefa2e12 100644 --- a/tests/Zend/Filter/Word/SeparatorToCamelCaseTest.php +++ b/tests/Zend/Filter/Word/SeparatorToCamelCaseTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_SeparatorToCamelCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToCamelCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/SeparatorToDashTest.php b/tests/Zend/Filter/Word/SeparatorToDashTest.php index a937e36b..574a4cf1 100644 --- a/tests/Zend/Filter/Word/SeparatorToDashTest.php +++ b/tests/Zend/Filter/Word/SeparatorToDashTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_SeparatorToDash. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToDashTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/SeparatorToSeparatorTest.php b/tests/Zend/Filter/Word/SeparatorToSeparatorTest.php index 50ac4a0f..26082b84 100644 --- a/tests/Zend/Filter/Word/SeparatorToSeparatorTest.php +++ b/tests/Zend/Filter/Word/SeparatorToSeparatorTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_SeparatorToSeparator. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_SeparatorToSeparatorTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/UnderscoreToCamelCaseTest.php b/tests/Zend/Filter/Word/UnderscoreToCamelCaseTest.php index b7c95354..c6c5d0b0 100644 --- a/tests/Zend/Filter/Word/UnderscoreToCamelCaseTest.php +++ b/tests/Zend/Filter/Word/UnderscoreToCamelCaseTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_UnderscoreToCamelCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToCamelCaseTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/UnderscoreToDashTest.php b/tests/Zend/Filter/Word/UnderscoreToDashTest.php index 8a0f36af..22357b7d 100644 --- a/tests/Zend/Filter/Word/UnderscoreToDashTest.php +++ b/tests/Zend/Filter/Word/UnderscoreToDashTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_UnderscoreToDash. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToDashTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/Word/UnderscoreToSeparatorTest.php b/tests/Zend/Filter/Word/UnderscoreToSeparatorTest.php index 0633ab15..d54475f4 100644 --- a/tests/Zend/Filter/Word/UnderscoreToSeparatorTest.php +++ b/tests/Zend/Filter/Word/UnderscoreToSeparatorTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Filter_Word_UnderscoreToSeparator. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_Filter_Word_UnderscoreToSeparatorTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Filter/_files/TestNamespace/MyDigits.php b/tests/Zend/Filter/_files/TestNamespace/MyDigits.php index 3423a6cb..0ae58187 100644 --- a/tests/Zend/Filter/_files/TestNamespace/MyDigits.php +++ b/tests/Zend/Filter/_files/TestNamespace/MyDigits.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class TestNamespace_MyDigits extends Zend_Validate_Digits { } diff --git a/tests/Zend/Filter/_files/TestNamespace/StringEquals.php b/tests/Zend/Filter/_files/TestNamespace/StringEquals.php index 8cae96be..9347b8e7 100644 --- a/tests/Zend/Filter/_files/TestNamespace/StringEquals.php +++ b/tests/Zend/Filter/_files/TestNamespace/StringEquals.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class TestNamespace_StringEquals extends Zend_Validate_Abstract { public const NOT_EQUALS = 'stringNotEquals'; diff --git a/tests/Zend/FilterTest.php b/tests/Zend/FilterTest.php index b58f424a..8417e163 100644 --- a/tests/Zend/FilterTest.php +++ b/tests/Zend/FilterTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Filter */ +#[AllowDynamicProperties] class Zend_FilterTest extends \PHPUnit\Framework\TestCase { /** @@ -198,6 +200,7 @@ public function errorHandlerIgnore($errno, $errstr, $errfile, $errline) } } +#[AllowDynamicProperties] class Zend_FilterTest_LowerCase implements Zend_Filter_Interface { public function filter($value) @@ -206,6 +209,7 @@ public function filter($value) } } +#[AllowDynamicProperties] class Zend_FilterTest_StripUpperCase implements Zend_Filter_Interface { public function filter($value) diff --git a/tests/Zend/Form/Decorator/AbstractTest.php b/tests/Zend/Form/Decorator/AbstractTest.php index 380b5915..0e3fb396 100644 --- a/tests/Zend/Form/Decorator/AbstractTest.php +++ b/tests/Zend/Form/Decorator/AbstractTest.php @@ -30,8 +30,10 @@ * Uses Zend_Form_Decorator_Errors as a concrete implementation * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_AbstractTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/CallbackTest.php b/tests/Zend/Form/Decorator/CallbackTest.php index 0d93895a..0ec11ea1 100644 --- a/tests/Zend/Form/Decorator/CallbackTest.php +++ b/tests/Zend/Form/Decorator/CallbackTest.php @@ -23,8 +23,10 @@ * Test class for Zend_Form_Decorator_Callback. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_CallbackTest extends \PHPUnit\Framework\TestCase { /** @@ -181,6 +183,7 @@ function Zend_Form_Decorator_CallbackTest_TestCallback($content, $element, array return $html; } +#[AllowDynamicProperties] class Zend_Form_Decorator_CallbackTest_TestCallbackClass { public static function direct($content, $element, array $options) diff --git a/tests/Zend/Form/Decorator/DescriptionTest.php b/tests/Zend/Form/Decorator/DescriptionTest.php index c6a8effa..16007bf0 100644 --- a/tests/Zend/Form/Decorator/DescriptionTest.php +++ b/tests/Zend/Form/Decorator/DescriptionTest.php @@ -25,8 +25,10 @@ * Test class for Zend_Form_Decorator_Description. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_DescriptionTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/ErrorsTest.php b/tests/Zend/Form/Decorator/ErrorsTest.php index 66963051..6b3a9082 100644 --- a/tests/Zend/Form/Decorator/ErrorsTest.php +++ b/tests/Zend/Form/Decorator/ErrorsTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_Errors. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ErrorsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/FieldsetTest.php b/tests/Zend/Form/Decorator/FieldsetTest.php index 6a94443c..33716fda 100644 --- a/tests/Zend/Form/Decorator/FieldsetTest.php +++ b/tests/Zend/Form/Decorator/FieldsetTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_Fieldset. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FieldsetTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/FileTest.php b/tests/Zend/Form/Decorator/FileTest.php index 0fde5652..3c6f33da 100644 --- a/tests/Zend/Form/Decorator/FileTest.php +++ b/tests/Zend/Form/Decorator/FileTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_Errors. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FileTest extends \PHPUnit\Framework\TestCase { /** @@ -198,6 +200,7 @@ private function _convertIniToInteger($setting) } } +#[AllowDynamicProperties] class Zend_View_Helper_FormFileMock extends Zend_View_Helper_FormElement { public function formFileMock($name, $attribs = null) diff --git a/tests/Zend/Form/Decorator/FormErrorsTest.php b/tests/Zend/Form/Decorator/FormErrorsTest.php index b1c79c14..477a06f2 100644 --- a/tests/Zend/Form/Decorator/FormErrorsTest.php +++ b/tests/Zend/Form/Decorator/FormErrorsTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_FormErrors. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FormErrorsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/FormTest.php b/tests/Zend/Form/Decorator/FormTest.php index 5f987293..d236b596 100644 --- a/tests/Zend/Form/Decorator/FormTest.php +++ b/tests/Zend/Form/Decorator/FormTest.php @@ -23,8 +23,10 @@ * Test class for Zend_Form_Decorator_Form. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_FormTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/HtmlTagTest.php b/tests/Zend/Form/Decorator/HtmlTagTest.php index 579e2d99..bd80362e 100644 --- a/tests/Zend/Form/Decorator/HtmlTagTest.php +++ b/tests/Zend/Form/Decorator/HtmlTagTest.php @@ -25,8 +25,10 @@ * Test class for Zend_Form_Decorator_HtmlTag. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_HtmlTagTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/ImageTest.php b/tests/Zend/Form/Decorator/ImageTest.php index 9bc88532..63ff6db8 100644 --- a/tests/Zend/Form/Decorator/ImageTest.php +++ b/tests/Zend/Form/Decorator/ImageTest.php @@ -27,8 +27,10 @@ * Test class for Zend_Form_Decorator_Image. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ImageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/LabelTest.php b/tests/Zend/Form/Decorator/LabelTest.php index 76a56cfb..bdffec2b 100644 --- a/tests/Zend/Form/Decorator/LabelTest.php +++ b/tests/Zend/Form/Decorator/LabelTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_Label. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_LabelTest extends \PHPUnit\Framework\TestCase { /** @@ -314,11 +316,11 @@ public function testRenderImplicitsOnRequest() $this->decorator->setElement($element) ->setOptions( - [ - 'placement' => 'IMPLICIT', - 'separator' => ' ', - ] - ); + [ + 'placement' => 'IMPLICIT', + 'separator' => ' ', + ] + ); $content = 'test content'; $actual = $this->decorator->render($content); @@ -339,11 +341,11 @@ public function testRenderImplicitPrependsOnRequest() $this->decorator->setElement($element) ->setOptions( - [ - 'placement' => 'IMPLICIT_PREPEND', - 'separator' => ' ', - ] - ); + [ + 'placement' => 'IMPLICIT_PREPEND', + 'separator' => ' ', + ] + ); $content = 'test content'; $actual = $this->decorator->render($content); @@ -364,11 +366,11 @@ public function testRenderImplicitAppendsOnRequest() $this->decorator->setElement($element) ->setOptions( - [ - 'placement' => 'IMPLICIT_APPEND', - 'separator' => ' ', - ] - ); + [ + 'placement' => 'IMPLICIT_APPEND', + 'separator' => ' ', + ] + ); $content = 'test content'; $actual = $this->decorator->render($content); diff --git a/tests/Zend/Form/Decorator/PrepareElementsTest.php b/tests/Zend/Form/Decorator/PrepareElementsTest.php index ab15068f..3d96ce35 100644 --- a/tests/Zend/Form/Decorator/PrepareElementsTest.php +++ b/tests/Zend/Form/Decorator/PrepareElementsTest.php @@ -24,8 +24,10 @@ * Test class for Zend_Form_Decorator_PrepareElements. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_PrepareElementsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Decorator/ViewHelperTest.php b/tests/Zend/Form/Decorator/ViewHelperTest.php index bc2a91b8..01bf5bee 100644 --- a/tests/Zend/Form/Decorator/ViewHelperTest.php +++ b/tests/Zend/Form/Decorator/ViewHelperTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_ViewHelper. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ViewHelperTest extends \PHPUnit\Framework\TestCase { /** @@ -269,6 +271,7 @@ public function testRenderingButtonAsTypeSubmit() } } +#[AllowDynamicProperties] class Zend_Form_Decorator_ViewHelperTest_Textarea extends Zend_Form_Element { public function __construct($name, $options = null) diff --git a/tests/Zend/Form/Decorator/ViewScriptTest.php b/tests/Zend/Form/Decorator/ViewScriptTest.php index b8617e79..69bc455f 100644 --- a/tests/Zend/Form/Decorator/ViewScriptTest.php +++ b/tests/Zend/Form/Decorator/ViewScriptTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Decorator_ViewScript. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Decorator_ViewScriptTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/DisplayGroupTest.php b/tests/Zend/Form/DisplayGroupTest.php index 442abbf7..ee7b99e3 100644 --- a/tests/Zend/Form/DisplayGroupTest.php +++ b/tests/Zend/Form/DisplayGroupTest.php @@ -32,8 +32,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_DisplayGroupTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -820,6 +822,7 @@ public function testHasTranslatorWithTranslateObject() } } +#[AllowDynamicProperties] class Zend_Form_DisplayGroupTest_DisplayGroup extends Zend_Form_DisplayGroup { public function init() diff --git a/tests/Zend/Form/Element/ButtonTest.php b/tests/Zend/Form/Element/ButtonTest.php index b6c48e02..075d74b8 100644 --- a/tests/Zend/Form/Element/ButtonTest.php +++ b/tests/Zend/Form/Element/ButtonTest.php @@ -23,8 +23,10 @@ * Test class for Zend_Form_Element_Button. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_ButtonTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/CheckboxTest.php b/tests/Zend/Form/Element/CheckboxTest.php index 62e84b0f..af5e8851 100644 --- a/tests/Zend/Form/Element/CheckboxTest.php +++ b/tests/Zend/Form/Element/CheckboxTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Checkbox. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_CheckboxTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/FileTest.php b/tests/Zend/Form/Element/FileTest.php index 505b16a7..721513a9 100644 --- a/tests/Zend/Form/Element/FileTest.php +++ b/tests/Zend/Form/Element/FileTest.php @@ -28,8 +28,10 @@ * Test class for Zend_Form_Element_File. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_FileTest extends \PHPUnit\Framework\TestCase { /** @@ -558,6 +560,7 @@ public function testDefaultDecoratorOrder() } } +#[AllowDynamicProperties] class Zend_Form_Element_FileTest_MockAdapter extends Zend_File_Transfer_Adapter_Abstract { public $received = false; diff --git a/tests/Zend/Form/Element/HashTest.php b/tests/Zend/Form/Element/HashTest.php index c7cdc1dc..d82b9e8f 100644 --- a/tests/Zend/Form/Element/HashTest.php +++ b/tests/Zend/Form/Element/HashTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Hash. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_HashTest extends \PHPUnit\Framework\TestCase { /** @@ -199,6 +201,7 @@ protected function _checkZf2794() } } +#[AllowDynamicProperties] class Zend_Form_Element_HashTest_SessionContainer { protected static $_hash; diff --git a/tests/Zend/Form/Element/HiddenTest.php b/tests/Zend/Form/Element/HiddenTest.php index a80243bb..1c789da1 100644 --- a/tests/Zend/Form/Element/HiddenTest.php +++ b/tests/Zend/Form/Element/HiddenTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Hidden. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_HiddenTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/ImageTest.php b/tests/Zend/Form/Element/ImageTest.php index d8d93c7f..de15aadf 100644 --- a/tests/Zend/Form/Element/ImageTest.php +++ b/tests/Zend/Form/Element/ImageTest.php @@ -24,8 +24,10 @@ * Test class for Zend_Form_Element_Image. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_ImageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/MultiCheckboxTest.php b/tests/Zend/Form/Element/MultiCheckboxTest.php index bbb09335..058477ab 100644 --- a/tests/Zend/Form/Element/MultiCheckboxTest.php +++ b/tests/Zend/Form/Element/MultiCheckboxTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_MultiCheckbox. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_MultiCheckboxTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/MultiselectTest.php b/tests/Zend/Form/Element/MultiselectTest.php index 3d5eb0b4..9b3f3380 100644 --- a/tests/Zend/Form/Element/MultiselectTest.php +++ b/tests/Zend/Form/Element/MultiselectTest.php @@ -23,8 +23,10 @@ * Test class for Zend_Form_Element_Multiselect. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_MultiselectTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/NoteTest.php b/tests/Zend/Form/Element/NoteTest.php index 56bd7632..b0c3da59 100644 --- a/tests/Zend/Form/Element/NoteTest.php +++ b/tests/Zend/Form/Element/NoteTest.php @@ -24,8 +24,10 @@ * Test class for Zend_Form_Element_Text. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_NoteTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/PasswordTest.php b/tests/Zend/Form/Element/PasswordTest.php index 5819cebd..5fc8ddf7 100644 --- a/tests/Zend/Form/Element/PasswordTest.php +++ b/tests/Zend/Form/Element/PasswordTest.php @@ -23,8 +23,10 @@ * Test class for Zend_Form_Element_Password. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_PasswordTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/RadioTest.php b/tests/Zend/Form/Element/RadioTest.php index c6f35473..2e448c2a 100644 --- a/tests/Zend/Form/Element/RadioTest.php +++ b/tests/Zend/Form/Element/RadioTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Radio. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_RadioTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/ResetTest.php b/tests/Zend/Form/Element/ResetTest.php index 207ab2fd..307513ad 100644 --- a/tests/Zend/Form/Element/ResetTest.php +++ b/tests/Zend/Form/Element/ResetTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Reset. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_ResetTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/SelectTest.php b/tests/Zend/Form/Element/SelectTest.php index 41350ef6..3e0eb6f0 100644 --- a/tests/Zend/Form/Element/SelectTest.php +++ b/tests/Zend/Form/Element/SelectTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Select. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_SelectTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/SubmitTest.php b/tests/Zend/Form/Element/SubmitTest.php index d585ca8f..f0a39f60 100644 --- a/tests/Zend/Form/Element/SubmitTest.php +++ b/tests/Zend/Form/Element/SubmitTest.php @@ -26,8 +26,10 @@ * Test class for Zend_Form_Element_Submit. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_SubmitTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/TextTest.php b/tests/Zend/Form/Element/TextTest.php index 046a72bf..23c66d41 100644 --- a/tests/Zend/Form/Element/TextTest.php +++ b/tests/Zend/Form/Element/TextTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Text. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_TextTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/TextareaTest.php b/tests/Zend/Form/Element/TextareaTest.php index dcf6bafd..539a0579 100644 --- a/tests/Zend/Form/Element/TextareaTest.php +++ b/tests/Zend/Form/Element/TextareaTest.php @@ -22,8 +22,10 @@ * Test class for Zend_Form_Element_Textarea. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_Element_TextareaTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Form/Element/_files/Captcha/Foo.php b/tests/Zend/Form/Element/_files/Captcha/Foo.php index 3d5c7e49..2620308c 100644 --- a/tests/Zend/Form/Element/_files/Captcha/Foo.php +++ b/tests/Zend/Form/Element/_files/Captcha/Foo.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_CaptchaTest_Captcha_Foo extends Zend_Captcha_Dumb { } diff --git a/tests/Zend/Form/Element/_files/TransferAdapter/Bar.php b/tests/Zend/Form/Element/_files/TransferAdapter/Bar.php index 95313e4f..431f44e2 100644 --- a/tests/Zend/Form/Element/_files/TransferAdapter/Bar.php +++ b/tests/Zend/Form/Element/_files/TransferAdapter/Bar.php @@ -24,6 +24,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Bar extends Zend_File_Transfer_Adapter_Abstract { public $received = false; diff --git a/tests/Zend/Form/Element/_files/TransferAdapter/Foo.php b/tests/Zend/Form/Element/_files/TransferAdapter/Foo.php index 55cff340..9f1b308e 100644 --- a/tests/Zend/Form/Element/_files/TransferAdapter/Foo.php +++ b/tests/Zend/Form/Element/_files/TransferAdapter/Foo.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_FileTest_Adapter_Foo extends Zend_File_Transfer_Adapter_Abstract { public $received = false; diff --git a/tests/Zend/Form/Element/_files/filter/Foo.php b/tests/Zend/Form/Element/_files/filter/Foo.php index d149d56e..9dfb7449 100644 --- a/tests/Zend/Form/Element/_files/filter/Foo.php +++ b/tests/Zend/Form/Element/_files/filter/Foo.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_Test_Filter_Foo extends Zend_Filter_File_LowerCase { } diff --git a/tests/Zend/Form/Element/_files/validator/Foo.php b/tests/Zend/Form/Element/_files/validator/Foo.php index 026d8d17..5986af4f 100644 --- a/tests/Zend/Form/Element/_files/validator/Foo.php +++ b/tests/Zend/Form/Element/_files/validator/Foo.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Form_Element_Test_Validate_Foo extends Zend_Validate_File_Count { } diff --git a/tests/Zend/Form/ElementTest.php b/tests/Zend/Form/ElementTest.php index fd114228..f569ff30 100644 --- a/tests/Zend/Form/ElementTest.php +++ b/tests/Zend/Form/ElementTest.php @@ -32,8 +32,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_ElementTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -2256,10 +2258,12 @@ public function testSettingAnEmptyArrayValueGeneratesAValidErrorMessage() } } +#[AllowDynamicProperties] class Zend_Form_ElementTest_Decorator extends Zend_Form_Decorator_Abstract { } +#[AllowDynamicProperties] class Zend_Form_ElementTest_Element extends Zend_Form_Element { public function init() @@ -2268,6 +2272,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Form_ElementTest_ArrayFilter implements Zend_Filter_Interface { public function filter($value) diff --git a/tests/Zend/Form/FormTest.php b/tests/Zend/Form/FormTest.php index a78aec69..fa3208c1 100644 --- a/tests/Zend/Form/FormTest.php +++ b/tests/Zend/Form/FormTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_FormTest extends \PHPUnit\Framework\TestCase { /** @@ -1528,8 +1530,8 @@ public function _setup9350() ->foo->setIsArray(false) ->addElement('text', 'foo') // foo[foo][foo][foo] ->foo->addValidator('Identical', - false, - ['foo Value']); + false, + ['foo Value']); $this->form->foo->addSubForm(new Zend_Form_SubForm(), 'baz') // foo[foo][baz] ->baz->setIsArray(false) @@ -1537,8 +1539,8 @@ public function _setup9350() ->baz->setElementsBelongTo('baz[baz]') // foo[foo][baz][baz][baz] ->addElement('text', 'baz') // foo[foo][baz][baz][baz][baz] ->baz->addValidator('Identical', - false, - ['baz Value']); + false, + ['baz Value']); // This is appending a different named SubForm and setting // elementsBelongTo to a !isArray() Subform name from same level @@ -1546,8 +1548,8 @@ public function _setup9350() ->quo->setElementsBelongTo('foo') // foo[foo][foo] !!!! ->addElement('text', 'quo') // foo[foo][foo][quo] ->quo->addValidator('Identical', - false, - ['quo Value']); + false, + ['quo Value']); // This is setting elementsBelongTo point into the middle of // a chain of another SubForms elementsBelongTo @@ -1555,8 +1557,8 @@ public function _setup9350() ->duh->setElementsBelongTo('foo[zoo]') // foo[zoo] !!!! ->addElement('text', 'zoo') // foo[zoo][zoo] ->zoo->addValidator('Identical', - false, - ['zoo Value']); + false, + ['zoo Value']); // This is !isArray SubForms Name equal to the last segment // of another SubForms elementsBelongTo @@ -1566,8 +1568,8 @@ public function _setup9350() ->zoo->setIsArray(false) ->addElement('text', 'iek') // foo[zoo][iek] ->iek->addValidator('Identical', - false, - ['iek Value']); + false, + ['iek Value']); $data = ['valid' => ['foo' => ['foo' => ['foo' => ['foo' => 'foo Value', 'quo' => 'quo Value', ], @@ -1651,14 +1653,14 @@ public function _setup9401() ->$sub0->setElementsBelongTo('f[2]') ->addElement('text', 'foo') ->foo->addValidator('Identical', - false, - ['foo Value']); + false, + ['foo Value']); $this->form->$sub0->addSubForm(new Zend_Form_SubForm(), $sub0) ->$sub0->addElement('text', 'quo') ->quo->addValidator('Identical', - false, - ['quo Value']); + false, + ['quo Value']); $data = ['valid' => ['f' => [2 => ['foo' => 'foo Value', 0 => ['quo' => 'quo Value'], ]]], @@ -1704,14 +1706,14 @@ public function _setup9607() ->foo->setBelongsTo('bar[quo]') ->setRequired(true) ->addValidator('Identical', - false, - 'foo Value'); + false, + 'foo Value'); $this->form->addElement('text', 'quo') ->quo->setBelongsTo('bar[quo]') ->addValidator('Identical', - false, - 'quo Value'); + false, + 'quo Value'); $data = ['valid' => ['bar' => ['quo' => ['foo' => 'foo Value', 'quo' => 'quo Value', ]]], @@ -2752,8 +2754,8 @@ public function _setup9697() $this->form->addElement('text', 'quo') ->quo->setBelongsTo('bar[quo]') ->addValidator('Callback', - false, - $callback); + false, + $callback); return ['bar' => ['quo' => ['foo' => 'foo Value', 'quo' => 'quo Value', ]]]; @@ -4812,10 +4814,12 @@ public function testHasErrorsMethodShouldCheckAlsoSubForms() } } +#[AllowDynamicProperties] class Zend_Form_FormTest_DisplayGroup extends Zend_Form_DisplayGroup { } +#[AllowDynamicProperties] class Zend_Form_FormTest_FormExtension extends Zend_Form { public function init() @@ -4824,6 +4828,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Form_FormTest_WithDisplayGroup extends Zend_Form { public function init() @@ -4838,6 +4843,7 @@ public function init() } } +#[AllowDynamicProperties] class Zend_Form_FormTest_AddToDisplayGroup extends Zend_Form_FormTest_WithDisplayGroup { public function init() diff --git a/tests/Zend/Form/SubFormTest.php b/tests/Zend/Form/SubFormTest.php index 32fd09e8..c765246c 100644 --- a/tests/Zend/Form/SubFormTest.php +++ b/tests/Zend/Form/SubFormTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Form */ +#[AllowDynamicProperties] class Zend_Form_SubFormTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -147,6 +149,7 @@ public function testSubFormWithNumericName() } } +#[AllowDynamicProperties] class Zend_Form_SubFormTest_SubForm extends Zend_Form_SubForm { public function init() diff --git a/tests/Zend/Form/_files/decorators/Label.php b/tests/Zend/Form/_files/decorators/Label.php index 47c81153..07985836 100644 --- a/tests/Zend/Form/_files/decorators/Label.php +++ b/tests/Zend/Form/_files/decorators/Label.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_Decorator_Label extends Zend_Form_Decorator_Abstract { /** diff --git a/tests/Zend/Form/_files/decorators/TableRow.php b/tests/Zend/Form/_files/decorators/TableRow.php index aeaf5605..02c8faea 100644 --- a/tests/Zend/Form/_files/decorators/TableRow.php +++ b/tests/Zend/Form/_files/decorators/TableRow.php @@ -23,6 +23,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_Decorator_TableRow extends Zend_Form_Decorator_Abstract { /** diff --git a/tests/Zend/Json/JsonXMLTest.php b/tests/Zend/Json/JsonXMLTest.php index cb82d87f..94c173f6 100644 --- a/tests/Zend/Json/JsonXMLTest.php +++ b/tests/Zend/Json/JsonXMLTest.php @@ -25,8 +25,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Json */ +#[AllowDynamicProperties] class Zend_Json_JsonXMLTest extends \PHPUnit\Framework\TestCase { /** @@ -529,7 +531,6 @@ public function testUsingXML7() */ public function testUsingXML8() { - // Set the XML contents that will be tested here. $xmlStringContents = << @@ -562,6 +563,7 @@ public function testUsingXML8() /** * @group ZF-11385 + * * @dataProvider providerNestingDepthIsHandledProperly * * @param mixed $xmlStringContents @@ -575,6 +577,7 @@ public function testNestingDepthIsHandledProperlyWhenNestingDepthExceedsMaximum( /** * @group ZF-11385 + * * @dataProvider providerNestingDepthIsHandledProperly * * @param mixed $xmlStringContents diff --git a/tests/Zend/Json/_files/ZF11356-NamespacedClass.php b/tests/Zend/Json/_files/ZF11356-NamespacedClass.php index 0c24d2db..e1f2ced4 100644 --- a/tests/Zend/Json/_files/ZF11356-NamespacedClass.php +++ b/tests/Zend/Json/_files/ZF11356-NamespacedClass.php @@ -26,6 +26,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class NamespacedClass extends ArrayIterator { } diff --git a/tests/Zend/JsonTest.php b/tests/Zend/JsonTest.php index 41fdad3d..62f09c93 100644 --- a/tests/Zend/JsonTest.php +++ b/tests/Zend/JsonTest.php @@ -39,8 +39,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Json */ +#[AllowDynamicProperties] class Zend_JsonTest extends \PHPUnit\Framework\TestCase { private $_originalUseBuiltinEncoderDecoderValue; @@ -920,6 +922,7 @@ public function testWillDecodeStructureWithEmptyKeyToObjectProperly() /** * Zend_JsonTest_Item: test item for use with testZf461(). */ +#[AllowDynamicProperties] class Zend_JsonTest_Item { } @@ -927,6 +930,7 @@ class Zend_JsonTest_Item /** * Zend_JsonTest_Object: test class for encoding classes. */ +#[AllowDynamicProperties] class Zend_JsonTest_Object { public const FOO = 'bar'; @@ -975,6 +979,7 @@ public function toJson() * * @see ZF-11167 */ +#[AllowDynamicProperties] class ZF11167_ToArrayClass { private string $_firstName = 'John'; @@ -1000,6 +1005,7 @@ public function toArray() * * @see ZF-11167 */ +#[AllowDynamicProperties] class ZF11167_ToArrayToJsonClass extends ZF11167_ToArrayClass { public function toJson() @@ -1011,6 +1017,7 @@ public function toJson() /** * ISSUE ZF-4946. */ +#[AllowDynamicProperties] class Zend_Json_ToJsonWithExpr { private string $_string = 'text'; @@ -1034,6 +1041,7 @@ public function toJson() /** * @see ZF-12347 */ +#[AllowDynamicProperties] class ZF12347_IteratorAggregate implements IteratorAggregate { protected $array = [ diff --git a/tests/Zend/Layout/FunctionalTest.php b/tests/Zend/Layout/FunctionalTest.php index 82bda6d6..0f665755 100644 --- a/tests/Zend/Layout/FunctionalTest.php +++ b/tests/Zend/Layout/FunctionalTest.php @@ -22,8 +22,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Layout */ +#[AllowDynamicProperties] class Zend_Layout_FunctionalTest extends Zend_Test_PHPUnit_ControllerTestCase { /** diff --git a/tests/Zend/Layout/HelperTest.php b/tests/Zend/Layout/HelperTest.php index c7d021b0..965cf162 100644 --- a/tests/Zend/Layout/HelperTest.php +++ b/tests/Zend/Layout/HelperTest.php @@ -25,8 +25,10 @@ * Test class for Zend_Layout_Controller_Action_Helper_Layout. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Layout */ +#[AllowDynamicProperties] class Zend_Layout_HelperTest extends \PHPUnit\Framework\TestCase { /** @@ -124,6 +126,7 @@ public function testHelperProxiesToLayoutObjectMethods() /** * Zend_Layout extension to allow resetting MVC instance. */ +#[AllowDynamicProperties] class Zend_Layout_HelperTest_Layout extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/Layout/LayoutTest.php b/tests/Zend/Layout/LayoutTest.php index 94db5779..ce72c74a 100644 --- a/tests/Zend/Layout/LayoutTest.php +++ b/tests/Zend/Layout/LayoutTest.php @@ -29,8 +29,10 @@ * Test class for Zend_Layout. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Layout */ +#[AllowDynamicProperties] class Zend_Layout_LayoutTest extends \PHPUnit\Framework\TestCase { /** @@ -408,7 +410,7 @@ public function testLayoutWithViewBasePath() { $layout = new Zend_Layout([ 'viewBasePath' => __DIR__ . '/_files/layouts-basepath/', ] - ); + ); $this->assertEquals('layout inside basePath', $layout->render()); $layout->setLayout('layout2'); $this->assertEquals('foobar-helper-output', $layout->render()); @@ -469,6 +471,7 @@ public function testSetLayoutWithDisabledFlag() /** * Zend_Layout extension to allow resetting mvcInstance static member. */ +#[AllowDynamicProperties] class Zend_Layout_LayoutTest_Override extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/Layout/PluginTest.php b/tests/Zend/Layout/PluginTest.php index fd9c9614..064d0b5a 100644 --- a/tests/Zend/Layout/PluginTest.php +++ b/tests/Zend/Layout/PluginTest.php @@ -27,8 +27,10 @@ * Test class for Zend_Layout_Controller_Plugin_Layout. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Layout */ +#[AllowDynamicProperties] class Zend_Layout_PluginTest extends \PHPUnit\Framework\TestCase { /** @@ -212,6 +214,7 @@ public function testPostDispatchDoesNotRenderLayoutWhenResponseRedirected() /** * Zend_Layout extension to allow resetting MVC instance. */ +#[AllowDynamicProperties] class Zend_Layout_PluginTest_Layout extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/Layout/_files/MinimalCustomView.php b/tests/Zend/Layout/_files/MinimalCustomView.php index d8ebdb33..e3227a5c 100644 --- a/tests/Zend/Layout/_files/MinimalCustomView.php +++ b/tests/Zend/Layout/_files/MinimalCustomView.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Layout_Test_MinimalCustomView implements Zend_View_Interface { public function getEngine() diff --git a/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestErrorController.php b/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestErrorController.php index e95c85e6..ff602d8c 100644 --- a/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestErrorController.php +++ b/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestErrorController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendLayoutFunctionalTestErrorController extends Zend_Controller_Action { public function errorAction() diff --git a/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestTestController.php b/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestTestController.php index e9aecb5e..d187e18d 100644 --- a/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestTestController.php +++ b/tests/Zend/Layout/_files/functional-test-app/controllers/ZendLayoutFunctionalTestTestController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendLayoutFunctionalTestTestController extends Zend_Controller_Action { public function indexAction() diff --git a/tests/Zend/Layout/_files/layouts-basepath/helpers/FooBar.php b/tests/Zend/Layout/_files/layouts-basepath/helpers/FooBar.php index fb3a3628..0001a17f 100644 --- a/tests/Zend/Layout/_files/layouts-basepath/helpers/FooBar.php +++ b/tests/Zend/Layout/_files/layouts-basepath/helpers/FooBar.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Layout_View_Helper_FooBar { public function fooBar() diff --git a/tests/Zend/Loader/AutoloadableClass.php b/tests/Zend/Loader/AutoloadableClass.php index df3efa97..e39cbd24 100644 --- a/tests/Zend/Loader/AutoloadableClass.php +++ b/tests/Zend/Loader/AutoloadableClass.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_AutoloadableClass { } diff --git a/tests/Zend/Loader/Autoloader/ResourceTest.php b/tests/Zend/Loader/Autoloader/ResourceTest.php index 22e38dbb..9c1c1b85 100644 --- a/tests/Zend/Loader/Autoloader/ResourceTest.php +++ b/tests/Zend/Loader/Autoloader/ResourceTest.php @@ -37,8 +37,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Loader */ +#[AllowDynamicProperties] class Zend_Loader_Autoloader_ResourceTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Loader/Autoloader/_files/forms/ZendLoaderAutoloaderResourceTest.php b/tests/Zend/Loader/Autoloader/_files/forms/ZendLoaderAutoloaderResourceTest.php index 6ffc0e04..40ff3822 100644 --- a/tests/Zend/Loader/Autoloader/_files/forms/ZendLoaderAutoloaderResourceTest.php +++ b/tests/Zend/Loader/Autoloader/_files/forms/ZendLoaderAutoloaderResourceTest.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooBar_Form_ZendLoaderAutoloaderResourceTest { } diff --git a/tests/Zend/Loader/Autoloader/_files/models/Baz.php b/tests/Zend/Loader/Autoloader/_files/models/Baz.php index b4ec55d4..a07e3da0 100644 --- a/tests/Zend/Loader/Autoloader/_files/models/Baz.php +++ b/tests/Zend/Loader/Autoloader/_files/models/Baz.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_Bar_Model_Baz { } diff --git a/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceMethodOverloading.php b/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceMethodOverloading.php index 8e26c101..77b88a3b 100644 --- a/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceMethodOverloading.php +++ b/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceMethodOverloading.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooBar_Model_ZendLoaderAutoloaderResourceMethodOverloading { } diff --git a/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceTest.php b/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceTest.php index 4b1f542a..1a2244f7 100644 --- a/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceTest.php +++ b/tests/Zend/Loader/Autoloader/_files/models/ZendLoaderAutoloaderResourceTest.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class FooBar_Model_ZendLoaderAutoloaderResourceTest { } diff --git a/tests/Zend/Loader/Autoloader/_files/services/ZendLoaderAutoloaderResourceTest.php b/tests/Zend/Loader/Autoloader/_files/services/ZendLoaderAutoloaderResourceTest.php index a54f8489..924afa57 100644 --- a/tests/Zend/Loader/Autoloader/_files/services/ZendLoaderAutoloaderResourceTest.php +++ b/tests/Zend/Loader/Autoloader/_files/services/ZendLoaderAutoloaderResourceTest.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Service_ZendLoaderAutoloaderResourceTest { } diff --git a/tests/Zend/Loader/AutoloaderFactoryClassMapLoaderTest.php b/tests/Zend/Loader/AutoloaderFactoryClassMapLoaderTest.php index 87d1faae..ace05fba 100644 --- a/tests/Zend/Loader/AutoloaderFactoryClassMapLoaderTest.php +++ b/tests/Zend/Loader/AutoloaderFactoryClassMapLoaderTest.php @@ -18,8 +18,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_Loader_AutoloaderFactoryClassMapLoaderTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Loader/AutoloaderFactoryTest.php b/tests/Zend/Loader/AutoloaderFactoryTest.php index 71c7f6d8..cb836cee 100644 --- a/tests/Zend/Loader/AutoloaderFactoryTest.php +++ b/tests/Zend/Loader/AutoloaderFactoryTest.php @@ -25,8 +25,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_Loader_AutoloaderFactoryTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Loader/AutoloaderMultiVersionTest.php b/tests/Zend/Loader/AutoloaderMultiVersionTest.php index a822a3bd..5ab907c5 100644 --- a/tests/Zend/Loader/AutoloaderMultiVersionTest.php +++ b/tests/Zend/Loader/AutoloaderMultiVersionTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Loader */ +#[AllowDynamicProperties] class Zend_Loader_AutoloaderMultiVersionTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Loader/AutoloaderTest.php b/tests/Zend/Loader/AutoloaderTest.php index d5a09882..3dbbbdb9 100644 --- a/tests/Zend/Loader/AutoloaderTest.php +++ b/tests/Zend/Loader/AutoloaderTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Loader */ +#[AllowDynamicProperties] class Zend_Loader_AutoloaderTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -434,6 +436,7 @@ function ZendLoaderAutoloader_Autoload($class) return $class; } +#[AllowDynamicProperties] class Zend_Loader_AutoloaderTest_Autoloader implements Zend_Loader_Autoloader_Interface { public function autoload($class) diff --git a/tests/Zend/Loader/ClassMapAutoloaderTest.php b/tests/Zend/Loader/ClassMapAutoloaderTest.php index 5c0ff196..63aaf152 100644 --- a/tests/Zend/Loader/ClassMapAutoloaderTest.php +++ b/tests/Zend/Loader/ClassMapAutoloaderTest.php @@ -20,8 +20,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_Loader_ClassMapAutoloaderTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Loader/MyLoader.php b/tests/Zend/Loader/MyLoader.php index fa56415f..5c9d101c 100644 --- a/tests/Zend/Loader/MyLoader.php +++ b/tests/Zend/Loader/MyLoader.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_MyLoader extends Zend_Loader { public static function loadClass($class, $dirs = null) diff --git a/tests/Zend/Loader/MyOverloader.php b/tests/Zend/Loader/MyOverloader.php index 1214e1ae..a0f0b9c8 100644 --- a/tests/Zend/Loader/MyOverloader.php +++ b/tests/Zend/Loader/MyOverloader.php @@ -27,6 +27,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Loader_MyOverloader extends Zend_Loader { public static function loadClass($class, $dirs = null) diff --git a/tests/Zend/Loader/PluginLoaderTest.php b/tests/Zend/Loader/PluginLoaderTest.php index aff48d67..6d2cf089 100644 --- a/tests/Zend/Loader/PluginLoaderTest.php +++ b/tests/Zend/Loader/PluginLoaderTest.php @@ -25,8 +25,10 @@ * Test class for Zend_Loader_PluginLoader. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Loader */ +#[AllowDynamicProperties] class Zend_Loader_PluginLoaderTest extends \PHPUnit\Framework\TestCase { protected $_includeCache; diff --git a/tests/Zend/Loader/StandardAutoloaderTest.php b/tests/Zend/Loader/StandardAutoloaderTest.php index 77d10e96..45b97640 100644 --- a/tests/Zend/Loader/StandardAutoloaderTest.php +++ b/tests/Zend/Loader/StandardAutoloaderTest.php @@ -21,8 +21,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_Loader_StandardAutoloaderTest extends \PHPUnit\Framework\TestCase { public function setUp(): void diff --git a/tests/Zend/Loader/TestAsset/ClassMappedClass.php b/tests/Zend/Loader/TestAsset/ClassMappedClass.php index 5f44f148..ea0daa46 100644 --- a/tests/Zend/Loader/TestAsset/ClassMappedClass.php +++ b/tests/Zend/Loader/TestAsset/ClassMappedClass.php @@ -19,8 +19,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_UnusualNamespace_ClassMappedClass { public $options; diff --git a/tests/Zend/Loader/TestAsset/Name_Space/Namespaced/Class.php b/tests/Zend/Loader/TestAsset/Name_Space/Namespaced/Class.php index dcf4b2ab..52381a5f 100644 --- a/tests/Zend/Loader/TestAsset/Name_Space/Namespaced/Class.php +++ b/tests/Zend/Loader/TestAsset/Name_Space/Namespaced/Class.php @@ -19,8 +19,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Namespaced_Class { } diff --git a/tests/Zend/Loader/TestAsset/NamespacedClass.php b/tests/Zend/Loader/TestAsset/NamespacedClass.php index bde415a4..2854bc12 100644 --- a/tests/Zend/Loader/TestAsset/NamespacedClass.php +++ b/tests/Zend/Loader/TestAsset/NamespacedClass.php @@ -21,8 +21,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class NamespacedClass { } diff --git a/tests/Zend/Loader/TestAsset/StandardAutoloader.php b/tests/Zend/Loader/TestAsset/StandardAutoloader.php index efb15379..85f54104 100644 --- a/tests/Zend/Loader/TestAsset/StandardAutoloader.php +++ b/tests/Zend/Loader/TestAsset/StandardAutoloader.php @@ -19,8 +19,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class Zend_Loader_TestAsset_StandardAutoloader extends Zend_Loader_StandardAutoloader { /** diff --git a/tests/Zend/Loader/TestAsset/TestPlugins/Bar.php b/tests/Zend/Loader/TestAsset/TestPlugins/Bar.php index a6f676b5..b64ff711 100644 --- a/tests/Zend/Loader/TestAsset/TestPlugins/Bar.php +++ b/tests/Zend/Loader/TestAsset/TestPlugins/Bar.php @@ -17,8 +17,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class ZendTest_Loader_TestAsset_TestPlugins_Bar { } diff --git a/tests/Zend/Loader/TestAsset/TestPlugins/Baz.php b/tests/Zend/Loader/TestAsset/TestPlugins/Baz.php index 95a69053..7fb945a4 100644 --- a/tests/Zend/Loader/TestAsset/TestPlugins/Baz.php +++ b/tests/Zend/Loader/TestAsset/TestPlugins/Baz.php @@ -19,8 +19,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class ZendTest_Loader_TestAsset_TestPlugins_Baz { } diff --git a/tests/Zend/Loader/TestAsset/TestPlugins/Foo.php b/tests/Zend/Loader/TestAsset/TestPlugins/Foo.php index 27a09011..f6fddce4 100644 --- a/tests/Zend/Loader/TestAsset/TestPlugins/Foo.php +++ b/tests/Zend/Loader/TestAsset/TestPlugins/Foo.php @@ -17,8 +17,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class ZendTest_Loader_TestAsset_TestPlugins_Foo { } diff --git a/tests/Zend/Loader/TestAsset/TestPrefix/FallbackCase.php b/tests/Zend/Loader/TestAsset/TestPrefix/FallbackCase.php index a4f2d6e5..e411e25d 100644 --- a/tests/Zend/Loader/TestAsset/TestPrefix/FallbackCase.php +++ b/tests/Zend/Loader/TestAsset/TestPrefix/FallbackCase.php @@ -17,8 +17,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class TestPrefix_FallbackCase { } diff --git a/tests/Zend/Loader/TestAsset/TestPrefix/NoDuplicateAutoloadersCase.php b/tests/Zend/Loader/TestAsset/TestPrefix/NoDuplicateAutoloadersCase.php index a54751ab..6a1dad8c 100644 --- a/tests/Zend/Loader/TestAsset/TestPrefix/NoDuplicateAutoloadersCase.php +++ b/tests/Zend/Loader/TestAsset/TestPrefix/NoDuplicateAutoloadersCase.php @@ -17,8 +17,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class TestPrefix_NoDuplicateAutoloadersCase { } diff --git a/tests/Zend/Loader/TestAsset/UnusualPrefix/PrefixedClass.php b/tests/Zend/Loader/TestAsset/UnusualPrefix/PrefixedClass.php index f27c5173..1d97a2b9 100644 --- a/tests/Zend/Loader/TestAsset/UnusualPrefix/PrefixedClass.php +++ b/tests/Zend/Loader/TestAsset/UnusualPrefix/PrefixedClass.php @@ -17,8 +17,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Loader */ +#[AllowDynamicProperties] class ZendTest_UnusualPrefix_PrefixedClass { } diff --git a/tests/Zend/Loader/_files/ZendLoaderAutoloader/Foo.php b/tests/Zend/Loader/_files/ZendLoaderAutoloader/Foo.php index add16a8c..cb11ab16 100644 --- a/tests/Zend/Loader/_files/ZendLoaderAutoloader/Foo.php +++ b/tests/Zend/Loader/_files/ZendLoaderAutoloader/Foo.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendLoaderAutoloader_Foo { } diff --git a/tests/Zend/Loader/_files/ZfTest/CacheTest.php b/tests/Zend/Loader/_files/ZfTest/CacheTest.php index 9f2bd6d1..b224fa51 100644 --- a/tests/Zend/Loader/_files/ZfTest/CacheTest.php +++ b/tests/Zend/Loader/_files/ZfTest/CacheTest.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfTest_CacheTest { } diff --git a/tests/Zend/Loader/_files/ZfTest/FormSubmit.php b/tests/Zend/Loader/_files/ZfTest/FormSubmit.php index 680ae793..00caf1a7 100644 --- a/tests/Zend/Loader/_files/ZfTest/FormSubmit.php +++ b/tests/Zend/Loader/_files/ZfTest/FormSubmit.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZfTest_FormSubmit { } diff --git a/tests/Zend/LoaderTest.php b/tests/Zend/LoaderTest.php index 12c799fe..2abdfa9d 100644 --- a/tests/Zend/LoaderTest.php +++ b/tests/Zend/LoaderTest.php @@ -31,8 +31,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Loader */ +#[AllowDynamicProperties] class Zend_LoaderTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Locale/DataTest.php b/tests/Zend/Locale/DataTest.php index 263d8acc..ae8e43d9 100644 --- a/tests/Zend/Locale/DataTest.php +++ b/tests/Zend/Locale/DataTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Locale */ +#[AllowDynamicProperties] class Zend_Locale_DataTest extends \PHPUnit\Framework\TestCase { private $_cache; @@ -34,8 +36,8 @@ public function setUp(): void { require_once 'Zend/Cache.php'; $this->_cache = Zend_Cache::factory('Core', 'File', - ['lifetime' => 1, 'automatic_serialization' => true], - ['cache_dir' => __DIR__ . '/../_files/']); + ['lifetime' => 1, 'automatic_serialization' => true], + ['cache_dir' => __DIR__ . '/../_files/']); Zend_Locale_Data::setCache($this->_cache); } diff --git a/tests/Zend/Locale/FormatTest.php b/tests/Zend/Locale/FormatTest.php index d7ce1102..5c629d1b 100644 --- a/tests/Zend/Locale/FormatTest.php +++ b/tests/Zend/Locale/FormatTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Locale */ +#[AllowDynamicProperties] class Zend_Locale_FormatTest extends \PHPUnit\Framework\TestCase { /** @@ -769,6 +771,7 @@ public function testSetOption() } catch (Zend_Locale_Exception $e) { // success } + // test interaction between class-wide default date format and using locale's default format try { $result = ['date_format' => 'MMM d, y', 'locale' => 'en_US', 'month' => '7', diff --git a/tests/Zend/Locale/MathTest.php b/tests/Zend/Locale/MathTest.php index 989cfa91..cf152484 100644 --- a/tests/Zend/Locale/MathTest.php +++ b/tests/Zend/Locale/MathTest.php @@ -25,8 +25,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Locale */ +#[AllowDynamicProperties] class Zend_Locale_MathTest extends \PHPUnit\Framework\TestCase { private static string $savedLocale = 'C'; diff --git a/tests/Zend/LocaleTest.php b/tests/Zend/LocaleTest.php index 5e016f86..f83fac8b 100644 --- a/tests/Zend/LocaleTest.php +++ b/tests/Zend/LocaleTest.php @@ -27,8 +27,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Locale */ +#[AllowDynamicProperties] class Zend_LocaleTest extends \PHPUnit\Framework\TestCase { /** @@ -50,8 +52,8 @@ public function setUp(): void setlocale(LC_ALL, 'de'); require_once 'Zend/Cache.php'; $this->_cache = Zend_Cache::factory('Core', 'File', - ['lifetime' => 120, 'automatic_serialization' => true], - ['cache_dir' => __DIR__ . '/_files/']); + ['lifetime' => 120, 'automatic_serialization' => true], + ['cache_dir' => __DIR__ . '/_files/']); Zend_LocaleTestHelper::resetObject(); Zend_LocaleTestHelper::setCache($this->_cache); @@ -961,6 +963,7 @@ public function errorHandlerIgnore($errno, $errstr, $errfile, $errline) } } +#[AllowDynamicProperties] class Zend_LocaleTestHelper extends Zend_Locale { public static function resetObject() diff --git a/tests/Zend/Navigation/ContainerTest.php b/tests/Zend/Navigation/ContainerTest.php index 94c7b3c8..afe2f021 100644 --- a/tests/Zend/Navigation/ContainerTest.php +++ b/tests/Zend/Navigation/ContainerTest.php @@ -25,8 +25,10 @@ * Tests the class Zend_Navigation_Container. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_Navigation_ContainerTest extends \PHPUnit\Framework\TestCase { /** @@ -315,7 +317,7 @@ public function testAddPagesShouldWorkWithArray() ]); $this->assertEquals(2, count($nav), - 'Expected 2 pages, found ' . count($nav)); + 'Expected 2 pages, found ' . count($nav)); } public function testAddPagesShouldWorkWithConfig() @@ -334,7 +336,7 @@ public function testAddPagesShouldWorkWithConfig() ])); $this->assertEquals(2, count($nav), - 'Expected 2 pages, found ' . count($nav)); + 'Expected 2 pages, found ' . count($nav)); } public function testAddPagesShouldWorkWithMixedArray() @@ -357,7 +359,7 @@ public function testAddPagesShouldWorkWithMixedArray() ])); $this->assertEquals(3, count($nav), - 'Expected 3 pages, found ' . count($nav)); + 'Expected 3 pages, found ' . count($nav)); } /** @@ -369,7 +371,7 @@ public function testAddPagesShouldWorkWithNavigationContainer() $nav->addPages($this->_getFindByNavigation()); $this->assertEquals(3, count($nav), - 'Expected 3 pages, found ' . count($nav)); + 'Expected 3 pages, found ' . count($nav)); $this->assertEquals($nav->toArray(), $this->_getFindByNavigation()->toArray()); } @@ -417,7 +419,7 @@ public function testRemovingAllPages() $nav->removePages(); $this->assertEquals(0, count($nav), - 'Expected 0 pages, found ' . count($nav)); + 'Expected 0 pages, found ' . count($nav)); } public function testSettingPages() @@ -442,7 +444,7 @@ public function testSettingPages() ]); $this->assertEquals(1, count($nav), - 'Expected 1 page, found ' . count($nav)); + 'Expected 1 page, found ' . count($nav)); } public function testGetPagesShouldReturnAnArrayOfPages() diff --git a/tests/Zend/Navigation/Page/MvcTest.php b/tests/Zend/Navigation/Page/MvcTest.php index 28ab7f29..49b30af8 100644 --- a/tests/Zend/Navigation/Page/MvcTest.php +++ b/tests/Zend/Navigation/Page/MvcTest.php @@ -26,8 +26,10 @@ * Tests the class Zend_Navigation_Page_Mvc. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_Navigation_Page_MvcTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Navigation/Page/UriTest.php b/tests/Zend/Navigation/Page/UriTest.php index 64c6e91c..6c591d3d 100644 --- a/tests/Zend/Navigation/Page/UriTest.php +++ b/tests/Zend/Navigation/Page/UriTest.php @@ -22,8 +22,10 @@ * Tests the class Zend_Navigation_Page_Uri. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_Navigation_Page_UriTest extends \PHPUnit\Framework\TestCase { public function testUriOptionAsString() diff --git a/tests/Zend/Navigation/PageFactoryTest.php b/tests/Zend/Navigation/PageFactoryTest.php index f1df5112..831d0a5a 100644 --- a/tests/Zend/Navigation/PageFactoryTest.php +++ b/tests/Zend/Navigation/PageFactoryTest.php @@ -22,8 +22,10 @@ * Tests Zend_Navigation_Page::factory(). * /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_Navigation_PageFactoryTest extends \PHPUnit\Framework\TestCase { protected $_oldIncludePath; diff --git a/tests/Zend/Navigation/PageTest.php b/tests/Zend/Navigation/PageTest.php index 5f027018..abe6dced 100644 --- a/tests/Zend/Navigation/PageTest.php +++ b/tests/Zend/Navigation/PageTest.php @@ -23,8 +23,10 @@ * Tests the class Zend_Navigation_Page. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_Navigation_PageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Navigation/_files/My/Container.php b/tests/Zend/Navigation/_files/My/Container.php index 6d4548b4..e65ece7c 100644 --- a/tests/Zend/Navigation/_files/My/Container.php +++ b/tests/Zend/Navigation/_files/My/Container.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_Container extends Zend_Navigation_Container { public function addPage($page) diff --git a/tests/Zend/Navigation/_files/My/InvalidPage.php b/tests/Zend/Navigation/_files/My/InvalidPage.php index ace14e88..fe16a989 100644 --- a/tests/Zend/Navigation/_files/My/InvalidPage.php +++ b/tests/Zend/Navigation/_files/My/InvalidPage.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_InvalidPage { /** diff --git a/tests/Zend/Navigation/_files/My/Page.php b/tests/Zend/Navigation/_files/My/Page.php index 8e0ac035..de9c94d4 100644 --- a/tests/Zend/Navigation/_files/My/Page.php +++ b/tests/Zend/Navigation/_files/My/Page.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_Page extends Zend_Navigation_Page { /** diff --git a/tests/Zend/Navigation/_files/My/SchemeHelper.php b/tests/Zend/Navigation/_files/My/SchemeHelper.php index 9429f67c..707ca691 100644 --- a/tests/Zend/Navigation/_files/My/SchemeHelper.php +++ b/tests/Zend/Navigation/_files/My/SchemeHelper.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_SchemeHelper extends Zend_View_Helper_ServerUrl { public const RETURN_URL = 'spotify:track:2nd6CTjR9zjHGT0QtpfLHe'; diff --git a/tests/Zend/Navigation/_files/My/UrlHelper.php b/tests/Zend/Navigation/_files/My/UrlHelper.php index 3be9f19c..3db22f53 100644 --- a/tests/Zend/Navigation/_files/My/UrlHelper.php +++ b/tests/Zend/Navigation/_files/My/UrlHelper.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class My_UrlHelper extends Zend_Controller_Action_Helper_Url { public const RETURN_URL = 'spotify:track:2nd6CTjR9zjHGT0QtpfLHe'; diff --git a/tests/Zend/NavigationTest.php b/tests/Zend/NavigationTest.php index b09c9985..6344f4c7 100644 --- a/tests/Zend/NavigationTest.php +++ b/tests/Zend/NavigationTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Navigation */ +#[AllowDynamicProperties] class Zend_NavigationTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Navigation $_navigation; diff --git a/tests/Zend/Paginator/Adapter/ArrayTest.php b/tests/Zend/Paginator/Adapter/ArrayTest.php index 7e3a95f0..b6a21567 100644 --- a/tests/Zend/Paginator/Adapter/ArrayTest.php +++ b/tests/Zend/Paginator/Adapter/ArrayTest.php @@ -28,8 +28,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_ArrayTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_Adapter_Array $_adapter; diff --git a/tests/Zend/Paginator/Adapter/IteratorTest.php b/tests/Zend/Paginator/Adapter/IteratorTest.php index d8a74784..5bdc5cc9 100644 --- a/tests/Zend/Paginator/Adapter/IteratorTest.php +++ b/tests/Zend/Paginator/Adapter/IteratorTest.php @@ -28,8 +28,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_IteratorTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_Adapter_Iterator $_adapter; diff --git a/tests/Zend/Paginator/Adapter/NullTest.php b/tests/Zend/Paginator/Adapter/NullTest.php index fd0e0468..1afeb4bb 100644 --- a/tests/Zend/Paginator/Adapter/NullTest.php +++ b/tests/Zend/Paginator/Adapter/NullTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_Adapter_NullTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_Adapter_Null $_adapter; diff --git a/tests/Zend/Paginator/ScrollingStyle/AllTest.php b/tests/Zend/Paginator/ScrollingStyle/AllTest.php index 18f6f985..8af298dd 100644 --- a/tests/Zend/Paginator/ScrollingStyle/AllTest.php +++ b/tests/Zend/Paginator/ScrollingStyle/AllTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_AllTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_ScrollingStyle_All $_scrollingStyle = null; diff --git a/tests/Zend/Paginator/ScrollingStyle/ElasticTest.php b/tests/Zend/Paginator/ScrollingStyle/ElasticTest.php index 70f4779b..0bd7cf9f 100644 --- a/tests/Zend/Paginator/ScrollingStyle/ElasticTest.php +++ b/tests/Zend/Paginator/ScrollingStyle/ElasticTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_ElasticTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_ScrollingStyle_Elastic $_scrollingStyle; diff --git a/tests/Zend/Paginator/ScrollingStyle/JumpingTest.php b/tests/Zend/Paginator/ScrollingStyle/JumpingTest.php index 90b7aa34..f799807b 100644 --- a/tests/Zend/Paginator/ScrollingStyle/JumpingTest.php +++ b/tests/Zend/Paginator/ScrollingStyle/JumpingTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_JumpingTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_ScrollingStyle_Jumping $_scrollingStyle; diff --git a/tests/Zend/Paginator/ScrollingStyle/SlidingTest.php b/tests/Zend/Paginator/ScrollingStyle/SlidingTest.php index 169b1dd7..2395d796 100644 --- a/tests/Zend/Paginator/ScrollingStyle/SlidingTest.php +++ b/tests/Zend/Paginator/ScrollingStyle/SlidingTest.php @@ -33,8 +33,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Paginator */ +#[AllowDynamicProperties] class Zend_Paginator_ScrollingStyle_SlidingTest extends \PHPUnit\Framework\TestCase { private ?\Zend_Paginator_ScrollingStyle_Sliding $_scrollingStyle; diff --git a/tests/Zend/Paginator/_files/TestTable.php b/tests/Zend/Paginator/_files/TestTable.php index b4589686..4d603b6d 100644 --- a/tests/Zend/Paginator/_files/TestTable.php +++ b/tests/Zend/Paginator/_files/TestTable.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class TestTable extends Zend_Db_Table_Abstract { protected $_primary = 'number'; diff --git a/tests/Zend/Paginator/_files/Zf4207.php b/tests/Zend/Paginator/_files/Zf4207.php index fed69682..4a0b937b 100644 --- a/tests/Zend/Paginator/_files/Zf4207.php +++ b/tests/Zend/Paginator/_files/Zf4207.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zf4207 extends ArrayObject implements Zend_Paginator_Adapter_Interface { public function count(): int diff --git a/tests/Zend/RegistryTest.php b/tests/Zend/RegistryTest.php index dc3e0233..3e52045c 100644 --- a/tests/Zend/RegistryTest.php +++ b/tests/Zend/RegistryTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Registry */ +#[AllowDynamicProperties] class Zend_RegistryTest extends \PHPUnit\Framework\TestCase { public function setUp(): void diff --git a/tests/Zend/Rest/ClientTest.php b/tests/Zend/Rest/ClientTest.php index c81e0ded..c95320cd 100644 --- a/tests/Zend/Rest/ClientTest.php +++ b/tests/Zend/Rest/ClientTest.php @@ -27,9 +27,11 @@ * Test cases for Zend_Rest_Client. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Rest * @group Zend_Rest_Client */ +#[AllowDynamicProperties] class Zend_Rest_ClientTest extends \PHPUnit\Framework\TestCase { public function setUp(): void diff --git a/tests/Zend/Rest/ControllerTest.php b/tests/Zend/Rest/ControllerTest.php index 6fee277f..59947a6d 100644 --- a/tests/Zend/Rest/ControllerTest.php +++ b/tests/Zend/Rest/ControllerTest.php @@ -29,6 +29,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Rest_TestController extends Zend_Rest_Controller { public $testValue = ''; @@ -72,8 +73,10 @@ public function deleteAction() } /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Rest */ +#[AllowDynamicProperties] class Zend_Rest_ControllerTest extends \PHPUnit\Framework\TestCase { protected $_testController; diff --git a/tests/Zend/Rest/ResultTest.php b/tests/Zend/Rest/ResultTest.php index 8808f113..4aa00f34 100644 --- a/tests/Zend/Rest/ResultTest.php +++ b/tests/Zend/Rest/ResultTest.php @@ -26,9 +26,11 @@ * Test cases for Zend_Rest_Server. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Rest * @group Zend_Rest_Result */ +#[AllowDynamicProperties] class Zend_Rest_ResultTest extends \PHPUnit\Framework\TestCase { static $path; diff --git a/tests/Zend/Rest/RouteTest.php b/tests/Zend/Rest/RouteTest.php index 6dda1816..541aa4e5 100644 --- a/tests/Zend/Rest/RouteTest.php +++ b/tests/Zend/Rest/RouteTest.php @@ -28,8 +28,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Rest */ +#[AllowDynamicProperties] class Zend_Rest_RouteTest extends \PHPUnit\Framework\TestCase { protected $_front; diff --git a/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php b/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php index eb25f4cd..8956385c 100644 --- a/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php +++ b/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php @@ -33,9 +33,11 @@ * Test class for Zend_Test_PHPUnit_ControllerTestCase. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Test * @group Zend_Test_PHPUnit */ +#[AllowDynamicProperties] class Zend_Test_PHPUnit_ControllerTestCaseTest extends \PHPUnit\Framework\TestCase { /** @@ -518,6 +520,7 @@ public function providerRedirectWorksAsExpectedFromHookMethodsInFrontControllerP } // Concrete test case class for testing purposes +#[AllowDynamicProperties] class Zend_Test_PHPUnit_ControllerTestCaseTest_Concrete extends Zend_Test_PHPUnit_ControllerTestCase { } diff --git a/tests/Zend/Test/PHPUnit/_files/application/controllers/ErrorController.php b/tests/Zend/Test/PHPUnit/_files/application/controllers/ErrorController.php index c70557b7..3a2017fb 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/controllers/ErrorController.php +++ b/tests/Zend/Test/PHPUnit/_files/application/controllers/ErrorController.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ErrorController extends Zend_Controller_Action { public function errorAction() diff --git a/tests/Zend/Test/PHPUnit/_files/application/controllers/IndexController.php b/tests/Zend/Test/PHPUnit/_files/application/controllers/IndexController.php index 00a6945c..d11d8fb4 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/controllers/IndexController.php +++ b/tests/Zend/Test/PHPUnit/_files/application/controllers/IndexController.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class IndexController extends Zend_Controller_Action { public function indexAction() diff --git a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestPhpUnitFooController.php b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestPhpUnitFooController.php index 3acf8e5d..bec767e2 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestPhpUnitFooController.php +++ b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestPhpUnitFooController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendTestPhpUnitFooController extends Zend_Controller_Action { public function barAction() diff --git a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromInitController.php b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromInitController.php index cef0716d..ffea232c 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromInitController.php +++ b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromInitController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendTestRedirectFromInitController extends Zend_Controller_Action { public function init() diff --git a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromPreDispatchController.php b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromPreDispatchController.php index 464f87d2..f1b67cc4 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromPreDispatchController.php +++ b/tests/Zend/Test/PHPUnit/_files/application/controllers/ZendTestRedirectFromPreDispatchController.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ZendTestRedirectFromPreDispatchController extends Zend_Controller_Action { public function preDispatch() diff --git a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromDispatchLoopStartup.php b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromDispatchLoopStartup.php index f9ce8277..462a0126 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromDispatchLoopStartup.php +++ b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromDispatchLoopStartup.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Application_Plugin_RedirectFromDispatchLoopStartup extends Zend_Controller_Plugin_Abstract { public function dispatchLoopStartup(Zend_Controller_Request_Abstract $r) diff --git a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromPreDispatch.php b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromPreDispatch.php index 77e84b6a..7d3208dd 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromPreDispatch.php +++ b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromPreDispatch.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Application_Plugin_RedirectFromPreDispatch extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $r) diff --git a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteShutdown.php b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteShutdown.php index e86886a9..f550985d 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteShutdown.php +++ b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteShutdown.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Application_Plugin_RedirectFromRouteShutdown extends Zend_Controller_Plugin_Abstract { public function routeShutdown(Zend_Controller_Request_Abstract $r) diff --git a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteStartup.php b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteStartup.php index ed22dbee..2197cfb1 100644 --- a/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteStartup.php +++ b/tests/Zend/Test/PHPUnit/_files/application/plugins/RedirectFromRouteStartup.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Application_Plugin_RedirectFromRouteStartup extends Zend_Controller_Plugin_Abstract { public function routeStartup(Zend_Controller_Request_Abstract $r) diff --git a/tests/Zend/Translate/Adapter/ArrayTest.php b/tests/Zend/Translate/Adapter/ArrayTest.php index 5af74731..a4b2f1ba 100644 --- a/tests/Zend/Translate/Adapter/ArrayTest.php +++ b/tests/Zend/Translate/Adapter/ArrayTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Translate */ +#[AllowDynamicProperties] class Zend_Translate_Adapter_ArrayTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/TranslateTest.php b/tests/Zend/TranslateTest.php index ff439d8f..09129aa1 100644 --- a/tests/Zend/TranslateTest.php +++ b/tests/Zend/TranslateTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Translate */ +#[AllowDynamicProperties] class Zend_TranslateTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Uri/HttpTest.php b/tests/Zend/Uri/HttpTest.php index a4ccfd09..6ba476cb 100644 --- a/tests/Zend/Uri/HttpTest.php +++ b/tests/Zend/Uri/HttpTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Uri */ +#[AllowDynamicProperties] class Zend_Uri_HttpTest extends \PHPUnit\Framework\TestCase { public function setUp(): void diff --git a/tests/Zend/UriTest.php b/tests/Zend/UriTest.php index e68a1e47..0676ea84 100644 --- a/tests/Zend/UriTest.php +++ b/tests/Zend/UriTest.php @@ -29,8 +29,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Uri */ +#[AllowDynamicProperties] class Zend_UriTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/Validate/AbstractTest.php b/tests/Zend/Validate/AbstractTest.php index 6645db64..681d70cb 100644 --- a/tests/Zend/Validate/AbstractTest.php +++ b/tests/Zend/Validate/AbstractTest.php @@ -28,8 +28,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_AbstractTest extends \PHPUnit\Framework\TestCase { /** @@ -275,6 +277,7 @@ public function errorHandlerIgnore($errno, $errstr, $errfile, $errline) } } +#[AllowDynamicProperties] class Zend_Validate_AbstractTest_Concrete extends Zend_Validate_Abstract { public const FOO_MESSAGE = 'fooMessage'; diff --git a/tests/Zend/Validate/AlnumTest.php b/tests/Zend/Validate/AlnumTest.php index 4529fa81..2abff159 100644 --- a/tests/Zend/Validate/AlnumTest.php +++ b/tests/Zend/Validate/AlnumTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_AlnumTest extends \PHPUnit\Framework\TestCase { /** @@ -96,7 +98,7 @@ public function testOptionToAllowWhiteSpaceWithBasicInputValues() $result, $this->_validator->isValid($input), "Expected '$input' to be considered " . ($result ? '' : 'in') . 'valid' - ); + ); } } diff --git a/tests/Zend/Validate/AlphaTest.php b/tests/Zend/Validate/AlphaTest.php index a649a005..a3f646a6 100644 --- a/tests/Zend/Validate/AlphaTest.php +++ b/tests/Zend/Validate/AlphaTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_AlphaTest extends \PHPUnit\Framework\TestCase { /** @@ -97,7 +99,7 @@ public function testAllowWhiteSpace() $result, $this->_validator->isValid($input), "Expected '$input' to be considered " . ($result ? '' : 'in') . 'valid' - ); + ); } } diff --git a/tests/Zend/Validate/BarcodeTest.php b/tests/Zend/Validate/BarcodeTest.php index 287cff5d..da3c725a 100644 --- a/tests/Zend/Validate/BarcodeTest.php +++ b/tests/Zend/Validate/BarcodeTest.php @@ -26,8 +26,10 @@ * @uses Zend_Validate_Barcode * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_BarcodeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/BetweenTest.php b/tests/Zend/Validate/BetweenTest.php index f5905c1a..c65a48be 100644 --- a/tests/Zend/Validate/BetweenTest.php +++ b/tests/Zend/Validate/BetweenTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_BetweenTest extends \PHPUnit\Framework\TestCase { /** @@ -52,7 +54,7 @@ public function testBasic() $validator = new Zend_Validate_Between(['min' => $element[0], 'max' => $element[1], 'inclusive' => $element[2]]); foreach ($element[4] as $input) { $this->assertEquals($element[3], $validator->isValid($input), - 'Failed values: ' . $input . ':' . implode("\n", $validator->getMessages())); + 'Failed values: ' . $input . ':' . implode("\n", $validator->getMessages())); } } } diff --git a/tests/Zend/Validate/CallbackTest.php b/tests/Zend/Validate/CallbackTest.php index f75315b7..b27cdf0e 100644 --- a/tests/Zend/Validate/CallbackTest.php +++ b/tests/Zend/Validate/CallbackTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_CallbackTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/CcnumTest.php b/tests/Zend/Validate/CcnumTest.php index c1c3516c..31fea336 100644 --- a/tests/Zend/Validate/CcnumTest.php +++ b/tests/Zend/Validate/CcnumTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_CcnumTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/CreditCardTest.php b/tests/Zend/Validate/CreditCardTest.php index b9fe648c..9af60ca5 100644 --- a/tests/Zend/Validate/CreditCardTest.php +++ b/tests/Zend/Validate/CreditCardTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_CreditCardTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/DateTest.php b/tests/Zend/Validate/DateTest.php index 0d08474e..083bbe2c 100644 --- a/tests/Zend/Validate/DateTest.php +++ b/tests/Zend/Validate/DateTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_DateTest extends \PHPUnit\Framework\TestCase { /** @@ -71,7 +73,7 @@ public function testBasic() ]; foreach ($valuesExpected as $input => $result) { $this->assertEquals($result, $this->_validator->isValid($input), - "'$input' expected to be " . ($result ? '' : 'in') . 'valid'); + "'$input' expected to be " . ($result ? '' : 'in') . 'valid'); } } @@ -229,6 +231,7 @@ public function testArrayVerification() * @param string $errstr * @param string $errfile * @param int $errline + * * @group ZF-2789 */ public function errorHandlerIgnore($errno, $errstr, $errfile, $errline) diff --git a/tests/Zend/Validate/DigitsTest.php b/tests/Zend/Validate/DigitsTest.php index 42419a26..07985594 100644 --- a/tests/Zend/Validate/DigitsTest.php +++ b/tests/Zend/Validate/DigitsTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_DigitsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/EmailAddressTest.php b/tests/Zend/Validate/EmailAddressTest.php index 5c9d3cf8..73daf3af 100644 --- a/tests/Zend/Validate/EmailAddressTest.php +++ b/tests/Zend/Validate/EmailAddressTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_EmailAddressTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/CountTest.php b/tests/Zend/Validate/File/CountTest.php index 4c36ca5f..3385dc35 100644 --- a/tests/Zend/Validate/File/CountTest.php +++ b/tests/Zend/Validate/File/CountTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_CountTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/Crc32Test.php b/tests/Zend/Validate/File/Crc32Test.php index db96b480..171002b6 100644 --- a/tests/Zend/Validate/File/Crc32Test.php +++ b/tests/Zend/Validate/File/Crc32Test.php @@ -26,8 +26,10 @@ * Crc32 testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_Crc32Test extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/ExcludeExtensionTest.php b/tests/Zend/Validate/File/ExcludeExtensionTest.php index 8d7a0e38..540aab2e 100644 --- a/tests/Zend/Validate/File/ExcludeExtensionTest.php +++ b/tests/Zend/Validate/File/ExcludeExtensionTest.php @@ -26,8 +26,10 @@ * ExcludeExtension testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_ExcludeExtensionTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/ExcludeMimeTypeTest.php b/tests/Zend/Validate/File/ExcludeMimeTypeTest.php index 9c6d8059..a0cbaa92 100644 --- a/tests/Zend/Validate/File/ExcludeMimeTypeTest.php +++ b/tests/Zend/Validate/File/ExcludeMimeTypeTest.php @@ -26,8 +26,10 @@ * ExcludeMimeType testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_ExcludeMimeTypeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/ExistsTest.php b/tests/Zend/Validate/File/ExistsTest.php index 04a7b141..a65276ce 100644 --- a/tests/Zend/Validate/File/ExistsTest.php +++ b/tests/Zend/Validate/File/ExistsTest.php @@ -26,8 +26,10 @@ * Exists testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_ExistsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/ExtensionTest.php b/tests/Zend/Validate/File/ExtensionTest.php index d62c01e7..408ee986 100644 --- a/tests/Zend/Validate/File/ExtensionTest.php +++ b/tests/Zend/Validate/File/ExtensionTest.php @@ -26,8 +26,10 @@ * Extension testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_ExtensionTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/FilesSizeTest.php b/tests/Zend/Validate/File/FilesSizeTest.php index edef7a8c..1fc771f3 100644 --- a/tests/Zend/Validate/File/FilesSizeTest.php +++ b/tests/Zend/Validate/File/FilesSizeTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_FilesSizeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/HashTest.php b/tests/Zend/Validate/File/HashTest.php index 8f49b2b7..6971250d 100644 --- a/tests/Zend/Validate/File/HashTest.php +++ b/tests/Zend/Validate/File/HashTest.php @@ -26,8 +26,10 @@ * Hash testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_HashTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/ImageSizeTest.php b/tests/Zend/Validate/File/ImageSizeTest.php index 745f0b8b..d6fa3cb9 100644 --- a/tests/Zend/Validate/File/ImageSizeTest.php +++ b/tests/Zend/Validate/File/ImageSizeTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_ImageSizeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/IsCompressedTest.php b/tests/Zend/Validate/File/IsCompressedTest.php index 48af56fd..a178cbaa 100644 --- a/tests/Zend/Validate/File/IsCompressedTest.php +++ b/tests/Zend/Validate/File/IsCompressedTest.php @@ -26,8 +26,10 @@ * IsCompressed testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_IsCompressedTest extends \PHPUnit\Framework\TestCase { /** @@ -47,10 +49,10 @@ public function testBasic() if (!extension_loaded('fileinfo') && function_exists('mime_content_type') && ini_get('mime_magic.magicfile') && (mime_content_type(__DIR__ . '/_files/test.zip') == 'text/plain') - ) { + ) { $this->markTestSkipped('This PHP Version has no finfo, has mime_content_type, ' . ' but mime_content_type exhibits buggy behavior on this system.' - ); + ); } // Prevent error in the next check diff --git a/tests/Zend/Validate/File/IsImageTest.php b/tests/Zend/Validate/File/IsImageTest.php index 2005a814..efda4b55 100644 --- a/tests/Zend/Validate/File/IsImageTest.php +++ b/tests/Zend/Validate/File/IsImageTest.php @@ -26,8 +26,10 @@ * IsImage testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_IsImageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/Md5Test.php b/tests/Zend/Validate/File/Md5Test.php index 6f5c91ed..b6e041e1 100644 --- a/tests/Zend/Validate/File/Md5Test.php +++ b/tests/Zend/Validate/File/Md5Test.php @@ -26,8 +26,10 @@ * Md5 testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_Md5Test extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/MimeTypeTest.php b/tests/Zend/Validate/File/MimeTypeTest.php index f2ff6529..2271af6f 100644 --- a/tests/Zend/Validate/File/MimeTypeTest.php +++ b/tests/Zend/Validate/File/MimeTypeTest.php @@ -26,8 +26,10 @@ * MimeType testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_MimeTypeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/NotExistsTest.php b/tests/Zend/Validate/File/NotExistsTest.php index 3722b864..dcd5ee94 100644 --- a/tests/Zend/Validate/File/NotExistsTest.php +++ b/tests/Zend/Validate/File/NotExistsTest.php @@ -26,8 +26,10 @@ * NotExists testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_NotExistsTest extends \PHPUnit\Framework\TestCase { /** @@ -69,7 +71,7 @@ public function testBasic() $element[2], $validator->isValid($element[1], $files), 'Tested with ' . var_export($element, 1) - ); + ); } $valuesExpected = [ diff --git a/tests/Zend/Validate/File/Sha1Test.php b/tests/Zend/Validate/File/Sha1Test.php index 77f6e551..8b68e9ba 100644 --- a/tests/Zend/Validate/File/Sha1Test.php +++ b/tests/Zend/Validate/File/Sha1Test.php @@ -26,8 +26,10 @@ * Sha1 testbed. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_Sha1Test extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/SizeTest.php b/tests/Zend/Validate/File/SizeTest.php index 6517f257..aa182414 100644 --- a/tests/Zend/Validate/File/SizeTest.php +++ b/tests/Zend/Validate/File/SizeTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_SizeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/UploadTest.php b/tests/Zend/Validate/File/UploadTest.php index 7529c6f9..226770b6 100644 --- a/tests/Zend/Validate/File/UploadTest.php +++ b/tests/Zend/Validate/File/UploadTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_UploadTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/File/WordCountTest.php b/tests/Zend/Validate/File/WordCountTest.php index ad925ab8..39360d2c 100644 --- a/tests/Zend/Validate/File/WordCountTest.php +++ b/tests/Zend/Validate/File/WordCountTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_File_WordCountTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/FloatTest.php b/tests/Zend/Validate/FloatTest.php index 85f2233f..bc5ee606 100644 --- a/tests/Zend/Validate/FloatTest.php +++ b/tests/Zend/Validate/FloatTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_FloatTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/GreaterThanTest.php b/tests/Zend/Validate/GreaterThanTest.php index 41e7c2d4..eb2bab4f 100644 --- a/tests/Zend/Validate/GreaterThanTest.php +++ b/tests/Zend/Validate/GreaterThanTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_GreaterThanTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/HexTest.php b/tests/Zend/Validate/HexTest.php index d5349c38..d8ac6055 100644 --- a/tests/Zend/Validate/HexTest.php +++ b/tests/Zend/Validate/HexTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_HexTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/HostnameTest.php b/tests/Zend/Validate/HostnameTest.php index c1780b94..56eeef77 100644 --- a/tests/Zend/Validate/HostnameTest.php +++ b/tests/Zend/Validate/HostnameTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_HostnameTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/IbanTest.php b/tests/Zend/Validate/IbanTest.php index 7f7e2c34..6e422c03 100644 --- a/tests/Zend/Validate/IbanTest.php +++ b/tests/Zend/Validate/IbanTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_IbanTest extends \PHPUnit\Framework\TestCase { /** @@ -42,7 +44,7 @@ public function testBasic() ]; foreach ($valuesExpected as $input => $result) { $this->assertEquals($result, $validator->isValid($input), - "'$input' expected to be " . ($result ? '' : 'in') . 'valid'); + "'$input' expected to be " . ($result ? '' : 'in') . 'valid'); } } diff --git a/tests/Zend/Validate/IdenticalTest.php b/tests/Zend/Validate/IdenticalTest.php index a68688ad..b6f9d40c 100644 --- a/tests/Zend/Validate/IdenticalTest.php +++ b/tests/Zend/Validate/IdenticalTest.php @@ -28,8 +28,10 @@ * @uses Zend_Validate_Identical * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_IdenticalTest extends \PHPUnit\Framework\TestCase { private \Zend_Validate_Identical $validator; diff --git a/tests/Zend/Validate/InArrayTest.php b/tests/Zend/Validate/InArrayTest.php index 5a4f596c..3f6f65ca 100644 --- a/tests/Zend/Validate/InArrayTest.php +++ b/tests/Zend/Validate/InArrayTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_InArrayTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/IntTest.php b/tests/Zend/Validate/IntTest.php index ab72a764..98218ec9 100644 --- a/tests/Zend/Validate/IntTest.php +++ b/tests/Zend/Validate/IntTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_IntTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/IpTest.php b/tests/Zend/Validate/IpTest.php index 9b20c9cc..8323d8aa 100644 --- a/tests/Zend/Validate/IpTest.php +++ b/tests/Zend/Validate/IpTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_IpTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/IsbnTest.php b/tests/Zend/Validate/IsbnTest.php index 5faedd54..4a6e9a0e 100644 --- a/tests/Zend/Validate/IsbnTest.php +++ b/tests/Zend/Validate/IsbnTest.php @@ -25,6 +25,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_Validate_IsbnTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/LessThanTest.php b/tests/Zend/Validate/LessThanTest.php index 0848b145..8c330116 100644 --- a/tests/Zend/Validate/LessThanTest.php +++ b/tests/Zend/Validate/LessThanTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_LessThanTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/MessageTest.php b/tests/Zend/Validate/MessageTest.php index ad68bc4d..f9419e79 100644 --- a/tests/Zend/Validate/MessageTest.php +++ b/tests/Zend/Validate/MessageTest.php @@ -26,8 +26,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_MessageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/NotEmptyTest.php b/tests/Zend/Validate/NotEmptyTest.php index 3e9d74ed..afa4d942 100644 --- a/tests/Zend/Validate/NotEmptyTest.php +++ b/tests/Zend/Validate/NotEmptyTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_NotEmptyTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/PostCodeTest.php b/tests/Zend/Validate/PostCodeTest.php index de8dfb8e..f70ebfd5 100644 --- a/tests/Zend/Validate/PostCodeTest.php +++ b/tests/Zend/Validate/PostCodeTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_PostCodeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/RegexTest.php b/tests/Zend/Validate/RegexTest.php index 9461cae5..ab93598a 100644 --- a/tests/Zend/Validate/RegexTest.php +++ b/tests/Zend/Validate/RegexTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_RegexTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/Sitemap/ChangefreqTest.php b/tests/Zend/Validate/Sitemap/ChangefreqTest.php index d28ee471..87eba13f 100644 --- a/tests/Zend/Validate/Sitemap/ChangefreqTest.php +++ b/tests/Zend/Validate/Sitemap/ChangefreqTest.php @@ -22,8 +22,10 @@ * Tests Zym_Validate_Sitemap_Changefreq. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_ChangefreqTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/Sitemap/LastmodTest.php b/tests/Zend/Validate/Sitemap/LastmodTest.php index 8fd70c0a..3fcd8bfa 100644 --- a/tests/Zend/Validate/Sitemap/LastmodTest.php +++ b/tests/Zend/Validate/Sitemap/LastmodTest.php @@ -22,8 +22,10 @@ * Tests Zym_Validate_Sitemap_Lastmod. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_LastmodTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/Sitemap/LocTest.php b/tests/Zend/Validate/Sitemap/LocTest.php index a03124b7..e81d2ea8 100644 --- a/tests/Zend/Validate/Sitemap/LocTest.php +++ b/tests/Zend/Validate/Sitemap/LocTest.php @@ -22,8 +22,10 @@ * Tests Zend_Validate_Sitemap_Loc. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_LocTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/Sitemap/PriorityTest.php b/tests/Zend/Validate/Sitemap/PriorityTest.php index a2a6baa0..a2c35255 100644 --- a/tests/Zend/Validate/Sitemap/PriorityTest.php +++ b/tests/Zend/Validate/Sitemap/PriorityTest.php @@ -22,8 +22,10 @@ * Tests Zend_Validate_Sitemap_Priority. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_Sitemap_PriorityTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/Validate/StringLengthTest.php b/tests/Zend/Validate/StringLengthTest.php index 13626e03..0bca46c4 100644 --- a/tests/Zend/Validate/StringLengthTest.php +++ b/tests/Zend/Validate/StringLengthTest.php @@ -24,8 +24,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_Validate_StringLengthTest extends \PHPUnit\Framework\TestCase { /** @@ -118,7 +120,7 @@ public function testSetMinExceptionGreaterThanMax() $this->assertEquals( "The minimum must be less than or equal to the maximum length, but $min > $max", $e->getMessage() - ); + ); } } @@ -137,7 +139,7 @@ public function testSetMaxExceptionLessThanMin() $this->assertEquals( "The maximum must be greater than or equal to the minimum length, but $max < $min", $e->getMessage() - ); + ); } } diff --git a/tests/Zend/ValidateTest.php b/tests/Zend/ValidateTest.php index 6a741540..44bdd169 100644 --- a/tests/Zend/ValidateTest.php +++ b/tests/Zend/ValidateTest.php @@ -34,8 +34,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Validate */ +#[AllowDynamicProperties] class Zend_ValidateTest extends \PHPUnit\Framework\TestCase { /** @@ -227,6 +229,7 @@ public function errorHandlerIgnore($errno, $errstr, $errfile, $errline) /** * Validator to return true to any input. */ +#[AllowDynamicProperties] class Zend_ValidateTest_True extends Zend_Validate_Abstract { public function isValid($value) @@ -238,6 +241,7 @@ public function isValid($value) /** * Validator to return false to any input. */ +#[AllowDynamicProperties] class Zend_ValidateTest_False extends Zend_Validate_Abstract { public function isValid($value) diff --git a/tests/Zend/View/Helper/ActionTest.php b/tests/Zend/View/Helper/ActionTest.php index 4ee18a6a..1fd2e68b 100644 --- a/tests/Zend/View/Helper/ActionTest.php +++ b/tests/Zend/View/Helper/ActionTest.php @@ -36,9 +36,11 @@ * Test class for Zend_View_Helper_Action. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_ActionTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/AttributeJsEscapingTest.php b/tests/Zend/View/Helper/AttributeJsEscapingTest.php index 094a5134..f84fd83b 100644 --- a/tests/Zend/View/Helper/AttributeJsEscapingTest.php +++ b/tests/Zend/View/Helper/AttributeJsEscapingTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_HtmlElement JS Escaping. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_AttributeJsEscapingTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/BaseUrlTest.php b/tests/Zend/View/Helper/BaseUrlTest.php index 0ba79f3c..a3aad0ef 100644 --- a/tests/Zend/View/Helper/BaseUrlTest.php +++ b/tests/Zend/View/Helper/BaseUrlTest.php @@ -31,9 +31,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_BaseUrlTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/CycleTest.php b/tests/Zend/View/Helper/CycleTest.php index e3c64e63..921ebd9a 100644 --- a/tests/Zend/View/Helper/CycleTest.php +++ b/tests/Zend/View/Helper/CycleTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_Cycle. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_CycleTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/DeclareVarsTest.php b/tests/Zend/View/Helper/DeclareVarsTest.php index b9082498..aaa65611 100644 --- a/tests/Zend/View/Helper/DeclareVarsTest.php +++ b/tests/Zend/View/Helper/DeclareVarsTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_DeclareVarsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/DoctypeTest.php b/tests/Zend/View/Helper/DoctypeTest.php index 4ede453d..d94de3f7 100644 --- a/tests/Zend/View/Helper/DoctypeTest.php +++ b/tests/Zend/View/Helper/DoctypeTest.php @@ -27,9 +27,11 @@ * Test class for Zend_View_Helper_Doctype. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_DoctypeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FieldsetTest.php b/tests/Zend/View/Helper/FieldsetTest.php index 77579615..b4bea42c 100644 --- a/tests/Zend/View/Helper/FieldsetTest.php +++ b/tests/Zend/View/Helper/FieldsetTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_Fieldset. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FieldsetTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormButtonTest.php b/tests/Zend/View/Helper/FormButtonTest.php index bd2226e7..1ac1ce5c 100644 --- a/tests/Zend/View/Helper/FormButtonTest.php +++ b/tests/Zend/View/Helper/FormButtonTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_FormButton. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormButtonTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormCheckboxTest.php b/tests/Zend/View/Helper/FormCheckboxTest.php index 04d3fbd1..bc0d9a67 100644 --- a/tests/Zend/View/Helper/FormCheckboxTest.php +++ b/tests/Zend/View/Helper/FormCheckboxTest.php @@ -26,9 +26,11 @@ * Tests formCheckbox helper * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormCheckboxTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormErrorsTest.php b/tests/Zend/View/Helper/FormErrorsTest.php index 9197e939..49136855 100644 --- a/tests/Zend/View/Helper/FormErrorsTest.php +++ b/tests/Zend/View/Helper/FormErrorsTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_FormErrors. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormErrorsTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormFileTest.php b/tests/Zend/View/Helper/FormFileTest.php index 61242711..e9d32d63 100644 --- a/tests/Zend/View/Helper/FormFileTest.php +++ b/tests/Zend/View/Helper/FormFileTest.php @@ -26,9 +26,11 @@ * Tests formFile helper * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormFileTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormImageTest.php b/tests/Zend/View/Helper/FormImageTest.php index 478b5753..ce454a55 100644 --- a/tests/Zend/View/Helper/FormImageTest.php +++ b/tests/Zend/View/Helper/FormImageTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_FormImage. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormImageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormLabelTest.php b/tests/Zend/View/Helper/FormLabelTest.php index 9c85ac5b..9bdddc92 100644 --- a/tests/Zend/View/Helper/FormLabelTest.php +++ b/tests/Zend/View/Helper/FormLabelTest.php @@ -24,9 +24,11 @@ * Generated by PHPUnit_Util_Skeleton on 2007-05-16 at 16:09:28. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormLabelTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormMultiCheckboxTest.php b/tests/Zend/View/Helper/FormMultiCheckboxTest.php index 8736abae..dd840a9c 100644 --- a/tests/Zend/View/Helper/FormMultiCheckboxTest.php +++ b/tests/Zend/View/Helper/FormMultiCheckboxTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_FormMultiCheckbox. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormMultiCheckboxTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormPasswordTest.php b/tests/Zend/View/Helper/FormPasswordTest.php index 8ac1c628..524a16a2 100644 --- a/tests/Zend/View/Helper/FormPasswordTest.php +++ b/tests/Zend/View/Helper/FormPasswordTest.php @@ -26,9 +26,11 @@ * Tests formPassword helper * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormPasswordTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormRadioTest.php b/tests/Zend/View/Helper/FormRadioTest.php index 183bc585..0b58658c 100644 --- a/tests/Zend/View/Helper/FormRadioTest.php +++ b/tests/Zend/View/Helper/FormRadioTest.php @@ -25,9 +25,11 @@ * Tests formRadio helper * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormRadioTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormResetTest.php b/tests/Zend/View/Helper/FormResetTest.php index c2b4f79f..4c0bfee0 100644 --- a/tests/Zend/View/Helper/FormResetTest.php +++ b/tests/Zend/View/Helper/FormResetTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_FormReset. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormResetTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormSelectTest.php b/tests/Zend/View/Helper/FormSelectTest.php index a07503a2..09f01feb 100644 --- a/tests/Zend/View/Helper/FormSelectTest.php +++ b/tests/Zend/View/Helper/FormSelectTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_FormSelect. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormSelectTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormSubmitTest.php b/tests/Zend/View/Helper/FormSubmitTest.php index 955e5ceb..bac3c363 100644 --- a/tests/Zend/View/Helper/FormSubmitTest.php +++ b/tests/Zend/View/Helper/FormSubmitTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_FormSubmit. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormSubmitTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormTest.php b/tests/Zend/View/Helper/FormTest.php index 9a343b84..a4d6a47c 100644 --- a/tests/Zend/View/Helper/FormTest.php +++ b/tests/Zend/View/Helper/FormTest.php @@ -23,9 +23,11 @@ * Test class for Zend_View_Helper_Form. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormTextTest.php b/tests/Zend/View/Helper/FormTextTest.php index 60c029ae..53123796 100644 --- a/tests/Zend/View/Helper/FormTextTest.php +++ b/tests/Zend/View/Helper/FormTextTest.php @@ -26,9 +26,11 @@ * Tests formText helper, including some common functionality of all form helpers * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormTextTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/FormTextareaTest.php b/tests/Zend/View/Helper/FormTextareaTest.php index 5df99b7a..151fffcb 100644 --- a/tests/Zend/View/Helper/FormTextareaTest.php +++ b/tests/Zend/View/Helper/FormTextareaTest.php @@ -27,9 +27,11 @@ * @uses \PHPUnit\Framework\TestCase * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_FormTextareaTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/GravatarTest.php b/tests/Zend/View/Helper/GravatarTest.php index 507c30cc..18cf5bde 100644 --- a/tests/Zend/View/Helper/GravatarTest.php +++ b/tests/Zend/View/Helper/GravatarTest.php @@ -31,9 +31,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_GravatarTest extends \PHPUnit\Framework\TestCase { /** @@ -179,7 +181,7 @@ public function testSetSecure() public function testHttpsSource() { $this->assertMatchesRegularExpression('/src="https:\/\/secure.gravatar.com\/avatar\/[a-z0-9]{32}.+"/', - $this->_object->gravatar('example@example.com', ['secure' => true])->__toString()); + $this->_object->gravatar('example@example.com', ['secure' => true])->__toString()); } /** @@ -188,9 +190,9 @@ public function testHttpsSource() public function testImgAttribs() { $this->assertMatchesRegularExpression('/class="gravatar" title="Gravatar"/', - $this->_object->gravatar('example@example.com', [], - ['class' => 'gravatar', 'title' => 'Gravatar']) - ->__toString() + $this->_object->gravatar('example@example.com', [], + ['class' => 'gravatar', 'title' => 'Gravatar']) + ->__toString() ); } @@ -200,10 +202,10 @@ public function testImgAttribs() public function testGravatarOptions() { $this->assertMatchesRegularExpression('/src="http:\/\/www.gravatar.com\/avatar\/[a-z0-9]{32}\?s=125&d=wavatar&r=pg"/', - $this->_object->gravatar('example@example.com', - ['rating' => 'pg', 'imgSize' => 125, 'defaultImg' => 'wavatar', - 'secure' => false, ]) - ->__toString() + $this->_object->gravatar('example@example.com', + ['rating' => 'pg', 'imgSize' => 125, 'defaultImg' => 'wavatar', + 'secure' => false, ]) + ->__toString() ); } @@ -218,7 +220,7 @@ public function testAutoDetectLocation() foreach ($values as $value) { $_SERVER['HTTPS'] = $value; $this->assertMatchesRegularExpression('/src="https:\/\/secure.gravatar.com\/avatar\/[a-z0-9]{32}.+"/', - $this->_object->gravatar('example@example.com')->__toString()); + $this->_object->gravatar('example@example.com')->__toString()); } } @@ -230,7 +232,7 @@ public function testAutoDetectLocationOnIis() $_SERVER['HTTPS'] = 'off'; $this->assertMatchesRegularExpression('/src="http:\/\/www.gravatar.com\/avatar\/[a-z0-9]{32}.+"/', - $this->_object->gravatar('example@example.com')->__toString()); + $this->_object->gravatar('example@example.com')->__toString()); } public function testSetAttribsWithSrcKey() @@ -244,19 +246,19 @@ public function testSetAttribsWithSrcKey() ]); $this->assertMatchesRegularExpression('/src="http:\/\/www.gravatar.com\/avatar\/[a-z0-9]{32}.+"/', - $this->_object->getImgTag()); + $this->_object->getImgTag()); } public function testForgottenEmailParameter() { $this->assertMatchesRegularExpression('/(src="http:\/\/www.gravatar.com\/avatar\/[a-z0-9]{32}.+")/', - $this->_object->getImgTag()); + $this->_object->getImgTag()); } public function testReturnImgTag() { $this->assertMatchesRegularExpression("/^_object->gravatar('example@example.com')->__toString()); + $this->_object->gravatar('example@example.com')->__toString()); } public function testReturnThisObject() diff --git a/tests/Zend/View/Helper/HeadLinkTest.php b/tests/Zend/View/Helper/HeadLinkTest.php index bd8894b5..4ebfc011 100644 --- a/tests/Zend/View/Helper/HeadLinkTest.php +++ b/tests/Zend/View/Helper/HeadLinkTest.php @@ -33,9 +33,11 @@ * Test class for Zend_View_Helper_HeadLink. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadLinkTest extends \PHPUnit\Framework\TestCase { /** @@ -304,8 +306,8 @@ public function testStylesheetAttributesGetSet() { $this->helper->setStylesheet('/styles.css', 'projection', 'ie6'); $item = $this->helper->getValue(); - $this->assertObjectHasAttribute('media', $item); - $this->assertObjectHasAttribute('conditionalStylesheet', $item); + $this->assertObjectHasProperty('media', $item); + $this->assertObjectHasProperty('conditionalStylesheet', $item); $this->assertEquals('projection', $item->media); $this->assertEquals('ie6', $item->conditionalStylesheet); @@ -315,7 +317,7 @@ public function testConditionalStylesheetNotCreatedByDefault() { $this->helper->setStylesheet('/styles.css'); $item = $this->helper->getValue(); - $this->assertObjectHasAttribute('conditionalStylesheet', $item); + $this->assertObjectHasProperty('conditionalStylesheet', $item); $this->assertFalse($item->conditionalStylesheet); $string = $this->helper->toString(); @@ -329,7 +331,7 @@ public function testConditionalStylesheetCreationOccursWhenRequested() { $this->helper->setStylesheet('/styles.css', 'screen', 'ie6'); $item = $this->helper->getValue(); - $this->assertObjectHasAttribute('conditionalStylesheet', $item); + $this->assertObjectHasProperty('conditionalStylesheet', $item); $this->assertEquals('ie6', $item->conditionalStylesheet); $string = $this->helper->toString(); @@ -499,7 +501,7 @@ public function testConditionalStylesheetCreationNoIE() { $this->helper->setStylesheet('/styles.css', 'screen', '!IE'); $item = $this->helper->getValue(); - $this->assertObjectHasAttribute('conditionalStylesheet', $item); + $this->assertObjectHasProperty('conditionalStylesheet', $item); $this->assertEquals('!IE', $item->conditionalStylesheet); $string = $this->helper->toString(); $this->assertStringContainsString('/styles.css', $string); @@ -514,7 +516,7 @@ public function testConditionalStylesheetCreationNoIEWidthSpaces() { $this->helper->setStylesheet('/styles.css', 'screen', '! IE'); $item = $this->helper->getValue(); - $this->assertObjectHasAttribute('conditionalStylesheet', $item); + $this->assertObjectHasProperty('conditionalStylesheet', $item); $this->assertEquals('! IE', $item->conditionalStylesheet); $string = $this->helper->toString(); $this->assertStringContainsString('/styles.css', $string); diff --git a/tests/Zend/View/Helper/HeadMetaTest.php b/tests/Zend/View/Helper/HeadMetaTest.php index 49ae1352..8881ca57 100644 --- a/tests/Zend/View/Helper/HeadMetaTest.php +++ b/tests/Zend/View/Helper/HeadMetaTest.php @@ -33,9 +33,11 @@ * Test class for Zend_View_Helper_HeadMeta. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadMetaTest extends \PHPUnit\Framework\TestCase { /** @@ -156,10 +158,10 @@ protected function _testOverloadAppend($type) $this->assertEquals($i + 1, is_countable($values) ? count($values) : 0); $item = $values[$i]; - $this->assertObjectHasAttribute('type', $item); - $this->assertObjectHasAttribute('modifiers', $item); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute($item->type, $item); + $this->assertObjectHasProperty('type', $item); + $this->assertObjectHasProperty('modifiers', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty($item->type, $item); $this->assertEquals('keywords', $item->{$item->type}); $this->assertEquals($string, $item->content); } @@ -176,10 +178,10 @@ protected function _testOverloadPrepend($type) $this->assertEquals($i + 1, is_countable($values) ? count($values) : 0); $item = array_shift($values); - $this->assertObjectHasAttribute('type', $item); - $this->assertObjectHasAttribute('modifiers', $item); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute($item->type, $item); + $this->assertObjectHasProperty('type', $item); + $this->assertObjectHasProperty('modifiers', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty($item->type, $item); $this->assertEquals('keywords', $item->{$item->type}); $this->assertEquals($string, $item->content); } @@ -199,10 +201,10 @@ protected function _testOverloadSet($type) $this->assertEquals(1, is_countable($values) ? count($values) : 0); $item = array_shift($values); - $this->assertObjectHasAttribute('type', $item); - $this->assertObjectHasAttribute('modifiers', $item); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute($item->type, $item); + $this->assertObjectHasProperty('type', $item); + $this->assertObjectHasProperty('modifiers', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty($item->type, $item); $this->assertEquals('keywords', $item->{$item->type}); $this->assertEquals($string, $item->content); } @@ -262,7 +264,7 @@ public function testCanBuildMetaTagsWithAttributes() $this->helper->setName('keywords', 'foo bar', ['lang' => 'us_en', 'scheme' => 'foo', 'bogus' => 'unused']); $value = $this->helper->getValue(); - $this->assertObjectHasAttribute('modifiers', $value); + $this->assertObjectHasProperty('modifiers', $value); $modifiers = $value->modifiers; $this->assertTrue(array_key_exists('lang', $modifiers)); $this->assertEquals('us_en', $modifiers['lang']); @@ -359,8 +361,8 @@ public function testPropertyIsSupportedWithRdfaDoctype() $this->view->doctype('XHTML1_RDFA'); $this->helper->headMeta('foo', 'og:title', 'property'); $this->assertEquals('', - $this->helper->toString() - ); + $this->helper->toString() + ); } /** @@ -378,6 +380,7 @@ public function testPropertyIsNotSupportedByDefaultDoctype() /** * @group ZF-9743 + * * @depends testPropertyIsSupportedWithRdfaDoctype */ public function testOverloadingAppendPropertyAppendsMetaTagToStack() @@ -388,6 +391,7 @@ public function testOverloadingAppendPropertyAppendsMetaTagToStack() /** * @group ZF-9743 + * * @depends testPropertyIsSupportedWithRdfaDoctype */ public function testOverloadingPrependPropertyPrependsMetaTagToStack() @@ -398,6 +402,7 @@ public function testOverloadingPrependPropertyPrependsMetaTagToStack() /** * @group ZF-9743 + * * @depends testPropertyIsSupportedWithRdfaDoctype */ public function testOverloadingSetPropertyOverwritesMetaTagStack() @@ -420,7 +425,7 @@ public function testSetNameDoesntClobber() $this->assertEquals( '' . PHP_EOL . '' . PHP_EOL . '', $view->headMeta()->toString() - ); + ); } /** @@ -438,7 +443,7 @@ public function testSetNameDoesntClobberPart2() $this->assertEquals( '' . PHP_EOL . '' . PHP_EOL . '' . PHP_EOL . '', $view->headMeta()->toString() - ); + ); } /** @@ -455,7 +460,7 @@ public function testPlacesMetaTagsInProperOrder() $this->assertEquals( '' . PHP_EOL . '', $view->headMeta()->toString() - ); + ); } /** diff --git a/tests/Zend/View/Helper/HeadScriptTest.php b/tests/Zend/View/Helper/HeadScriptTest.php index 28383d57..5abe1c18 100644 --- a/tests/Zend/View/Helper/HeadScriptTest.php +++ b/tests/Zend/View/Helper/HeadScriptTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_HeadScript. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadScriptTest extends \PHPUnit\Framework\TestCase { /** @@ -275,18 +277,18 @@ public function testHeadScriptAppropriatelySetsScriptItems() $item = $items[$i]; switch ($i) { case 0: - $this->assertObjectHasAttribute('source', $item); + $this->assertObjectHasProperty('source', $item); $this->assertEquals('bar', $item->source); break; case 1: - $this->assertObjectHasAttribute('attributes', $item); + $this->assertObjectHasProperty('attributes', $item); $this->assertTrue(isset($item->attributes['src'])); $this->assertEquals('foo', $item->attributes['src']); break; case 2: - $this->assertObjectHasAttribute('source', $item); + $this->assertObjectHasProperty('source', $item); $this->assertEquals('baz', $item->source); break; diff --git a/tests/Zend/View/Helper/HeadStyleTest.php b/tests/Zend/View/Helper/HeadStyleTest.php index 3480d736..91b6c9b6 100644 --- a/tests/Zend/View/Helper/HeadStyleTest.php +++ b/tests/Zend/View/Helper/HeadStyleTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_HeadStyle. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadStyleTest extends \PHPUnit\Framework\TestCase { /** @@ -134,8 +136,8 @@ public function testOverloadAppendStyleAppendsStyleToStack() $item = $values[$i]; $this->assertTrue($item instanceof stdClass); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute('attributes', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty('attributes', $item); $this->assertEquals($string, $item->content); } } @@ -151,8 +153,8 @@ public function testOverloadPrependStylePrependsStyleToStack() $item = array_shift($values); $this->assertTrue($item instanceof stdClass); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute('attributes', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty('attributes', $item); $this->assertEquals($string, $item->content); } } @@ -170,8 +172,8 @@ public function testOverloadSetOversitesStack() $item = array_shift($values); $this->assertTrue($item instanceof stdClass); - $this->assertObjectHasAttribute('content', $item); - $this->assertObjectHasAttribute('attributes', $item); + $this->assertObjectHasProperty('content', $item); + $this->assertObjectHasProperty('attributes', $item); $this->assertEquals($string, $item->content); } @@ -186,7 +188,7 @@ public function testCanBuildStyleTagsWithAttributes() ]); $value = $this->helper->getValue(); - $this->assertObjectHasAttribute('attributes', $value); + $this->assertObjectHasProperty('attributes', $value); $attributes = $value->attributes; $this->assertTrue(isset($attributes['lang'])); diff --git a/tests/Zend/View/Helper/HeadTitleTest.php b/tests/Zend/View/Helper/HeadTitleTest.php index e56ba98a..480cbd6a 100644 --- a/tests/Zend/View/Helper/HeadTitleTest.php +++ b/tests/Zend/View/Helper/HeadTitleTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_HeadTitle. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HeadTitleTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/HtmlFlashTest.php b/tests/Zend/View/Helper/HtmlFlashTest.php index 306f35f1..d5c5d1bf 100644 --- a/tests/Zend/View/Helper/HtmlFlashTest.php +++ b/tests/Zend/View/Helper/HtmlFlashTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlFlashTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/HtmlListTest.php b/tests/Zend/View/Helper/HtmlListTest.php index eeb5b97d..a50f4dae 100644 --- a/tests/Zend/View/Helper/HtmlListTest.php +++ b/tests/Zend/View/Helper/HtmlListTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlListTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/HtmlObjectTest.php b/tests/Zend/View/Helper/HtmlObjectTest.php index 3824e5dd..79983410 100644 --- a/tests/Zend/View/Helper/HtmlObjectTest.php +++ b/tests/Zend/View/Helper/HtmlObjectTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlObjectTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/HtmlPageTest.php b/tests/Zend/View/Helper/HtmlPageTest.php index 21fd509f..db22fcad 100644 --- a/tests/Zend/View/Helper/HtmlPageTest.php +++ b/tests/Zend/View/Helper/HtmlPageTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlPageTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/HtmlQuicktimeTest.php b/tests/Zend/View/Helper/HtmlQuicktimeTest.php index 9dc0348b..4050da96 100644 --- a/tests/Zend/View/Helper/HtmlQuicktimeTest.php +++ b/tests/Zend/View/Helper/HtmlQuicktimeTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_HtmlQuicktimeTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/InlineScriptTest.php b/tests/Zend/View/Helper/InlineScriptTest.php index 9aef3ed7..832e2974 100644 --- a/tests/Zend/View/Helper/InlineScriptTest.php +++ b/tests/Zend/View/Helper/InlineScriptTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_InlineScript. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_InlineScriptTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/JsonTest.php b/tests/Zend/View/Helper/JsonTest.php index 4848c05f..7f404836 100644 --- a/tests/Zend/View/Helper/JsonTest.php +++ b/tests/Zend/View/Helper/JsonTest.php @@ -26,9 +26,11 @@ * Test class for Zend_View_Helper_Json. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_JsonTest extends \PHPUnit\Framework\TestCase { /** @@ -168,6 +170,7 @@ public function testJsonHelperWillSendHeadersWhenProvidedWithPreencodedJson() /** * Zend_Layout subclass to allow resetting MVC instance. */ +#[AllowDynamicProperties] class Zend_View_Helper_JsonTest_Layout extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/View/Helper/LayoutTest.php b/tests/Zend/View/Helper/LayoutTest.php index 54da6e66..9829781f 100644 --- a/tests/Zend/View/Helper/LayoutTest.php +++ b/tests/Zend/View/Helper/LayoutTest.php @@ -25,9 +25,11 @@ * Test class for Zend_View_Helper_Layout. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_LayoutTest extends \PHPUnit\Framework\TestCase { /** @@ -104,6 +106,7 @@ public function testHelperMethodFetchesLayoutObject() /** * Zend_Layout extension to allow resetting MVC instance. */ +#[AllowDynamicProperties] class Zend_View_Helper_LayoutTest_Layout extends Zend_Layout { public static function resetMvcInstance() diff --git a/tests/Zend/View/Helper/Navigation/BreadcrumbsTest.php b/tests/Zend/View/Helper/Navigation/BreadcrumbsTest.php index 5d799278..cef4cb46 100644 --- a/tests/Zend/View/Helper/Navigation/BreadcrumbsTest.php +++ b/tests/Zend/View/Helper/Navigation/BreadcrumbsTest.php @@ -23,9 +23,11 @@ * Tests Zend_View_Helper_Navigation_Breadcrumbs. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_BreadcrumbsTest extends Zend_View_Helper_Navigation_TestAbstract { /** diff --git a/tests/Zend/View/Helper/Navigation/LinksTest.php b/tests/Zend/View/Helper/Navigation/LinksTest.php index 27c4994a..40efaba4 100644 --- a/tests/Zend/View/Helper/Navigation/LinksTest.php +++ b/tests/Zend/View/Helper/Navigation/LinksTest.php @@ -23,9 +23,11 @@ * Tests Zend_View_Helper_Navigation_Links. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_LinksTest extends Zend_View_Helper_Navigation_TestAbstract { /** @@ -54,7 +56,7 @@ public function setUp(): void $this->_doctypeHelper = $this->_helper->view->doctype(); $this->_oldDoctype = $this->_doctypeHelper->getDoctype(); $this->_doctypeHelper->setDoctype( - Zend_View_Helper_Doctype::HTML4_LOOSE); + Zend_View_Helper_Doctype::HTML4_LOOSE); // disable all active pages foreach ($this->_helper->findAllByActive(true) as $page) { diff --git a/tests/Zend/View/Helper/Navigation/MenuTest.php b/tests/Zend/View/Helper/Navigation/MenuTest.php index 236d997d..227b58b9 100644 --- a/tests/Zend/View/Helper/Navigation/MenuTest.php +++ b/tests/Zend/View/Helper/Navigation/MenuTest.php @@ -23,9 +23,11 @@ * Tests Zend_View_Helper_Navigation_Menu. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_MenuTest extends Zend_View_Helper_Navigation_TestAbstract { /** diff --git a/tests/Zend/View/Helper/Navigation/NavigationTest.php b/tests/Zend/View/Helper/Navigation/NavigationTest.php index 0165c686..cc4dd87b 100644 --- a/tests/Zend/View/Helper/Navigation/NavigationTest.php +++ b/tests/Zend/View/Helper/Navigation/NavigationTest.php @@ -23,9 +23,11 @@ * Tests Zend_View_Helper_Navigation. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_NavigationTest extends Zend_View_Helper_Navigation_TestAbstract { /** diff --git a/tests/Zend/View/Helper/Navigation/SitemapTest.php b/tests/Zend/View/Helper/Navigation/SitemapTest.php index 16c84049..a61dd83b 100644 --- a/tests/Zend/View/Helper/Navigation/SitemapTest.php +++ b/tests/Zend/View/Helper/Navigation/SitemapTest.php @@ -25,9 +25,11 @@ * Tests Zend_View_Helper_Navigation_Sitemap. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Navigation_SitemapTest extends Zend_View_Helper_Navigation_TestAbstract { protected $_front; @@ -218,8 +220,8 @@ public function testThrowExceptionOnInvalidLoc() $this->_helper->render($nav); } catch (Zend_View_Exception $e) { $expected = sprintf( - 'Encountered an invalid URL for Sitemap XML: "%s"', - 'http://w..'); + 'Encountered an invalid URL for Sitemap XML: "%s"', + 'http://w..'); $actual = $e->getMessage(); $this->assertEquals($expected, $actual); @@ -288,8 +290,8 @@ public function testUseSchemaValidation() $this->_helper->render($nav); } catch (Zend_View_Exception $e) { $expected = sprintf( - 'Sitemap is invalid according to XML Schema at "%s"', - Zend_View_Helper_Navigation_Sitemap::SITEMAP_XSD); + 'Sitemap is invalid according to XML Schema at "%s"', + Zend_View_Helper_Navigation_Sitemap::SITEMAP_XSD); $actual = $e->getMessage(); $this->assertEquals($expected, $actual); diff --git a/tests/Zend/View/Helper/Navigation/TestAbstract.php b/tests/Zend/View/Helper/Navigation/TestAbstract.php index cadaac00..5565e8b9 100644 --- a/tests/Zend/View/Helper/Navigation/TestAbstract.php +++ b/tests/Zend/View/Helper/Navigation/TestAbstract.php @@ -30,9 +30,11 @@ * Base class for navigation view helper tests. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] abstract class Zend_View_Helper_Navigation_TestAbstract extends \PHPUnit\Framework\TestCase { public const REGISTRY_KEY = 'Zend_Navigation'; diff --git a/tests/Zend/View/Helper/PaginationControlTest.php b/tests/Zend/View/Helper/PaginationControlTest.php index e5aed41b..b4c45104 100644 --- a/tests/Zend/View/Helper/PaginationControlTest.php +++ b/tests/Zend/View/Helper/PaginationControlTest.php @@ -22,9 +22,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_PaginationControlTest extends \PHPUnit\Framework\TestCase { private \Zend_View_Helper_PaginationControl $_viewHelper; diff --git a/tests/Zend/View/Helper/PartialLoopTest.php b/tests/Zend/View/Helper/PartialLoopTest.php index 40ab9a0a..b6e9284e 100644 --- a/tests/Zend/View/Helper/PartialLoopTest.php +++ b/tests/Zend/View/Helper/PartialLoopTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_PartialLoop. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoopTest extends \PHPUnit\Framework\TestCase { /** @@ -371,6 +373,7 @@ public function testPartialLoopSetsTotalCount() } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_IteratorTest implements Iterator, Countable { public function __construct(public array $items) @@ -413,6 +416,7 @@ public function count(): int } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_RecursiveIteratorTest implements Iterator, Countable { public $items; @@ -460,10 +464,12 @@ public function count(): int } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_BogusIteratorTest { } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_ToArrayTest { public function __construct(array $data) @@ -477,6 +483,7 @@ public function toArray() } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_IteratorWithToArrayTest implements Iterator, Countable { public function __construct(public array $items) @@ -519,6 +526,7 @@ public function count(): int } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialLoop_IteratorWithToArrayTestContainer { protected $_info; diff --git a/tests/Zend/View/Helper/PartialTest.php b/tests/Zend/View/Helper/PartialTest.php index 72c39e15..aeb33c0d 100644 --- a/tests/Zend/View/Helper/PartialTest.php +++ b/tests/Zend/View/Helper/PartialTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_Partial. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_PartialTest extends \PHPUnit\Framework\TestCase { /** @@ -239,6 +241,7 @@ public function testSetObjectKeyImplementsFluentInterface() } } +#[AllowDynamicProperties] class Zend_View_Helper_PartialTest_Aggregate { public $vars = [ diff --git a/tests/Zend/View/Helper/Placeholder/ContainerTest.php b/tests/Zend/View/Helper/Placeholder/ContainerTest.php index 63fdba5c..bfe034a7 100644 --- a/tests/Zend/View/Helper/Placeholder/ContainerTest.php +++ b/tests/Zend/View/Helper/Placeholder/ContainerTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_Placeholder_Container. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_ContainerTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/Placeholder/RegistryTest.php b/tests/Zend/View/Helper/Placeholder/RegistryTest.php index a9c45c92..4bf659e5 100644 --- a/tests/Zend/View/Helper/Placeholder/RegistryTest.php +++ b/tests/Zend/View/Helper/Placeholder/RegistryTest.php @@ -24,9 +24,11 @@ * Test class for Zend_View_Helper_Placeholder_Registry. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_RegistryTest extends \PHPUnit\Framework\TestCase { /** @@ -180,6 +182,7 @@ public function testSetValueCreateContainer() } } +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_RegistryTest_Container extends Zend_View_Helper_Placeholder_Container_Abstract { public $data = []; @@ -190,6 +193,7 @@ public function __construct($data) } } +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_RegistryTest_BogusContainer { } diff --git a/tests/Zend/View/Helper/Placeholder/StandaloneContainerTest.php b/tests/Zend/View/Helper/Placeholder/StandaloneContainerTest.php index 6ba6cc13..aa91dae2 100644 --- a/tests/Zend/View/Helper/Placeholder/StandaloneContainerTest.php +++ b/tests/Zend/View/Helper/Placeholder/StandaloneContainerTest.php @@ -33,9 +33,11 @@ * Test class for Zend_View_Helper_Placeholder_StandaloneContainer. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_StandaloneContainerTest extends \PHPUnit\Framework\TestCase { /** @@ -94,6 +96,7 @@ public function testContainersPersistBetweenInstances() } } +#[AllowDynamicProperties] class Zend_View_Helper_Placeholder_StandaloneContainerTest_Foo extends Zend_View_Helper_Placeholder_Container_Standalone { protected $_regKey = 'foo'; diff --git a/tests/Zend/View/Helper/PlaceholderTest.php b/tests/Zend/View/Helper/PlaceholderTest.php index 421fb858..c80f947b 100644 --- a/tests/Zend/View/Helper/PlaceholderTest.php +++ b/tests/Zend/View/Helper/PlaceholderTest.php @@ -30,9 +30,11 @@ * Test class for Zend_View_Helper_Placeholder. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_PlaceholderTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/RenderToPlaceholderTest.php b/tests/Zend/View/Helper/RenderToPlaceholderTest.php index 416b0aa9..37ed6d46 100644 --- a/tests/Zend/View/Helper/RenderToPlaceholderTest.php +++ b/tests/Zend/View/Helper/RenderToPlaceholderTest.php @@ -21,9 +21,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_RenderToPlaceholderTest extends \PHPUnit\Framework\TestCase { protected $_view; diff --git a/tests/Zend/View/Helper/ServerUrlTest.php b/tests/Zend/View/Helper/ServerUrlTest.php index 4cb29207..2f774976 100644 --- a/tests/Zend/View/Helper/ServerUrlTest.php +++ b/tests/Zend/View/Helper/ServerUrlTest.php @@ -23,9 +23,11 @@ * Tests Zend_View_Helper_ServerUrl. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_ServerUrlTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/TranslateTest.php b/tests/Zend/View/Helper/TranslateTest.php index 6c068929..c8d74a9d 100644 --- a/tests/Zend/View/Helper/TranslateTest.php +++ b/tests/Zend/View/Helper/TranslateTest.php @@ -31,9 +31,11 @@ * Test class for Zend_View_Helper_Translate. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_TranslateTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/UrlTest.php b/tests/Zend/View/Helper/UrlTest.php index e71404b6..1fda2e0a 100644 --- a/tests/Zend/View/Helper/UrlTest.php +++ b/tests/Zend/View/Helper/UrlTest.php @@ -30,9 +30,11 @@ * Tests formText helper, including some common functionality of all form helpers * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_UrlTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/UserAgentTest.php b/tests/Zend/View/Helper/UserAgentTest.php index 0a8da549..562dbd8e 100644 --- a/tests/Zend/View/Helper/UserAgentTest.php +++ b/tests/Zend/View/Helper/UserAgentTest.php @@ -25,9 +25,11 @@ * Zend_View_Helper_UserAgentTest. * * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View * @group Zend_View_Helper */ +#[AllowDynamicProperties] class Zend_View_Helper_UserAgentTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/Zend/View/Helper/_files/modules/default/controllers/ActionBarController.php b/tests/Zend/View/Helper/_files/modules/default/controllers/ActionBarController.php index 14d3da6b..3a403dd9 100644 --- a/tests/Zend/View/Helper/_files/modules/default/controllers/ActionBarController.php +++ b/tests/Zend/View/Helper/_files/modules/default/controllers/ActionBarController.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ActionBarController extends Zend_Controller_Action { public function bazAction() diff --git a/tests/Zend/View/Helper/_files/modules/default/controllers/ActionFooController.php b/tests/Zend/View/Helper/_files/modules/default/controllers/ActionFooController.php index df573242..999dd598 100644 --- a/tests/Zend/View/Helper/_files/modules/default/controllers/ActionFooController.php +++ b/tests/Zend/View/Helper/_files/modules/default/controllers/ActionFooController.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class ActionFooController extends Zend_Controller_Action { public function barAction() diff --git a/tests/Zend/View/Helper/_files/modules/foo/controllers/BazController.php b/tests/Zend/View/Helper/_files/modules/foo/controllers/BazController.php index 8e78bf10..78ed473e 100644 --- a/tests/Zend/View/Helper/_files/modules/foo/controllers/BazController.php +++ b/tests/Zend/View/Helper/_files/modules/foo/controllers/BazController.php @@ -21,6 +21,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_BazController extends Zend_Controller_Action { public function barOneAction() diff --git a/tests/Zend/View/Helper/_files/modules/foo/controllers/FooController.php b/tests/Zend/View/Helper/_files/modules/foo/controllers/FooController.php index faac7ca9..b209a578 100644 --- a/tests/Zend/View/Helper/_files/modules/foo/controllers/FooController.php +++ b/tests/Zend/View/Helper/_files/modules/foo/controllers/FooController.php @@ -23,6 +23,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_FooController extends Zend_Controller_Action { public function barAction() diff --git a/tests/Zend/View/_stubs/FilterDir1/Foo.php b/tests/Zend/View/_stubs/FilterDir1/Foo.php index 0b268035..792f3bf1 100644 --- a/tests/Zend/View/_stubs/FilterDir1/Foo.php +++ b/tests/Zend/View/_stubs/FilterDir1/Foo.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Filter_Foo { public function filter($buffer) diff --git a/tests/Zend/View/_stubs/HelperDir1/Stub1.php b/tests/Zend/View/_stubs/HelperDir1/Stub1.php index 602e4727..0a660b82 100644 --- a/tests/Zend/View/_stubs/HelperDir1/Stub1.php +++ b/tests/Zend/View/_stubs/HelperDir1/Stub1.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Foo_View_Helper_Stub1 { public function stub1() diff --git a/tests/Zend/View/_stubs/HelperDir2/Datetime.php b/tests/Zend/View/_stubs/HelperDir2/Datetime.php index 7c907afc..f450d29a 100644 --- a/tests/Zend/View/_stubs/HelperDir2/Datetime.php +++ b/tests/Zend/View/_stubs/HelperDir2/Datetime.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Datetime { public function datetime() diff --git a/tests/Zend/View/_stubs/HelperDir2/Stub1.php b/tests/Zend/View/_stubs/HelperDir2/Stub1.php index bc1bb767..6116e225 100644 --- a/tests/Zend/View/_stubs/HelperDir2/Stub1.php +++ b/tests/Zend/View/_stubs/HelperDir2/Stub1.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Stub1 { public function stub1() diff --git a/tests/Zend/View/_stubs/HelperDir2/Stub2.php b/tests/Zend/View/_stubs/HelperDir2/Stub2.php index 2856d602..1c40ae13 100644 --- a/tests/Zend/View/_stubs/HelperDir2/Stub2.php +++ b/tests/Zend/View/_stubs/HelperDir2/Stub2.php @@ -20,6 +20,7 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_View_Helper_Stub2 { public $view; diff --git a/tests/Zend/ViewTest.php b/tests/Zend/ViewTest.php index 9ba06bc3..88c32550 100644 --- a/tests/Zend/ViewTest.php +++ b/tests/Zend/ViewTest.php @@ -34,8 +34,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_View */ +#[AllowDynamicProperties] class Zend_ViewTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -1140,6 +1142,7 @@ public function testConstructViewObjectWithInitialVariables() /** * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Zend_ViewTest_Extension extends Zend_View { public function init() diff --git a/tests/Zend/Xml/MultibyteTest.php b/tests/Zend/Xml/MultibyteTest.php index 34040e32..61b63d2e 100644 --- a/tests/Zend/Xml/MultibyteTest.php +++ b/tests/Zend/Xml/MultibyteTest.php @@ -29,9 +29,11 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Xml * @group ZF2015-06 */ +#[AllowDynamicProperties] class Zend_Xml_MultibyteTest extends \PHPUnit\Framework\TestCase { public static function main() @@ -75,6 +77,7 @@ public function invokeHeuristicScan($xml) /** * @dataProvider multibyteEncodings + * * @group heuristicDetection * * @param mixed $encoding @@ -138,6 +141,7 @@ public function testDoesNotFlagValidMultibyteXmlAsInvalidUnderFPM($encoding) /** * @dataProvider multibyteEncodings + * * @group mixedEncoding * * @param mixed $encoding diff --git a/tests/Zend/Xml/SecurityTest.php b/tests/Zend/Xml/SecurityTest.php index daddee6b..920111c3 100644 --- a/tests/Zend/Xml/SecurityTest.php +++ b/tests/Zend/Xml/SecurityTest.php @@ -26,8 +26,10 @@ /** * @license http://framework.zend.com/license/new-bsd New BSD License + * * @group Zend_Xml */ +#[AllowDynamicProperties] class Zend_Xml_SecurityTest extends \PHPUnit\Framework\TestCase { public static function main() diff --git a/tests/Zend/_files/_testDir1/Class1.php b/tests/Zend/_files/_testDir1/Class1.php index f4052f8e..0364f311 100644 --- a/tests/Zend/_files/_testDir1/Class1.php +++ b/tests/Zend/_files/_testDir1/Class1.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Class1 { } diff --git a/tests/Zend/_files/_testDir1/Class1/Subclass2.php b/tests/Zend/_files/_testDir1/Class1/Subclass2.php index c52a47b7..951dc79c 100644 --- a/tests/Zend/_files/_testDir1/Class1/Subclass2.php +++ b/tests/Zend/_files/_testDir1/Class1/Subclass2.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Class1_Subclass2 { } diff --git a/tests/Zend/_files/_testDir1/Class3.php b/tests/Zend/_files/_testDir1/Class3.php index 3ec6b543..5a1445c3 100644 --- a/tests/Zend/_files/_testDir1/Class3.php +++ b/tests/Zend/_files/_testDir1/Class3.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Class3 { } diff --git a/tests/Zend/_files/_testDir1/Class4.php b/tests/Zend/_files/_testDir1/Class4.php index d64af456..1635d94e 100644 --- a/tests/Zend/_files/_testDir1/Class4.php +++ b/tests/Zend/_files/_testDir1/Class4.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Class4 { } diff --git a/tests/Zend/_files/_testDir2/Class2.php b/tests/Zend/_files/_testDir2/Class2.php index 4bd7a756..81f8e4b0 100644 --- a/tests/Zend/_files/_testDir2/Class2.php +++ b/tests/Zend/_files/_testDir2/Class2.php @@ -22,6 +22,7 @@ * * @license http://framework.zend.com/license/new-bsd New BSD License */ +#[AllowDynamicProperties] class Class2 { }