diff --git a/.github/scripts/check-wordpress-tested-up-to.py b/.github/scripts/check-wordpress-tested-up-to.py index 9897549..16b7f76 100755 --- a/.github/scripts/check-wordpress-tested-up-to.py +++ b/.github/scripts/check-wordpress-tested-up-to.py @@ -19,7 +19,8 @@ WORDPRESS_LATEST_VERSION = os.environ.get("WORDPRESS_LATEST_VERSION") WORDPRESS_VERSION_CHECK_FILE = Path("wordpress-version-check.json") -METADATA_PATHS = {Path("optimizations-ace-mc.php"), Path("readme.txt")} +# Only readme.txt: Plugin Check (2.2 and later) refuses "Tested up to" in the plugin header +METADATA_PATHS = {Path("readme.txt")} DEFAULT_EXCLUDED_DIRS = { ".git", "build", diff --git a/.github/scripts/test-automation.py b/.github/scripts/test-automation.py index 8fa9515..705bdc5 100755 --- a/.github/scripts/test-automation.py +++ b/.github/scripts/test-automation.py @@ -84,11 +84,12 @@ def findings(self) -> list[dict[str, object]]: def test_metadata_changes_only_authoritative_headers(self) -> None: findings = self.findings() - self.assertEqual(2, len(findings)) - before = {name: (self.root / name).read_bytes() for name in ("README.md", ".private/review.md")} - self.assertEqual( - ["optimizations-ace-mc.php", "readme.txt"], metadata.update_tested_up_to_entries(findings, "9.9") - ) + self.assertEqual(1, len(findings)) + before = { + name: (self.root / name).read_bytes() + for name in ("optimizations-ace-mc.php", "README.md", ".private/review.md") + } + self.assertEqual(["readme.txt"], metadata.update_tested_up_to_entries(findings, "9.9")) self.assertEqual([], metadata.get_failures("9.9", self.findings())) for name, content in before.items(): self.assertEqual(content, (self.root / name).read_bytes()) diff --git a/.github/workflows/wp-compatibility-test.yml b/.github/workflows/wp-compatibility-test.yml index b015389..7105e56 100644 --- a/.github/workflows/wp-compatibility-test.yml +++ b/.github/workflows/wp-compatibility-test.yml @@ -1656,6 +1656,9 @@ jobs: # The WordPress test library still calls PHPUnit APIs removed in PHPUnit 10+. # Keep this generated integration-test job on PHPUnit 9.6 while the rest # of the project can continue using newer Composer-resolved QA tooling. + # This job does not run Psalm, and Psalm 7.4+ requires psalm/plugin-phpunit, whose + # 1.x releases conflict with PHPUnit below 11: remove Psalm first. + composer remove --dev vimeo/psalm --no-interaction --no-progress if [ "${{ matrix.dependency-versions }}" = "lowest" ]; then composer require --dev phpunit/phpunit:"^9.6" yoast/phpunit-polyfills:"^4.0" --with-all-dependencies --prefer-lowest --no-progress else diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f6f417..6ffb155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Raise the minimum PHP version from 8.2 to 8.3, which WooCommerce requires; PHP 8.2 reaches end of life on December 31, 2026. The tests cover PHP 8.3 to 8.5, and the class constants declare their types, which PHP 8.3 allows +- Declare "Tested up to" only in `readme.txt`, not in the plugin header. Plugin Check refuses the field in the plugin header, because two copies can drift apart; the scheduled WordPress version check now updates `readme.txt` only. Static analysis runs on Psalm 7. - The translation template is now generated locally with `composer make-pot` and committed with each change; the Update Translation File workflow was removed - The translation template names the GitHub issue tracker as its bug report address, in place of a WordPress.org support forum the plugin does not have, and its source references were refreshed - The code uses PHP 8 forms: short arrays, constructor property promotion, `readonly` classes and properties for the optimization and admin classes, and a null-coalescing assignment. Behavior is unchanged diff --git a/composer.json b/composer.json index 88c98ad..f11adb7 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "dealerdirect/phpcodesniffer-composer-installer": "^1.2", "friendsofphp/php-cs-fixer": "^3.95", "phpmd/phpmd": "^3.0", - "vimeo/psalm": "^6.16", + "vimeo/psalm": "^7.0", "php-stubs/wordpress-stubs": "^7.1.2", "szepeviktor/phpstan-wordpress": "^2.0", "phpstan/phpstan": "^2.3.1", diff --git a/composer.lock b/composer.lock index 53b53a1..e0c69e4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "554827704a08ead41378cdef988c9a6c", + "content-hash": "5b8703d15507c720ba0b4f4d28ff1ccc", "packages": [], "packages-dev": [ { @@ -532,16 +532,16 @@ }, { "name": "amphp/process", - "version": "v2.1.1", + "version": "v2.1.2", "source": { "type": "git", "url": "https://github.com/amphp/process.git", - "reference": "6ee0d11112a9b1338b7dc270d51f254e872c90b5" + "reference": "acfd64f68df5fa7f2d674c93d1986b2bf5d02770" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/process/zipball/6ee0d11112a9b1338b7dc270d51f254e872c90b5", - "reference": "6ee0d11112a9b1338b7dc270d51f254e872c90b5", + "url": "https://api.github.com/repos/amphp/process/zipball/acfd64f68df5fa7f2d674c93d1986b2bf5d02770", + "reference": "acfd64f68df5fa7f2d674c93d1986b2bf5d02770", "shasum": "" }, "require": { @@ -588,7 +588,7 @@ "homepage": "https://amphp.org/process", "support": { "issues": "https://github.com/amphp/process/issues", - "source": "https://github.com/amphp/process/tree/v2.1.1" + "source": "https://github.com/amphp/process/tree/v2.1.2" }, "funding": [ { @@ -596,7 +596,7 @@ "type": "github" } ], - "time": "2026-11-01T22:46:42+00:00" + "time": "2026-11-07T16:33:32+00:00" }, { "name": "amphp/serialization", @@ -667,16 +667,16 @@ }, { "name": "amphp/socket", - "version": "v2.4.1", + "version": "v2.4.2", "source": { "type": "git", "url": "https://github.com/amphp/socket.git", - "reference": "b347be5aff6b2cc025208bb4d896607eb470c018" + "reference": "6e881835c73b75a0a4251a7f58441bc90b9f6c8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/socket/zipball/b347be5aff6b2cc025208bb4d896607eb470c018", - "reference": "b347be5aff6b2cc025208bb4d896607eb470c018", + "url": "https://api.github.com/repos/amphp/socket/zipball/6e881835c73b75a0a4251a7f58441bc90b9f6c8a", + "reference": "6e881835c73b75a0a4251a7f58441bc90b9f6c8a", "shasum": "" }, "require": { @@ -739,7 +739,7 @@ ], "support": { "issues": "https://github.com/amphp/socket/issues", - "source": "https://github.com/amphp/socket/tree/v2.4.1" + "source": "https://github.com/amphp/socket/tree/v2.4.2" }, "funding": [ { @@ -747,7 +747,7 @@ "type": "github" } ], - "time": "2026-08-22T18:13:20+00:00" + "time": "2026-11-11T03:42:20+00:00" }, { "name": "amphp/sync", @@ -1392,20 +1392,20 @@ }, { "name": "doctrine/deprecations", - "version": "1.1.6", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca" + "reference": "d2e16653a734c8784c1851ad68b02f997b53ca82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", - "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d2e16653a734c8784c1851ad68b02f997b53ca82", + "reference": "d2e16653a734c8784c1851ad68b02f997b53ca82", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.4 || ^8.0" }, "conflict": { "phpunit/phpunit": "<=7.5 || >=14" @@ -1434,22 +1434,22 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.6" + "source": "https://github.com/doctrine/deprecations/tree/1.2.0" }, - "time": "2026-02-07T07:09:04+00:00" + "time": "2026-11-11T10:04:49+00:00" }, { "name": "ergebnis/agent-detector", - "version": "1.3.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/ergebnis/agent-detector.git", - "reference": "0cd815cec1207873c37624d33f0f2853523152f3" + "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/0cd815cec1207873c37624d33f0f2853523152f3", - "reference": "0cd815cec1207873c37624d33f0f2853523152f3", + "url": "https://api.github.com/repos/ergebnis/agent-detector/zipball/bcc63004284c61c6df6e9625acf2673e3be1889b", + "reference": "bcc63004284c61c6df6e9625acf2673e3be1889b", "shasum": "" }, "require": { @@ -1459,8 +1459,8 @@ "ergebnis/composer-normalize": "^2.54.0", "ergebnis/license": "^2.8.0", "ergebnis/php-cs-fixer-config": "^6.60.2", - "ergebnis/phpstan-rules": "^2.14.0", - "ergebnis/phpunit-slow-test-detector": "^2.26.0", + "ergebnis/phpstan-rules": "^2.14.2", + "ergebnis/phpunit-slow-test-detector": "^2.27.0", "ergebnis/rector-rules": "^1.18.5", "fakerphp/faker": "^1.24.1", "infection/infection": "^0.26.6", @@ -1475,7 +1475,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.3-dev" + "dev-main": "2.0-dev" }, "composer-normalize": { "indent-size": 2, @@ -1505,7 +1505,7 @@ "security": "https://github.com/ergebnis/agent-detector/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/agent-detector" }, - "time": "2026-10-15T11:13:32+00:00" + "time": "2026-10-29T17:44:55+00:00" }, { "name": "evenement/evenement", @@ -1674,23 +1674,23 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.95.27", + "version": "v3.95.30", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "1d0c68ee5f37446d8ad5970b82384cd1bb0a3317" + "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/1d0c68ee5f37446d8ad5970b82384cd1bb0a3317", - "reference": "1d0c68ee5f37446d8ad5970b82384cd1bb0a3317", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/e85cafc4d861c122839d5409eda3325ac0ec0300", + "reference": "e85cafc4d861c122839d5409eda3325ac0ec0300", "shasum": "" }, "require": { "clue/ndjson-react": "^1.3", "composer/semver": "^3.4", "composer/xdebug-handler": "^3.0.5", - "ergebnis/agent-detector": "^1.2", + "ergebnis/agent-detector": "^2.0.0", "ext-filter": "*", "ext-hash": "*", "ext-json": "*", @@ -1702,30 +1702,30 @@ "react/socket": "^1.16", "react/stream": "^1.4", "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 || ^8.0 || ^9.0", - "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0", - "symfony/polyfill-mbstring": "^1.37", - "symfony/polyfill-php80": "^1.37", - "symfony/polyfill-php81": "^1.37", - "symfony/polyfill-php84": "^1.37", - "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2 || ^8.0", - "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0 || ^8.0" + "symfony/console": "^5.4.55 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/event-dispatcher": "^5.4.45 || ^6.4.44 || ^7.4.17 || ^8.1.5", + "symfony/filesystem": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/finder": "^5.4.45 || ^6.4.50 || ^7.4.23 || ^8.1.11", + "symfony/options-resolver": "^5.4.45 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/polyfill-mbstring": "^1.43.3", + "symfony/polyfill-php80": "^1.43", + "symfony/polyfill-php81": "^1.38.1", + "symfony/polyfill-php84": "^1.43", + "symfony/process": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.4.8 || ^8.1" }, "require-dev": { "facile-it/paraunit": "^1.3.1 || ^2.11.0", "infection/infection": "^0.32.7", - "justinrainbow/json-schema": "^6.12.0", + "justinrainbow/json-schema": "^6.14.0", "keradus/cli-executor": "^2.3", "php-coveralls/php-coveralls": "^2.9.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.8", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.8", - "phpunit/phpunit": "^9.6.36 || ^10.5.64 || ^11.5.56 || ^12.5.35 || ^13.3.3", - "symfony/polyfill-php85": "^1.41", - "symfony/var-dumper": "^5.4.48 || ^6.4.45 || ^7.4.18 || ^8.1.7", - "symfony/yaml": "^5.4.53 || ^6.4.45 || ^7.4.18 || ^8.1.6" + "phpunit/phpunit": "^9.6.38 || ^10.5.66 || ^11.5.57 || ^12.5.43 || ^13.4.6", + "symfony/polyfill-php85": "^1.43", + "symfony/var-dumper": "^5.4.54 || ^6.4.49 || ^7.4.22 || ^8.1.10", + "symfony/yaml": "^5.4.56 || ^6.4.50 || ^7.4.23 || ^8.1.11" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -1766,7 +1766,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.27" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.95.30" }, "funding": [ { @@ -1774,7 +1774,7 @@ "type": "github" } ], - "time": "2026-09-22T09:54:55+00:00" + "time": "2026-11-09T14:32:19+00:00" }, { "name": "kelunik/certificate", @@ -3140,11 +3140,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.3.4", + "version": "2.3.5", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f20ce6f3c82556cfcfc086b152445a12d1d64fff", - "reference": "f20ce6f3c82556cfcfc086b152445a12d1d64fff", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/645a1bd6bead15fc1b8474137467961d0fa30a79", + "reference": "645a1bd6bead15fc1b8474137467961d0fa30a79", "shasum": "" }, "require": { @@ -3200,7 +3200,7 @@ "type": "github" } ], - "time": "2026-10-28T22:38:53+00:00" + "time": "2026-11-03T12:14:22+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3649,6 +3649,325 @@ ], "time": "2026-10-27T04:15:03+00:00" }, + { + "name": "psalm/plugin-laravel", + "version": "v4.19.5", + "source": { + "type": "git", + "url": "https://github.com/psalm/psalm-plugin-laravel.git", + "reference": "f9b54e015ff81be1240bfdc7bf3b4f95e45c3218" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/psalm/psalm-plugin-laravel/zipball/f9b54e015ff81be1240bfdc7bf3b4f95e45c3218", + "reference": "f9b54e015ff81be1240bfdc7bf3b4f95e45c3218", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "nikic/php-parser": "^5.0", + "php": "^8.2", + "psalm/psalm-plugin-api": "^0.4.2", + "sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "symfony/console": "^6.4 || ^7.0 || ^8.0", + "vimeo/psalm": "^7.3.1@stable" + }, + "conflict": { + "laravel/framework": "<12.27 || 13.0.0 || >=13.1 <13.20", + "orchestra/testbench-core": "<10.0" + }, + "require-dev": { + "alies-dev/psalm-tester": "^0.4", + "brianium/paratest": "^7.7", + "friendsofphp/php-cs-fixer": "^3.94", + "laravel/framework": "^12.27 || ^13.20", + "orchestra/testbench-core": "^10.0 || ^11.0", + "phpunit/phpunit": "^11.5 || ^12.5 || ^13.0", + "ramsey/collection": "^1.3", + "rector/rector": "^2.8.3", + "symfony/http-foundation": "^7.1 || ^8.0", + "symfony/process": "^7.1 || ^8.0" + }, + "bin": [ + "bin/psalm-laravel" + ], + "type": "psalm-plugin", + "extra": { + "psalm": { + "pluginClass": "Psalm\\LaravelPlugin\\Plugin" + } + }, + "autoload": { + "psr-4": { + "Psalm\\LaravelPlugin\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matthew Brown", + "email": "github@muglug.com", + "role": "Original Author" + }, + { + "name": "Alies Lapatsin", + "email": "github@alies.dev", + "role": "Maintainer" + } + ], + "description": "Psalm plugin for Laravel", + "homepage": "https://github.com/psalm/psalm-plugin-laravel", + "keywords": [ + "dev", + "laravel", + "psalm", + "psalm-plugin" + ], + "support": { + "issues": "https://github.com/psalm/psalm-plugin-laravel/issues", + "source": "https://github.com/psalm/psalm-plugin-laravel/tree/v4.19.5" + }, + "funding": [ + { + "url": "https://github.com/alies-dev", + "type": "github" + } + ], + "time": "2026-11-13T00:15:12+00:00" + }, + { + "name": "psalm/plugin-mockery", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/psalm/psalm-plugin-mockery.git", + "reference": "ddff47dd095dc3c47224a3f6bf137e28570ef022" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/psalm/psalm-plugin-mockery/zipball/ddff47dd095dc3c47224a3f6bf137e28570ef022", + "reference": "ddff47dd095dc3c47224a3f6bf137e28570ef022", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.0", + "composer/semver": "^1.4 || ^2.0 || ^3.0", + "php": ">=8.1", + "psalm/psalm-plugin-api": "^0.4", + "vimeo/psalm": "^7|dev-master" + }, + "conflict": { + "mockery/mockery": "<1.0" + }, + "require-dev": { + "codeception/codeception": "^5.0", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^10.5 || ^11.5 || ^12.0 || ^13.0", + "squizlabs/php_codesniffer": "^3.3.1", + "weirdan/codeception-psalm-module": "^0.14.1" + }, + "type": "psalm-plugin", + "extra": { + "psalm": { + "pluginClass": "Psalm\\MockeryPlugin\\Plugin" + } + }, + "autoload": { + "psr-4": { + "Psalm\\MockeryPlugin\\": [ + "." + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Brown", + "email": "github@muglug.com" + } + ], + "description": "Psalm plugin for Mockery", + "support": { + "issues": "https://github.com/psalm/psalm-plugin-mockery/issues", + "source": "https://github.com/psalm/psalm-plugin-mockery/tree/1.3.2" + }, + "time": "2026-10-28T12:21:43+00:00" + }, + { + "name": "psalm/plugin-phpunit", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/psalm/psalm-plugin-phpunit.git", + "reference": "9227f2ac5d7ec16d1f4c9904a4326397b90d5566" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/9227f2ac5d7ec16d1f4c9904a4326397b90d5566", + "reference": "9227f2ac5d7ec16d1f4c9904a4326397b90d5566", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "php": ">=8.2", + "psalm/psalm-plugin-api": "^0.4.2", + "vimeo/psalm": "^7.2 || dev-master" + }, + "conflict": { + "phpspec/prophecy": "<1.20.0", + "phpspec/prophecy-phpunit": "<2.3.0", + "phpunit/phpunit": "<11.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.88", + "phpspec/prophecy-phpunit": "^2.5", + "phpunit/phpunit": "^11.0 || ^12.0 || ^13.0" + }, + "type": "psalm-plugin", + "extra": { + "psalm": { + "pluginClass": "Psalm\\PhpUnitPlugin\\Plugin" + }, + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psalm\\PhpUnitPlugin\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Brown", + "email": "github@muglug.com" + } + ], + "description": "Psalm plugin for PHPUnit", + "support": { + "issues": "https://github.com/psalm/psalm-plugin-phpunit/issues", + "source": "https://github.com/psalm/psalm-plugin-phpunit/tree/1.2.0" + }, + "time": "2026-11-14T00:23:20+00:00" + }, + { + "name": "psalm/plugin-symfony", + "version": "v5.11.0", + "source": { + "type": "git", + "url": "https://github.com/psalm/psalm-plugin-symfony.git", + "reference": "1fef73d616f0e187ffc05d13dd98f10ade6bc9e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/psalm/psalm-plugin-symfony/zipball/1fef73d616f0e187ffc05d13dd98f10ade6bc9e0", + "reference": "1fef73d616f0e187ffc05d13dd98f10ade6bc9e0", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "php": ">=8.2", + "psalm/psalm-plugin-api": "^0.4.2", + "vimeo/psalm": "^7.0@stable|dev-master" + }, + "conflict": { + "fidry/cpu-core-counter": "<1.2", + "symfony/expression-language": "<5.0", + "symfony/framework-bundle": "<5.0" + }, + "require-dev": { + "doctrine/annotations": "^1.8|^2", + "doctrine/orm": "^2.9 || ^3.6", + "phpunit/phpunit": "~7.5 || ~9.5", + "symfony/cache-contracts": "^1.0 || ^2.0 || ^3.0", + "symfony/console": "*", + "symfony/expression-language": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/form": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/framework-bundle": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/messenger": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/mime": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/security-core": "*", + "symfony/serializer": "^5.0 || ^6.0 || ^7.0 || ^8.0", + "symfony/validator": "*", + "twig/twig": "^2.10 || ^3.0", + "weirdan/codeception-psalm-module": "dev-master" + }, + "suggest": { + "weirdan/doctrine-psalm-plugin": "If Doctrine is used, it is recommended install this plugin" + }, + "type": "psalm-plugin", + "extra": { + "psalm": { + "pluginClass": "Psalm\\SymfonyPsalmPlugin\\Plugin" + } + }, + "autoload": { + "psr-4": { + "Psalm\\SymfonyPsalmPlugin\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Farhad Safarov", + "email": "farhad.safarov@gmail.com" + } + ], + "description": "Psalm Plugin for Symfony", + "support": { + "issues": "https://github.com/psalm/psalm-plugin-symfony/issues", + "source": "https://github.com/psalm/psalm-plugin-symfony/tree/v5.11.0" + }, + "time": "2026-11-11T11:34:54+00:00" + }, + { + "name": "psalm/psalm-plugin-api", + "version": "0.4.3", + "source": { + "type": "git", + "url": "https://github.com/psalm/psalm-plugin-api.git", + "reference": "1d4369adfe959d6459f10f647d386051e93e8e2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/psalm/psalm-plugin-api/zipball/1d4369adfe959d6459f10f647d386051e93e8e2e", + "reference": "1d4369adfe959d6459f10f647d386051e93e8e2e", + "shasum": "" + }, + "conflict": { + "vimeo/psalm": "<7.0.0-rc3" + }, + "type": "metapackage", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniil Gentili", + "email": "daniil@daniil.it" + } + ], + "description": "Stable, semantically versioned API for Psalm plugins", + "support": { + "issues": "https://github.com/psalm/psalm-plugin-api/issues", + "source": "https://github.com/psalm/psalm-plugin-api/tree/0.4.3" + }, + "time": "2026-11-13T22:58:21+00:00" + }, { "name": "psr/container", "version": "2.0.2", @@ -4438,21 +4757,21 @@ }, { "name": "rector/rector", - "version": "2.8.3", + "version": "2.8.4", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6" + "reference": "55acbd956d7e3907f7d21aab54edd68a310609e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6", - "reference": "12ddb68d34acb91bcf3d00302bf1c7c1b5840bd6", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/55acbd956d7e3907f7d21aab54edd68a310609e6", + "reference": "55acbd956d7e3907f7d21aab54edd68a310609e6", "shasum": "" }, "require": { "php": "^7.4|^8.0", - "phpstan/phpstan": "^2.3.4" + "phpstan/phpstan": "^2.3.5" }, "conflict": { "rector/rector-doctrine": "*", @@ -4483,7 +4802,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/2.8.3" + "source": "https://github.com/rectorphp/rector/tree/2.8.4" }, "funding": [ { @@ -4491,7 +4810,7 @@ "type": "github" } ], - "time": "2026-10-29T05:51:41+00:00" + "time": "2026-11-03T18:48:08+00:00" }, { "name": "revolt/event-loop", @@ -5434,16 +5753,16 @@ }, { "name": "sebastian/version", - "version": "6.0.1", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "9e935a16187e14f39b0e79910dabd614972cdb26" + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/9e935a16187e14f39b0e79910dabd614972cdb26", - "reference": "9e935a16187e14f39b0e79910dabd614972cdb26", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159", "shasum": "" }, "require": { @@ -5476,7 +5795,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/version/issues", "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/6.0.1" + "source": "https://github.com/sebastianbergmann/version/tree/6.0.2" }, "funding": [ { @@ -5496,7 +5815,7 @@ "type": "tidelift" } ], - "time": "2026-10-04T05:50:08+00:00" + "time": "2026-11-09T06:30:55+00:00" }, { "name": "sirbrillig/phpcs-variable-analysis", @@ -7619,22 +7938,22 @@ }, { "name": "vimeo/psalm", - "version": "6.20.5", + "version": "7.5.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "e447b655502f2058630e6ee03f2ea1c3789fe166" + "reference": "9520421041c4de67379270dc17502544dd808140" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/e447b655502f2058630e6ee03f2ea1c3789fe166", - "reference": "e447b655502f2058630e6ee03f2ea1c3789fe166", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/9520421041c4de67379270dc17502544dd808140", + "reference": "9520421041c4de67379270dc17502544dd808140", "shasum": "" }, "require": { "amphp/amp": "^3", "amphp/byte-stream": "^2", - "amphp/parallel": "^2.3", + "amphp/parallel": "^2.4.0", "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/xdebug-handler": "^2.0 || ^3.0", @@ -7648,10 +7967,15 @@ "ext-simplexml": "*", "ext-tokenizer": "*", "felixfbecker/language-server-protocol": "^1.5.3", - "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0", + "fidry/cpu-core-counter": "^1.2", "netresearch/jsonmapper": "^5.0", - "nikic/php-parser": "^5.2.0", - "php": "~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0", + "nikic/php-parser": "^5.9", + "php-64bit": "~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0 || ~8.6.0", + "psalm/plugin-laravel": "^4.17.4", + "psalm/plugin-mockery": "^1.3.2", + "psalm/plugin-phpunit": "^0.21 || ^0.22 || ^1.0", + "psalm/plugin-symfony": "^5.9.1", + "psalm/psalm-plugin-api": "0.4.3", "sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", "spatie/array-to-xml": "^2.17.0 || ^3.0", "symfony/console": "^6.0 || ^7.0 || ^8.0", @@ -7662,9 +7986,8 @@ "psalm/psalm": "self.version" }, "require-dev": { - "amphp/phpunit-util": "^3", "bamarni/composer-bin-plugin": "^1.4", - "brianium/paratest": "^6.9", + "brianium/paratest": "^7.3", "danog/class-finder": "^0.4.8", "dg/bypass-finals": "^1.5", "ext-curl": "*", @@ -7672,16 +7995,15 @@ "nunomaduro/mock-final-classes": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpdoc-parser": "^1.6", - "phpunit/phpunit": "^9.6", - "psalm/plugin-mockery": "^1.1", - "psalm/plugin-phpunit": "^0.19", + "phpunit/phpunit": "^10.5 || ^11.5 || ^12.5 || ^13.0", "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.6", "symfony/process": "^6.0 || ^7.0 || ^8.0" }, "suggest": { "ext-curl": "In order to send data to shepherd", - "ext-igbinary": "^2.0.5 is required, used to serialize caching data" + "ext-igbinary": "^2.0.5 is required, used to serialize caching data", + "ext-zstd": ">=0.15.0 is required, used to compress caching data" }, "bin": [ "psalm", @@ -7733,7 +8055,7 @@ "issues": "https://github.com/vimeo/psalm/issues", "source": "https://github.com/vimeo/psalm" }, - "time": "2026-10-31T16:01:17+00:00" + "time": "2026-11-14T00:41:11+00:00" }, { "name": "webmozart/assert", diff --git a/languages/optimizations-ace-mc.pot b/languages/optimizations-ace-mc.pot index 1dfc9e3..94a0893 100644 --- a/languages/optimizations-ace-mc.pot +++ b/languages/optimizations-ace-mc.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-10-16T00:12:11+00:00\n" +"POT-Creation-Date: 2026-11-14T08:51:05+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: optimizations-ace-mc\n" @@ -39,96 +39,96 @@ msgstr "" msgid "https://github.com/EngineScript" msgstr "" -#: includes/class-optimizations-ace-mc-admin-optimizations.php:77 +#: includes/class-optimizations-ace-mc-admin-optimizations.php:67 msgid "Registration Date" msgstr "" -#: includes/class-optimizations-ace-mc-admin-optimizations.php:99 +#: includes/class-optimizations-ace-mc-admin-optimizations.php:88 msgid "Unknown" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:66 -#: includes/class-optimizations-ace-mc-admin-page.php:67 +#: includes/class-optimizations-ace-mc-admin-page.php:57 +#: includes/class-optimizations-ace-mc-admin-page.php:58 msgid "ACE MC Optimizations" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:122 +#: includes/class-optimizations-ace-mc-admin-page.php:113 msgid "WooCommerce Optimizations" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:127 +#: includes/class-optimizations-ace-mc-admin-page.php:118 msgid "Show Empty Categories" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:128 +#: includes/class-optimizations-ace-mc-admin-page.php:119 msgid "Hide Category Product Count" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:129 +#: includes/class-optimizations-ace-mc-admin-page.php:120 msgid "User Order Count Column" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:140 +#: includes/class-optimizations-ace-mc-admin-page.php:131 msgid "WP Store Locator Optimizations" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:145 +#: includes/class-optimizations-ace-mc-admin-page.php:136 msgid "Show Store Categories" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:146 +#: includes/class-optimizations-ace-mc-admin-page.php:137 msgid "Disable REST API" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:157 +#: includes/class-optimizations-ace-mc-admin-page.php:148 msgid "WordPress Admin Optimizations" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:162 +#: includes/class-optimizations-ace-mc-admin-page.php:153 msgid "User Registration Date Column" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:192 +#: includes/class-optimizations-ace-mc-admin-page.php:183 msgid "Configure WooCommerce-specific optimizations. These features enhance the WooCommerce experience and admin functionality." msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:201 +#: includes/class-optimizations-ace-mc-admin-page.php:192 msgid "Configure WP Store Locator optimizations. These features enhance store locator functionality and security." msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:210 +#: includes/class-optimizations-ace-mc-admin-page.php:201 msgid "Configure WordPress admin interface optimizations. These features enhance the admin experience." msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:249 +#: includes/class-optimizations-ace-mc-admin-page.php:240 msgid "You do not have sufficient permissions to access this page." msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:282 +#: includes/class-optimizations-ace-mc-admin-page.php:273 msgid "Plugin Information:" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:283 +#: includes/class-optimizations-ace-mc-admin-page.php:274 msgid "This plugin provides configurable optimizations for WooCommerce, WP Store Locator, and WordPress admin interfaces." msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:286 +#: includes/class-optimizations-ace-mc-admin-page.php:277 msgid "Version:" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:300 +#: includes/class-optimizations-ace-mc-admin-page.php:291 msgid "Support & Documentation" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:302 +#: includes/class-optimizations-ace-mc-admin-page.php:293 msgid "For support, bug reports, or feature requests:" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:304 +#: includes/class-optimizations-ace-mc-admin-page.php:295 msgid "Visit the GitHub repository" msgstr "" -#: includes/class-optimizations-ace-mc-admin-page.php:305 +#: includes/class-optimizations-ace-mc-admin-page.php:296 msgid "(opens in a new tab)" msgstr "" @@ -156,14 +156,14 @@ msgstr "" msgid "Add a registration date column to the WordPress users admin table." msgstr "" -#: includes/class-optimizations-ace-mc-woocommerce-optimizations.php:75 +#: includes/class-optimizations-ace-mc-woocommerce-optimizations.php:66 msgid "Order Count" msgstr "" -#: includes/class-optimizations-ace-mc-wpsl-optimizations.php:136 +#: includes/class-optimizations-ace-mc-wpsl-optimizations.php:124 msgid "Certifications:" msgstr "" -#: includes/class-optimizations-ace-mc.php:73 +#: includes/class-optimizations-ace-mc.php:70 msgid "Unserializing is not allowed." msgstr "" diff --git a/optimizations-ace-mc.php b/optimizations-ace-mc.php index e94950b..85a8ba1 100644 --- a/optimizations-ace-mc.php +++ b/optimizations-ace-mc.php @@ -11,7 +11,6 @@ * Text Domain: optimizations-ace-mc * Domain Path: /languages * Requires at least: 7.0 - * Tested up to: 7.1 * Requires PHP: 8.3 * Requires Plugins: woocommerce * diff --git a/psalm.xml b/psalm.xml index 282d04f..5931860 100644 --- a/psalm.xml +++ b/psalm.xml @@ -17,4 +17,14 @@ + + + + + + + + diff --git a/readme.txt b/readme.txt index 374e23e..8b7cfb3 100644 --- a/readme.txt +++ b/readme.txt @@ -67,6 +67,9 @@ Yes, this plugin focuses on specific admin and functionality enhancements rather == Changelog == += Unreleased = +* Changed: "Tested up to" is declared only in `readme.txt`, not in the plugin header, as Plugin Check requires + = 1.6.1 - 2026-10-09 = * Changed: Store categories are added to WP Store Locator's own info window template instead of replacing it, so the info window keeps everything WP Store Locator is set to show * Changed: The release package no longer includes `README.md` and `CHANGELOG.md`