From e8dbb79d8c339249b7983035fc82c639935e387c Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Thu, 25 Sep 2025 20:05:24 +0100 Subject: [PATCH 1/2] Introduce phpstan instead of psalm --- .github/workflows/continuous-integration.yml | 4 +- .gitignore | 2 - bin/pie | 1 - composer.json | 5 +- composer.lock | 2595 ++--------------- phpstan.neon | 7 + psalm.xml.dist | 42 - src/Building/UnixBuild.php | 1 - src/Command/CommandHelper.php | 3 - .../InstallExtensionsForProjectCommand.php | 4 - src/Command/RepositoryAddCommand.php | 1 - src/Command/ShowCommand.php | 4 +- .../ComposerIntegrationHandler.php | 1 - .../InstallAndBuildProcess.php | 1 - .../OverrideDownloadUrlInstallListener.php | 1 - .../RemoveUnrelatedInstallOperations.php | 5 - .../PieComposerInstaller.php | 3 - .../PieInstalledJsonMetadataKeys.php | 2 +- src/ComposerIntegration/QuieterConsoleIO.php | 1 - src/ComposerIntegration/UninstallProcess.php | 1 - .../VersionSelectorFactory.php | 1 - .../DetermineMinimumStability.php | 2 +- src/DependencyResolver/Package.php | 2 - .../GithubPackageReleaseAssets.php | 1 - src/ExtensionName.php | 3 +- src/File/FailedToCreateFile.php | 2 +- src/File/FailedToUnlinkFile.php | 2 +- src/File/FailedToWriteFile.php | 2 +- src/File/FullPathToSelf.php | 2 - .../FindMatchingPackages.php | 2 +- .../InstallPiePackageFromPath.php | 1 - src/Installing/SetupIniFile.php | 1 - src/Platform.php | 1 - src/Platform/InstalledPiePackages.php | 2 +- src/Platform/PrePackagedSourceAssetName.php | 1 - src/Platform/WindowsExtensionAssetName.php | 1 - .../FallbackVerificationUsingOpenSsl.php | 3 - src/Util/CaptureErrors.php | 2 +- src/Util/PieVersion.php | 2 - src/Util/Process.php | 1 - test/behaviour/CliContext.php | 3 +- ...OverrideDownloadUrlInstallListenerTest.php | 24 - .../RemoveUnrelatedInstallOperationsTest.php | 5 - .../ComposerIntegration/VendorCleanupTest.php | 2 - test/unit/ExtensionNameTest.php | 1 - .../Ini/AddExtensionToTheIniFileTest.php | 4 - .../CheckAndAddExtensionToIniIfNeededTest.php | 4 - .../Installing/Ini/DockerPhpExtEnableTest.php | 4 - .../Installing/Ini/OndrejPhpenmodTest.php | 4 - .../PreCheckExtensionAlreadyLoadedTest.php | 4 - .../StandardAdditionalPhpIniDirectoryTest.php | 4 - .../Ini/StandardSinglePhpIniTest.php | 4 - .../SelfManage/Verify/AttestationTest.php | 2 - 53 files changed, 346 insertions(+), 2437 deletions(-) create mode 100644 phpstan.neon delete mode 100644 psalm.xml.dist diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index f91b4752..239a0d3e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -185,8 +185,8 @@ jobs: - uses: ramsey/composer-install@v3 - name: Validate the composer configuration run: composer validate --strict - - name: Run Psalm - run: vendor/bin/psalm + - name: Run phpstan + run: vendor/bin/phpstan build-phar: needs: diff --git a/.gitignore b/.gitignore index 2ed8e764..68693cc2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,9 @@ /vendor/ -/psalm.xml /.phpunit.cache/ /.phpunit.result.cache /.phpcs-cache phpcs.xml phpunit.xml -psalm.xml behat.yml box.json box.phar diff --git a/bin/pie b/bin/pie index 443b532b..7ebdecf6 100755 --- a/bin/pie +++ b/bin/pie @@ -29,7 +29,6 @@ if (PieVersion::isPharBuild()) { error_reporting(error_reporting() & ~E_DEPRECATED); } -/** @psalm-suppress UnresolvableInclude */ include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php'; $container = Container::factory(); diff --git a/composer.json b/composer.json index 5ec778c3..c49a0e14 100644 --- a/composer.json +++ b/composer.json @@ -43,9 +43,8 @@ "ext-openssl": "*", "behat/behat": "^3.23.0", "doctrine/coding-standard": "^13.0.1", - "phpunit/phpunit": "^10.5.48", - "psalm/plugin-phpunit": "^0.19.5", - "vimeo/psalm": "^6.13.1" + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^10.5.48" }, "replace": { "symfony/polyfill-php81": "*", diff --git a/composer.lock b/composer.lock index c6915dbf..620fad3d 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": "f542bd5a549fa468020c82327ba6fd88", + "content-hash": "fb078f5c73f463e113e0d38a71a8019c", "packages": [ { "name": "composer/ca-bundle", @@ -2483,1395 +2483,138 @@ ], "packages-dev": [ { - "name": "amphp/amp", - "version": "v3.1.1", - "source": { - "type": "git", - "url": "https://github.com/amphp/amp.git", - "reference": "fa0ab33a6f47a82929c38d03ca47ebb71086a93f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/fa0ab33a6f47a82929c38d03ca47ebb71086a93f", - "reference": "fa0ab33a6f47a82929c38d03ca47ebb71086a93f", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "phpunit/phpunit": "^9", - "psalm/phar": "5.23.1" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php", - "src/Future/functions.php", - "src/Internal/functions.php" - ], - "psr-4": { - "Amp\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Bob Weinand", - "email": "bobwei9@hotmail.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, - { - "name": "Daniel Lowrey", - "email": "rdlowrey@php.net" - } - ], - "description": "A non-blocking concurrency framework for PHP applications.", - "homepage": "https://amphp.org/amp", - "keywords": [ - "async", - "asynchronous", - "awaitable", - "concurrency", - "event", - "event-loop", - "future", - "non-blocking", - "promise" - ], - "support": { - "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v3.1.1" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2025-08-27T21:42:00+00:00" - }, - { - "name": "amphp/byte-stream", - "version": "v2.1.2", - "source": { - "type": "git", - "url": "https://github.com/amphp/byte-stream.git", - "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/byte-stream/zipball/55a6bd071aec26fa2a3e002618c20c35e3df1b46", - "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/parser": "^1.1", - "amphp/pipeline": "^1", - "amphp/serialization": "^1", - "amphp/sync": "^2", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2.3" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "5.22.1" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php", - "src/Internal/functions.php" - ], - "psr-4": { - "Amp\\ByteStream\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "A stream abstraction to make working with non-blocking I/O simple.", - "homepage": "https://amphp.org/byte-stream", - "keywords": [ - "amp", - "amphp", - "async", - "io", - "non-blocking", - "stream" - ], - "support": { - "issues": "https://github.com/amphp/byte-stream/issues", - "source": "https://github.com/amphp/byte-stream/tree/v2.1.2" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2025-03-16T17:10:27+00:00" - }, - { - "name": "amphp/cache", - "version": "v2.0.1", - "source": { - "type": "git", - "url": "https://github.com/amphp/cache.git", - "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/cache/zipball/46912e387e6aa94933b61ea1ead9cf7540b7797c", - "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/serialization": "^1", - "amphp/sync": "^2", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Amp\\Cache\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Daniel Lowrey", - "email": "rdlowrey@php.net" - } - ], - "description": "A fiber-aware cache API based on Amp and Revolt.", - "homepage": "https://amphp.org/cache", - "support": { - "issues": "https://github.com/amphp/cache/issues", - "source": "https://github.com/amphp/cache/tree/v2.0.1" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2024-04-19T03:38:06+00:00" - }, - { - "name": "amphp/dns", - "version": "v2.4.0", - "source": { - "type": "git", - "url": "https://github.com/amphp/dns.git", - "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/dns/zipball/78eb3db5fc69bf2fc0cb503c4fcba667bc223c71", - "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/byte-stream": "^2", - "amphp/cache": "^2", - "amphp/parser": "^1", - "amphp/process": "^2", - "daverandom/libdns": "^2.0.2", - "ext-filter": "*", - "ext-json": "*", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "5.20" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Amp\\Dns\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Chris Wright", - "email": "addr@daverandom.com" - }, - { - "name": "Daniel Lowrey", - "email": "rdlowrey@php.net" - }, - { - "name": "Bob Weinand", - "email": "bobwei9@hotmail.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - } - ], - "description": "Async DNS resolution for Amp.", - "homepage": "https://github.com/amphp/dns", - "keywords": [ - "amp", - "amphp", - "async", - "client", - "dns", - "resolve" - ], - "support": { - "issues": "https://github.com/amphp/dns/issues", - "source": "https://github.com/amphp/dns/tree/v2.4.0" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2025-01-19T15:43:40+00:00" - }, - { - "name": "amphp/parallel", - "version": "v2.3.2", - "source": { - "type": "git", - "url": "https://github.com/amphp/parallel.git", - "reference": "321b45ae771d9c33a068186b24117e3cd1c48dce" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/parallel/zipball/321b45ae771d9c33a068186b24117e3cd1c48dce", - "reference": "321b45ae771d9c33a068186b24117e3cd1c48dce", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/byte-stream": "^2", - "amphp/cache": "^2", - "amphp/parser": "^1", - "amphp/pipeline": "^1", - "amphp/process": "^2", - "amphp/serialization": "^1", - "amphp/socket": "^2", - "amphp/sync": "^2", - "php": ">=8.1", - "revolt/event-loop": "^1" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.18" - }, - "type": "library", - "autoload": { - "files": [ - "src/Context/functions.php", - "src/Context/Internal/functions.php", - "src/Ipc/functions.php", - "src/Worker/functions.php" - ], - "psr-4": { - "Amp\\Parallel\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, - { - "name": "Stephen Coakley", - "email": "me@stephencoakley.com" - } - ], - "description": "Parallel processing component for Amp.", - "homepage": "https://github.com/amphp/parallel", - "keywords": [ - "async", - "asynchronous", - "concurrent", - "multi-processing", - "multi-threading" - ], - "support": { - "issues": "https://github.com/amphp/parallel/issues", - "source": "https://github.com/amphp/parallel/tree/v2.3.2" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2025-08-27T21:55:40+00:00" - }, - { - "name": "amphp/parser", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/amphp/parser.git", - "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7", - "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7", - "shasum": "" - }, - "require": { - "php": ">=7.4" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Amp\\Parser\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "A generator parser to make streaming parsers simple.", - "homepage": "https://github.com/amphp/parser", - "keywords": [ - "async", - "non-blocking", - "parser", - "stream" - ], - "support": { - "issues": "https://github.com/amphp/parser/issues", - "source": "https://github.com/amphp/parser/tree/v1.1.1" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2024-03-21T19:16:53+00:00" - }, - { - "name": "amphp/pipeline", - "version": "v1.2.3", - "source": { - "type": "git", - "url": "https://github.com/amphp/pipeline.git", - "reference": "7b52598c2e9105ebcddf247fc523161581930367" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/pipeline/zipball/7b52598c2e9105ebcddf247fc523161581930367", - "reference": "7b52598c2e9105ebcddf247fc523161581930367", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "php": ">=8.1", - "revolt/event-loop": "^1" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.18" - }, - "type": "library", - "autoload": { - "psr-4": { - "Amp\\Pipeline\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "Asynchronous iterators and operators.", - "homepage": "https://amphp.org/pipeline", - "keywords": [ - "amp", - "amphp", - "async", - "io", - "iterator", - "non-blocking" - ], - "support": { - "issues": "https://github.com/amphp/pipeline/issues", - "source": "https://github.com/amphp/pipeline/tree/v1.2.3" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2025-03-16T16:33:53+00:00" - }, - { - "name": "amphp/process", - "version": "v2.0.3", - "source": { - "type": "git", - "url": "https://github.com/amphp/process.git", - "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/process/zipball/52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d", - "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/byte-stream": "^2", - "amphp/sync": "^2", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.4" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Amp\\Process\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bob Weinand", - "email": "bobwei9@hotmail.com" - }, - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "A fiber-aware process manager based on Amp and Revolt.", - "homepage": "https://amphp.org/process", - "support": { - "issues": "https://github.com/amphp/process/issues", - "source": "https://github.com/amphp/process/tree/v2.0.3" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2024-04-19T03:13:44+00:00" - }, - { - "name": "amphp/serialization", - "version": "v1.0.0", - "source": { - "type": "git", - "url": "https://github.com/amphp/serialization.git", - "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/serialization/zipball/693e77b2fb0b266c3c7d622317f881de44ae94a1", - "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "dev-master", - "phpunit/phpunit": "^9 || ^8 || ^7" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Amp\\Serialization\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "Serialization tools for IPC and data storage in PHP.", - "homepage": "https://github.com/amphp/serialization", - "keywords": [ - "async", - "asynchronous", - "serialization", - "serialize" - ], - "support": { - "issues": "https://github.com/amphp/serialization/issues", - "source": "https://github.com/amphp/serialization/tree/master" - }, - "time": "2020-03-25T21:39:07+00:00" - }, - { - "name": "amphp/socket", - "version": "v2.3.1", - "source": { - "type": "git", - "url": "https://github.com/amphp/socket.git", - "reference": "58e0422221825b79681b72c50c47a930be7bf1e1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/socket/zipball/58e0422221825b79681b72c50c47a930be7bf1e1", - "reference": "58e0422221825b79681b72c50c47a930be7bf1e1", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/byte-stream": "^2", - "amphp/dns": "^2", - "ext-openssl": "*", - "kelunik/certificate": "^1.1", - "league/uri": "^6.5 | ^7", - "league/uri-interfaces": "^2.3 | ^7", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "amphp/process": "^2", - "phpunit/phpunit": "^9", - "psalm/phar": "5.20" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php", - "src/Internal/functions.php", - "src/SocketAddress/functions.php" - ], - "psr-4": { - "Amp\\Socket\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Lowrey", - "email": "rdlowrey@gmail.com" - }, - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - } - ], - "description": "Non-blocking socket connection / server implementations based on Amp and Revolt.", - "homepage": "https://github.com/amphp/socket", - "keywords": [ - "amp", - "async", - "encryption", - "non-blocking", - "sockets", - "tcp", - "tls" - ], - "support": { - "issues": "https://github.com/amphp/socket/issues", - "source": "https://github.com/amphp/socket/tree/v2.3.1" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2024-04-21T14:33:03+00:00" - }, - { - "name": "amphp/sync", - "version": "v2.3.0", - "source": { - "type": "git", - "url": "https://github.com/amphp/sync.git", - "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1", - "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/pipeline": "^1", - "amphp/serialization": "^1", - "php": ">=8.1", - "revolt/event-loop": "^1 || ^0.2" - }, - "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "amphp/phpunit-util": "^3", - "phpunit/phpunit": "^9", - "psalm/phar": "5.23" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "Amp\\Sync\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" - }, - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, - { - "name": "Stephen Coakley", - "email": "me@stephencoakley.com" - } - ], - "description": "Non-blocking synchronization primitives for PHP based on Amp and Revolt.", - "homepage": "https://github.com/amphp/sync", - "keywords": [ - "async", - "asynchronous", - "mutex", - "semaphore", - "synchronization" - ], - "support": { - "issues": "https://github.com/amphp/sync/issues", - "source": "https://github.com/amphp/sync/tree/v2.3.0" - }, - "funding": [ - { - "url": "https://github.com/amphp", - "type": "github" - } - ], - "time": "2024-08-03T19:31:26+00:00" - }, - { - "name": "behat/behat", - "version": "v3.23.0", - "source": { - "type": "git", - "url": "https://github.com/Behat/Behat.git", - "reference": "c465af8756adaaa6d962c3176a0a6c594361809b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Behat/Behat/zipball/c465af8756adaaa6d962c3176a0a6c594361809b", - "reference": "c465af8756adaaa6d962c3176a0a6c594361809b", - "shasum": "" - }, - "require": { - "behat/gherkin": "^4.12.0", - "composer-runtime-api": "^2.2", - "composer/xdebug-handler": "^1.4 || ^2.0 || ^3.0", - "ext-mbstring": "*", - "nikic/php-parser": "^4.19.2 || ^5.2", - "php": "8.1.* || 8.2.* || 8.3.* || 8.4.* ", - "psr/container": "^1.0 || ^2.0", - "symfony/config": "^5.4 || ^6.4 || ^7.0", - "symfony/console": "^5.4 || ^6.4 || ^7.0", - "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", - "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", - "symfony/translation": "^5.4 || ^6.4 || ^7.0", - "symfony/yaml": "^5.4 || ^6.4 || ^7.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.68", - "phpstan/phpstan": "^2.0", - "phpunit/phpunit": "^9.6", - "rector/rector": "^2.0", - "sebastian/diff": "^4.0", - "symfony/polyfill-php84": "^1.31", - "symfony/process": "^5.4 || ^6.4 || ^7.0" - }, - "suggest": { - "ext-dom": "Needed to output test results in JUnit format." - }, - "bin": [ - "bin/behat" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Hook\\": "src/Behat/Hook/", - "Behat\\Step\\": "src/Behat/Step/", - "Behat\\Behat\\": "src/Behat/Behat/", - "Behat\\Config\\": "src/Behat/Config/", - "Behat\\Testwork\\": "src/Behat/Testwork/", - "Behat\\Transformation\\": "src/Behat/Transformation/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - } - ], - "description": "Scenario-oriented BDD framework for PHP", - "homepage": "https://behat.org/", - "keywords": [ - "Agile", - "BDD", - "ScenarioBDD", - "Scrum", - "StoryBDD", - "User story", - "business", - "development", - "documentation", - "examples", - "symfony", - "testing" - ], - "support": { - "issues": "https://github.com/Behat/Behat/issues", - "source": "https://github.com/Behat/Behat/tree/v3.23.0" - }, - "time": "2025-07-15T16:58:54+00:00" - }, - { - "name": "behat/gherkin", - "version": "v4.14.0", - "source": { - "type": "git", - "url": "https://github.com/Behat/Gherkin.git", - "reference": "34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Behat/Gherkin/zipball/34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4", - "reference": "34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4", - "shasum": "" - }, - "require": { - "composer-runtime-api": "^2.2", - "php": "8.1.* || 8.2.* || 8.3.* || 8.4.*" - }, - "require-dev": { - "cucumber/gherkin-monorepo": "dev-gherkin-v32.1.1", - "friendsofphp/php-cs-fixer": "^3.65", - "mikey179/vfsstream": "^1.6", - "phpstan/extension-installer": "^1", - "phpstan/phpstan": "^2", - "phpstan/phpstan-phpunit": "^2", - "phpunit/phpunit": "^10.5", - "symfony/yaml": "^5.4 || ^6.4 || ^7.0" - }, - "suggest": { - "symfony/yaml": "If you want to parse features, represented in YAML files" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.x-dev" - } - }, - "autoload": { - "psr-4": { - "Behat\\Gherkin\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "https://everzet.com" - } - ], - "description": "Gherkin DSL parser for PHP", - "homepage": "https://behat.org/", - "keywords": [ - "BDD", - "Behat", - "Cucumber", - "DSL", - "gherkin", - "parser" - ], - "support": { - "issues": "https://github.com/Behat/Gherkin/issues", - "source": "https://github.com/Behat/Gherkin/tree/v4.14.0" - }, - "time": "2025-05-23T15:06:40+00:00" - }, - { - "name": "danog/advanced-json-rpc", - "version": "v3.2.2", - "source": { - "type": "git", - "url": "https://github.com/danog/php-advanced-json-rpc.git", - "reference": "aadb1c4068a88c3d0530cfe324b067920661efcb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/danog/php-advanced-json-rpc/zipball/aadb1c4068a88c3d0530cfe324b067920661efcb", - "reference": "aadb1c4068a88c3d0530cfe324b067920661efcb", - "shasum": "" - }, - "require": { - "netresearch/jsonmapper": "^5", - "php": ">=8.1", - "phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0" - }, - "replace": { - "felixfbecker/php-advanced-json-rpc": "^3" - }, - "require-dev": { - "phpunit/phpunit": "^9" - }, - "type": "library", - "autoload": { - "psr-4": { - "AdvancedJsonRpc\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "ISC" - ], - "authors": [ - { - "name": "Felix Becker", - "email": "felix.b@outlook.com" - }, - { - "name": "Daniil Gentili", - "email": "daniil@daniil.it" - } - ], - "description": "A more advanced JSONRPC implementation", - "support": { - "issues": "https://github.com/danog/php-advanced-json-rpc/issues", - "source": "https://github.com/danog/php-advanced-json-rpc/tree/v3.2.2" - }, - "time": "2025-02-14T10:55:15+00:00" - }, - { - "name": "daverandom/libdns", - "version": "v2.1.0", - "source": { - "type": "git", - "url": "https://github.com/DaveRandom/LibDNS.git", - "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/DaveRandom/LibDNS/zipball/b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a", - "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "php": ">=7.1" - }, - "suggest": { - "ext-intl": "Required for IDN support" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "LibDNS\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "DNS protocol implementation written in pure PHP", - "keywords": [ - "dns" - ], - "support": { - "issues": "https://github.com/DaveRandom/LibDNS/issues", - "source": "https://github.com/DaveRandom/LibDNS/tree/v2.1.0" - }, - "time": "2024-04-12T12:12:48+00:00" - }, - { - "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v1.1.2", - "source": { - "type": "git", - "url": "https://github.com/PHPCSStandards/composer-installer.git", - "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1", - "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^2.2", - "php": ">=5.4", - "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" - }, - "require-dev": { - "composer/composer": "^2.2", - "ext-json": "*", - "ext-zip": "*", - "php-parallel-lint/php-parallel-lint": "^1.4.0", - "phpcompatibility/php-compatibility": "^9.0", - "yoast/phpunit-polyfills": "^1.0" - }, - "type": "composer-plugin", - "extra": { - "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" - }, - "autoload": { - "psr-4": { - "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Franck Nijhof", - "email": "opensource@frenck.dev", - "homepage": "https://frenck.dev", - "role": "Open source developer" - }, - { - "name": "Contributors", - "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" - } - ], - "description": "PHP_CodeSniffer Standards Composer Installer Plugin", - "keywords": [ - "PHPCodeSniffer", - "PHP_CodeSniffer", - "code quality", - "codesniffer", - "composer", - "installer", - "phpcbf", - "phpcs", - "plugin", - "qa", - "quality", - "standard", - "standards", - "style guide", - "stylecheck", - "tests" - ], - "support": { - "issues": "https://github.com/PHPCSStandards/composer-installer/issues", - "security": "https://github.com/PHPCSStandards/composer-installer/security/policy", - "source": "https://github.com/PHPCSStandards/composer-installer" - }, - "funding": [ - { - "url": "https://github.com/PHPCSStandards", - "type": "github" - }, - { - "url": "https://github.com/jrfnl", - "type": "github" - }, - { - "url": "https://opencollective.com/php_codesniffer", - "type": "open_collective" - }, - { - "url": "https://thanks.dev/u/gh/phpcsstandards", - "type": "thanks_dev" - } - ], - "time": "2025-07-17T20:45:56+00:00" - }, - { - "name": "dnoegel/php-xdg-base-dir", - "version": "v0.1.1", - "source": { - "type": "git", - "url": "https://github.com/dnoegel/php-xdg-base-dir.git", - "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", - "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "XdgBaseDir\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "implementation of xdg base directory specification for php", - "support": { - "issues": "https://github.com/dnoegel/php-xdg-base-dir/issues", - "source": "https://github.com/dnoegel/php-xdg-base-dir/tree/v0.1.1" - }, - "time": "2019-12-04T15:06:13+00:00" - }, - { - "name": "doctrine/coding-standard", - "version": "13.0.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/coding-standard.git", - "reference": "0affd62169186f32de725ca612e6129e81186a21" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/0affd62169186f32de725ca612e6129e81186a21", - "reference": "0affd62169186f32de725ca612e6129e81186a21", - "shasum": "" - }, - "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0.0", - "php": "^7.4 || ^8.0", - "slevomat/coding-standard": "^8.16", - "squizlabs/php_codesniffer": "^3.7" - }, - "type": "phpcodesniffer-standard", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Steve Müller", - "email": "st.mueller@dzh-online.de" - } - ], - "description": "The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.", - "homepage": "https://www.doctrine-project.org/projects/coding-standard.html", - "keywords": [ - "checks", - "code", - "coding", - "cs", - "dev", - "doctrine", - "rules", - "sniffer", - "sniffs", - "standard", - "style" - ], - "support": { - "issues": "https://github.com/doctrine/coding-standard/issues", - "source": "https://github.com/doctrine/coding-standard/tree/13.0.1" - }, - "time": "2025-05-14T10:54:19+00:00" - }, - { - "name": "doctrine/deprecations", - "version": "1.1.5", + "name": "behat/behat", + "version": "v3.23.0", "source": { "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38" + "url": "https://github.com/Behat/Behat.git", + "reference": "c465af8756adaaa6d962c3176a0a6c594361809b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", - "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "url": "https://api.github.com/repos/Behat/Behat/zipball/c465af8756adaaa6d962c3176a0a6c594361809b", + "reference": "c465af8756adaaa6d962c3176a0a6c594361809b", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "phpunit/phpunit": "<=7.5 || >=13" + "behat/gherkin": "^4.12.0", + "composer-runtime-api": "^2.2", + "composer/xdebug-handler": "^1.4 || ^2.0 || ^3.0", + "ext-mbstring": "*", + "nikic/php-parser": "^4.19.2 || ^5.2", + "php": "8.1.* || 8.2.* || 8.3.* || 8.4.* ", + "psr/container": "^1.0 || ^2.0", + "symfony/config": "^5.4 || ^6.4 || ^7.0", + "symfony/console": "^5.4 || ^6.4 || ^7.0", + "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", + "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", + "symfony/translation": "^5.4 || ^6.4 || ^7.0", + "symfony/yaml": "^5.4 || ^6.4 || ^7.0" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^12 || ^13", - "phpstan/phpstan": "1.4.10 || 2.1.11", - "phpstan/phpstan-phpunit": "^1.0 || ^2", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12", - "psr/log": "^1 || ^2 || ^3" + "friendsofphp/php-cs-fixer": "^3.68", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^9.6", + "rector/rector": "^2.0", + "sebastian/diff": "^4.0", + "symfony/polyfill-php84": "^1.31", + "symfony/process": "^5.4 || ^6.4 || ^7.0" }, "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "src" - } + "ext-dom": "Needed to output test results in JUnit format." }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" + "bin": [ + "bin/behat" ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.5" - }, - "time": "2025-04-07T20:06:18+00:00" - }, - { - "name": "felixfbecker/language-server-protocol", - "version": "v1.5.3", - "source": { - "type": "git", - "url": "https://github.com/felixfbecker/php-language-server-protocol.git", - "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/a9e113dbc7d849e35b8776da39edaf4313b7b6c9", - "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpstan/phpstan": "*", - "squizlabs/php_codesniffer": "^3.1", - "vimeo/psalm": "^4.0" - }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { - "LanguageServerProtocol\\": "src/" + "Behat\\Hook\\": "src/Behat/Hook/", + "Behat\\Step\\": "src/Behat/Step/", + "Behat\\Behat\\": "src/Behat/Behat/", + "Behat\\Config\\": "src/Behat/Config/", + "Behat\\Testwork\\": "src/Behat/Testwork/", + "Behat\\Transformation\\": "src/Behat/Transformation/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "ISC" + "MIT" ], "authors": [ { - "name": "Felix Becker", - "email": "felix.b@outlook.com" + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" } ], - "description": "PHP classes for the Language Server Protocol", + "description": "Scenario-oriented BDD framework for PHP", + "homepage": "https://behat.org/", "keywords": [ - "language", - "microsoft", - "php", - "server" + "Agile", + "BDD", + "ScenarioBDD", + "Scrum", + "StoryBDD", + "User story", + "business", + "development", + "documentation", + "examples", + "symfony", + "testing" ], "support": { - "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", - "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.3" + "issues": "https://github.com/Behat/Behat/issues", + "source": "https://github.com/Behat/Behat/tree/v3.23.0" }, - "time": "2024-04-30T00:40:11+00:00" + "time": "2025-07-15T16:58:54+00:00" }, { - "name": "kelunik/certificate", - "version": "v1.1.3", + "name": "behat/gherkin", + "version": "v4.14.0", "source": { "type": "git", - "url": "https://github.com/kelunik/certificate.git", - "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e" + "url": "https://github.com/Behat/Gherkin.git", + "reference": "34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kelunik/certificate/zipball/7e00d498c264d5eb4f78c69f41c8bd6719c0199e", - "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e", + "url": "https://api.github.com/repos/Behat/Gherkin/zipball/34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4", + "reference": "34c9b59c59355a7b4c53b9f041c8dbd1c8acc3b4", "shasum": "" }, "require": { - "ext-openssl": "*", - "php": ">=7.0" + "composer-runtime-api": "^2.2", + "php": "8.1.* || 8.2.* || 8.3.* || 8.4.*" }, "require-dev": { - "amphp/php-cs-fixer-config": "^2", - "phpunit/phpunit": "^6 | 7 | ^8 | ^9" + "cucumber/gherkin-monorepo": "dev-gherkin-v32.1.1", + "friendsofphp/php-cs-fixer": "^3.65", + "mikey179/vfsstream": "^1.6", + "phpstan/extension-installer": "^1", + "phpstan/phpstan": "^2", + "phpstan/phpstan-phpunit": "^2", + "phpunit/phpunit": "^10.5", + "symfony/yaml": "^5.4 || ^6.4 || ^7.0" + }, + "suggest": { + "symfony/yaml": "If you want to parse features, represented in YAML files" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "4.x-dev" } }, "autoload": { "psr-4": { - "Kelunik\\Certificate\\": "src" + "Behat\\Gherkin\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3880,65 +2623,61 @@ ], "authors": [ { - "name": "Niklas Keller", - "email": "me@kelunik.com" + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "https://everzet.com" } ], - "description": "Access certificate details and transform between different formats.", + "description": "Gherkin DSL parser for PHP", + "homepage": "https://behat.org/", "keywords": [ - "DER", - "certificate", - "certificates", - "openssl", - "pem", - "x509" + "BDD", + "Behat", + "Cucumber", + "DSL", + "gherkin", + "parser" ], "support": { - "issues": "https://github.com/kelunik/certificate/issues", - "source": "https://github.com/kelunik/certificate/tree/v1.1.3" + "issues": "https://github.com/Behat/Gherkin/issues", + "source": "https://github.com/Behat/Gherkin/tree/v4.14.0" }, - "time": "2023-02-03T21:26:53+00:00" + "time": "2025-05-23T15:06:40+00:00" }, { - "name": "league/uri", - "version": "7.5.1", + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v1.1.2", "source": { "type": "git", - "url": "https://github.com/thephpleague/uri.git", - "reference": "81fb5145d2644324614cc532b28efd0215bda430" + "url": "https://github.com/PHPCSStandards/composer-installer.git", + "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430", - "reference": "81fb5145d2644324614cc532b28efd0215bda430", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1", + "reference": "e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1", "shasum": "" }, "require": { - "league/uri-interfaces": "^7.5", - "php": "^8.1" - }, - "conflict": { - "league/uri-schemes": "^1.0" + "composer-plugin-api": "^2.2", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" }, - "suggest": { - "ext-bcmath": "to improve IPV4 host parsing", - "ext-fileinfo": "to create Data URI from file contennts", - "ext-gmp": "to improve IPV4 host parsing", - "ext-intl": "to handle IDN host with the best performance", - "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain", - "league/uri-components": "Needed to easily manipulate URI objects components", - "php-64bit": "to improve IPV4 host parsing", - "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + "require-dev": { + "composer/composer": "^2.2", + "ext-json": "*", + "ext-zip": "*", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpcompatibility/php-compatibility": "^9.0", + "yoast/phpunit-polyfills": "^1.0" }, - "type": "library", + "type": "composer-plugin", "extra": { - "branch-alias": { - "dev-master": "7.x-dev" - } + "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, "autoload": { "psr-4": { - "League\\Uri\\": "" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3947,131 +2686,115 @@ ], "authors": [ { - "name": "Ignace Nyamagana Butera", - "email": "nyamsprod@gmail.com", - "homepage": "https://nyamsprod.com" + "name": "Franck Nijhof", + "email": "opensource@frenck.dev", + "homepage": "https://frenck.dev", + "role": "Open source developer" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" } ], - "description": "URI manipulation library", - "homepage": "https://uri.thephpleague.com", + "description": "PHP_CodeSniffer Standards Composer Installer Plugin", "keywords": [ - "data-uri", - "file-uri", - "ftp", - "hostname", - "http", - "https", - "middleware", - "parse_str", - "parse_url", - "psr-7", - "query-string", - "querystring", - "rfc3986", - "rfc3987", - "rfc6570", - "uri", - "uri-template", - "url", - "ws" + "PHPCodeSniffer", + "PHP_CodeSniffer", + "code quality", + "codesniffer", + "composer", + "installer", + "phpcbf", + "phpcs", + "plugin", + "qa", + "quality", + "standard", + "standards", + "style guide", + "stylecheck", + "tests" ], "support": { - "docs": "https://uri.thephpleague.com", - "forum": "https://thephpleague.slack.com", - "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri/tree/7.5.1" + "issues": "https://github.com/PHPCSStandards/composer-installer/issues", + "security": "https://github.com/PHPCSStandards/composer-installer/security/policy", + "source": "https://github.com/PHPCSStandards/composer-installer" }, "funding": [ { - "url": "https://github.com/sponsors/nyamsprod", + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcsstandards", + "type": "thanks_dev" } ], - "time": "2024-12-08T08:40:02+00:00" + "time": "2025-07-17T20:45:56+00:00" }, { - "name": "league/uri-interfaces", - "version": "7.5.0", + "name": "doctrine/coding-standard", + "version": "13.0.1", "source": { "type": "git", - "url": "https://github.com/thephpleague/uri-interfaces.git", - "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742" + "url": "https://github.com/doctrine/coding-standard.git", + "reference": "0affd62169186f32de725ca612e6129e81186a21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", - "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", + "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/0affd62169186f32de725ca612e6129e81186a21", + "reference": "0affd62169186f32de725ca612e6129e81186a21", "shasum": "" }, "require": { - "ext-filter": "*", - "php": "^8.1", - "psr/http-factory": "^1", - "psr/http-message": "^1.1 || ^2.0" - }, - "suggest": { - "ext-bcmath": "to improve IPV4 host parsing", - "ext-gmp": "to improve IPV4 host parsing", - "ext-intl": "to handle IDN host with the best performance", - "php-64bit": "to improve IPV4 host parsing", - "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "7.x-dev" - } - }, - "autoload": { - "psr-4": { - "League\\Uri\\": "" - } + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0.0", + "php": "^7.4 || ^8.0", + "slevomat/coding-standard": "^8.16", + "squizlabs/php_codesniffer": "^3.7" }, + "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { - "name": "Ignace Nyamagana Butera", - "email": "nyamsprod@gmail.com", - "homepage": "https://nyamsprod.com" + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Steve Müller", + "email": "st.mueller@dzh-online.de" } ], - "description": "Common interfaces and classes for URI representation and interaction", - "homepage": "https://uri.thephpleague.com", + "description": "The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.", + "homepage": "https://www.doctrine-project.org/projects/coding-standard.html", "keywords": [ - "data-uri", - "file-uri", - "ftp", - "hostname", - "http", - "https", - "parse_str", - "parse_url", - "psr-7", - "query-string", - "querystring", - "rfc3986", - "rfc3987", - "rfc6570", - "uri", - "url", - "ws" + "checks", + "code", + "coding", + "cs", + "dev", + "doctrine", + "rules", + "sniffer", + "sniffs", + "standard", + "style" ], "support": { - "docs": "https://uri.thephpleague.com", - "forum": "https://thephpleague.slack.com", - "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri-interfaces/tree/7.5.0" + "issues": "https://github.com/doctrine/coding-standard/issues", + "source": "https://github.com/doctrine/coding-standard/tree/13.0.1" }, - "funding": [ - { - "url": "https://github.com/sponsors/nyamsprod", - "type": "github" - } - ], - "time": "2024-12-08T08:18:47+00:00" + "time": "2025-05-14T10:54:19+00:00" }, { "name": "myclabs/deep-copy", @@ -4133,57 +2856,6 @@ ], "time": "2025-08-01T08:46:24+00:00" }, - { - "name": "netresearch/jsonmapper", - "version": "v5.0.0", - "source": { - "type": "git", - "url": "https://github.com/cweiske/jsonmapper.git", - "reference": "8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c", - "reference": "8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "~7.5 || ~8.0 || ~9.0 || ~10.0", - "squizlabs/php_codesniffer": "~3.5" - }, - "type": "library", - "autoload": { - "psr-0": { - "JsonMapper": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "OSL-3.0" - ], - "authors": [ - { - "name": "Christian Weiske", - "email": "cweiske@cweiske.de", - "homepage": "http://github.com/cweiske/jsonmapper/", - "role": "Developer" - } - ], - "description": "Map nested JSON structures onto PHP classes", - "support": { - "email": "cweiske@cweiske.de", - "issues": "https://github.com/cweiske/jsonmapper/issues", - "source": "https://github.com/cweiske/jsonmapper/tree/v5.0.0" - }, - "time": "2024-09-08T10:20:00+00:00" - }, { "name": "nikic/php-parser", "version": "v5.6.1", @@ -4356,184 +3028,9 @@ "description": "Library for handling version information and constraints", "support": { "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+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.6.3", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "94f8051919d1b0369a6bcc7931d679a511c03fe9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94f8051919d1b0369a6bcc7931d679a511c03fe9", - "reference": "94f8051919d1b0369a6bcc7931d679a511c03fe9", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.1", - "ext-filter": "*", - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7|^2.0", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.5 || ~1.6.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-mockery": "^1.1", - "phpstan/phpstan-webmozart-assert": "^1.2", - "phpunit/phpunit": "^9.5", - "psalm/phar": "^5.26" - }, - "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": "opensource@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.6.3" - }, - "time": "2025-08-01T19:43:32+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a", - "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.3 || ^8.0", - "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.18|^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpunit/phpunit": "^9.5", - "rector/rector": "^0.13.9", - "vimeo/psalm": "^4.25" - }, - "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.10.0" + "source": "https://github.com/phar-io/version/tree/3.2.1" }, - "time": "2024-11-09T15:12:26+00:00" + "time": "2022-02-21T01:04:05+00:00" }, { "name": "phpstan/phpdoc-parser", @@ -4582,6 +3079,64 @@ }, "time": "2025-08-30T15:50:23+00:00" }, + { + "name": "phpstan/phpstan", + "version": "2.1.29", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-phar-composer-source.git", + "reference": "git" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d618573eed4a1b6b75e37b2e0b65ac65c885d88e", + "reference": "d618573eed4a1b6b75e37b2e0b65ac65c885d88e", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2025-09-25T06:58:18+00:00" + }, { "name": "phpunit/php-code-coverage", "version": "10.1.16", @@ -4905,350 +3460,112 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.48", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6e0a2bc39f6fae7617989d690d76c48e6d2eb541", - "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.13.3", - "phar-io/manifest": "^2.0.4", - "phar-io/version": "^3.2.1", - "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.16", - "phpunit/php-file-iterator": "^4.1.0", - "phpunit/php-invoker": "^4.0.0", - "phpunit/php-text-template": "^3.0.1", - "phpunit/php-timer": "^6.0.0", - "sebastian/cli-parser": "^2.0.1", - "sebastian/code-unit": "^2.0.0", - "sebastian/comparator": "^5.0.3", - "sebastian/diff": "^5.1.1", - "sebastian/environment": "^6.1.0", - "sebastian/exporter": "^5.1.2", - "sebastian/global-state": "^6.0.2", - "sebastian/object-enumerator": "^5.0.0", - "sebastian/recursion-context": "^5.0.0", - "sebastian/type": "^4.0.0", - "sebastian/version": "^4.0.1" - }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "10.5-dev" - } - }, - "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.48" - }, - "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - }, - { - "url": "https://liberapay.com/sebastianbergmann", - "type": "liberapay" - }, - { - "url": "https://thanks.dev/u/gh/sebastianbergmann", - "type": "thanks_dev" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" - } - ], - "time": "2025-07-11T04:07:17+00:00" - }, - { - "name": "psalm/plugin-phpunit", - "version": "0.19.5", - "source": { - "type": "git", - "url": "https://github.com/psalm/psalm-plugin-phpunit.git", - "reference": "143f9d5e049fffcdbc0da3fbb99f6149f9d3e2dc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/143f9d5e049fffcdbc0da3fbb99f6149f9d3e2dc", - "reference": "143f9d5e049fffcdbc0da3fbb99f6149f9d3e2dc", - "shasum": "" - }, - "require": { - "ext-simplexml": "*", - "php": ">=8.1", - "vimeo/psalm": "dev-master || ^6.10.0" - }, - "conflict": { - "phpspec/prophecy": "<1.20.0", - "phpspec/prophecy-phpunit": "<2.3.0", - "phpunit/phpunit": "<8.5.1" - }, - "require-dev": { - "php": "^7.3 || ^8.0", - "phpunit/phpunit": "^10.0 || ^11.0 || ^12.0", - "squizlabs/php_codesniffer": "^3.3.1", - "weirdan/prophecy-shim": "^1.0 || ^2.0" - }, - "type": "psalm-plugin", - "extra": { - "psalm": { - "pluginClass": "Psalm\\PhpUnitPlugin\\Plugin" - } - }, - "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/0.19.5" - }, - "time": "2025-03-31T18:49:55+00:00" - }, - { - "name": "psr/http-factory", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-factory.git", - "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", - "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", - "shasum": "" - }, - "require": { - "php": ">=7.1", - "psr/http-message": "^1.0 || ^2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", - "keywords": [ - "factory", - "http", - "message", - "psr", - "psr-17", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-factory" - }, - "time": "2024-04-15T12:06:14+00:00" - }, - { - "name": "psr/http-message", - "version": "2.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/http-message.git", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Http\\Message\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for HTTP messages", - "homepage": "https://github.com/php-fig/http-message", - "keywords": [ - "http", - "http-message", - "psr", - "psr-7", - "request", - "response" - ], - "support": { - "source": "https://github.com/php-fig/http-message/tree/2.0" - }, - "time": "2023-04-04T09:54:51+00:00" - }, - { - "name": "revolt/event-loop", - "version": "v1.0.7", + "version": "10.5.48", "source": { "type": "git", - "url": "https://github.com/revoltphp/event-loop.git", - "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/revoltphp/event-loop/zipball/09bf1bf7f7f574453efe43044b06fafe12216eb3", - "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6e0a2bc39f6fae7617989d690d76c48e6d2eb541", + "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541", "shasum": "" }, "require": { - "php": ">=8.1" - }, - "require-dev": { + "ext-dom": "*", "ext-json": "*", - "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^9", - "psalm/phar": "^5.15" + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.3", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.3", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-main": "1.x-dev" + "dev-main": "10.5-dev" } }, "autoload": { - "psr-4": { - "Revolt\\": "src" - } + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Aaron Piotrowski", - "email": "aaron@trowski.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.48" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" }, { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com" + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" }, { - "name": "Christian Lück", - "email": "christian@clue.engineering" + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" }, { - "name": "Niklas Keller", - "email": "me@kelunik.com" + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "description": "Rock-solid event loop for concurrent PHP applications.", - "keywords": [ - "async", - "asynchronous", - "concurrency", - "event", - "event-loop", - "non-blocking", - "scheduler" - ], - "support": { - "issues": "https://github.com/revoltphp/event-loop/issues", - "source": "https://github.com/revoltphp/event-loop/tree/v1.0.7" - }, - "time": "2025-01-25T19:27:39+00:00" + "time": "2025-07-11T04:07:17+00:00" }, { "name": "sebastian/cli-parser", @@ -6231,74 +4548,6 @@ ], "time": "2025-07-26T15:35:10+00:00" }, - { - "name": "spatie/array-to-xml", - "version": "3.4.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/array-to-xml.git", - "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67", - "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "php": "^8.0" - }, - "require-dev": { - "mockery/mockery": "^1.2", - "pestphp/pest": "^1.21", - "spatie/pest-plugin-snapshots": "^1.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Spatie\\ArrayToXml\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://freek.dev", - "role": "Developer" - } - ], - "description": "Convert an array to xml", - "homepage": "https://github.com/spatie/array-to-xml", - "keywords": [ - "array", - "convert", - "xml" - ], - "support": { - "source": "https://github.com/spatie/array-to-xml/tree/3.4.0" - }, - "funding": [ - { - "url": "https://spatie.be/open-source/support-us", - "type": "custom" - }, - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2024-12-16T12:45:15+00:00" - }, { "name": "squizlabs/php_codesniffer", "version": "3.13.2", @@ -6547,86 +4796,6 @@ ], "time": "2025-07-30T17:30:48+00:00" }, - { - "name": "symfony/polyfill-php84", - "version": "v1.33.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php84\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-06-24T13:30:11+00:00" - }, { "name": "symfony/translation", "version": "v6.4.24", @@ -7010,124 +5179,6 @@ } ], "time": "2024-03-03T12:36:25+00:00" - }, - { - "name": "vimeo/psalm", - "version": "6.13.1", - "source": { - "type": "git", - "url": "https://github.com/vimeo/psalm.git", - "reference": "1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51", - "reference": "1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51", - "shasum": "" - }, - "require": { - "amphp/amp": "^3", - "amphp/byte-stream": "^2", - "amphp/parallel": "^2.3", - "composer-runtime-api": "^2", - "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^2.0 || ^3.0", - "danog/advanced-json-rpc": "^3.1", - "dnoegel/php-xdg-base-dir": "^0.1.1", - "ext-ctype": "*", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-simplexml": "*", - "ext-tokenizer": "*", - "felixfbecker/language-server-protocol": "^1.5.3", - "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0", - "netresearch/jsonmapper": "^5.0", - "nikic/php-parser": "^5.0.0", - "php": "~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3", - "sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0", - "spatie/array-to-xml": "^2.17.0 || ^3.0", - "symfony/console": "^6.0 || ^7.0", - "symfony/filesystem": "~6.3.12 || ~6.4.3 || ^7.0.3", - "symfony/polyfill-php84": "^1.31.0" - }, - "provide": { - "psalm/psalm": "self.version" - }, - "require-dev": { - "amphp/phpunit-util": "^3", - "bamarni/composer-bin-plugin": "^1.4", - "brianium/paratest": "^6.9", - "danog/class-finder": "^0.4.8", - "dg/bypass-finals": "^1.5", - "ext-curl": "*", - "mockery/mockery": "^1.5", - "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", - "slevomat/coding-standard": "^8.4", - "squizlabs/php_codesniffer": "^3.6", - "symfony/process": "^6.0 || ^7.0" - }, - "suggest": { - "ext-curl": "In order to send data to shepherd", - "ext-igbinary": "^2.0.5 is required, used to serialize caching data" - }, - "bin": [ - "psalm", - "psalm-language-server", - "psalm-plugin", - "psalm-refactor", - "psalm-review", - "psalter" - ], - "type": "project", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev", - "dev-2.x": "2.x-dev", - "dev-3.x": "3.x-dev", - "dev-4.x": "4.x-dev", - "dev-5.x": "5.x-dev", - "dev-6.x": "6.x-dev", - "dev-master": "7.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psalm\\": "src/Psalm/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Matthew Brown" - }, - { - "name": "Daniil Gentili", - "email": "daniil@daniil.it" - } - ], - "description": "A static analysis tool for finding errors in PHP applications", - "keywords": [ - "code", - "inspection", - "php", - "static analysis" - ], - "support": { - "docs": "https://psalm.dev/docs", - "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm" - }, - "time": "2025-08-06T10:10:28+00:00" } ], "aliases": [], diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..095932dd --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,7 @@ +parameters: + level: 10 + paths: + - src + - test/unit + - test/integration + - test/behaviour diff --git a/psalm.xml.dist b/psalm.xml.dist deleted file mode 100644 index aaafabfc..00000000 --- a/psalm.xml.dist +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Building/UnixBuild.php b/src/Building/UnixBuild.php index 7ad4926f..8de37d9f 100644 --- a/src/Building/UnixBuild.php +++ b/src/Building/UnixBuild.php @@ -40,7 +40,6 @@ public function __invoke( ): BinaryFile { $outputCallback = null; if ($output->isVerbose()) { - /** @var callable(SymfonyProcess::ERR|SymfonyProcess::OUT, string):void $outputCallback */ $outputCallback = static function (string $type, string $outputMessage) use ($output): void { $output->write(sprintf( '%s%s%s', diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index e1c91d6e..086e5ba1 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -61,7 +61,6 @@ final class CommandHelper private const OPTION_SKIP_ENABLE_EXTENSION = 'skip-enable-extension'; private const OPTION_FORCE = 'force'; - /** @psalm-suppress UnusedConstructor */ private function __construct() { } @@ -227,7 +226,6 @@ public static function determinePhpizePathFromInputs(InputInterface $input): Php if ($input->hasOption(self::OPTION_WITH_PHPIZE_PATH)) { $phpizePathOption = (string) $input->getOption(self::OPTION_WITH_PHPIZE_PATH); if (trim($phpizePathOption) !== '') { - /** @psalm-suppress ArgumentTypeCoercion */ return new PhpizePath($phpizePathOption); } } @@ -328,7 +326,6 @@ public static function listRepositories(Composer $composer, OutputInterface $out } if ($repo instanceof VcsRepository) { - /** @psalm-suppress InternalMethod */ $output->writeln(sprintf( ' - VCS Repository (%s)', $repo->getDriver()?->getUrl() ?? 'no url?', diff --git a/src/Command/InstallExtensionsForProjectCommand.php b/src/Command/InstallExtensionsForProjectCommand.php index c84f258a..3db5add5 100644 --- a/src/Command/InstallExtensionsForProjectCommand.php +++ b/src/Command/InstallExtensionsForProjectCommand.php @@ -312,10 +312,6 @@ static function (array $match): string { $restoreWorkingDir(); - /** - * @psalm-suppress TypeDoesNotContainType - * @psalm-suppress RedundantCondition - */ return $anyErrorsHappened ? self::FAILURE : self::SUCCESS; } } diff --git a/src/Command/RepositoryAddCommand.php b/src/Command/RepositoryAddCommand.php index 57e60be6..3deb6ae0 100644 --- a/src/Command/RepositoryAddCommand.php +++ b/src/Command/RepositoryAddCommand.php @@ -59,7 +59,6 @@ public function execute(InputInterface $input, OutputInterface $output): int $pieJsonEditor = PieJsonEditor::fromTargetPlatform($targetPlatform); $type = (string) $input->getArgument(self::ARG_TYPE); - /** @psalm-var 'vcs'|'path'|'composer' $type */ Assert::inArray($type, self::ALLOWED_TYPES); $url = $originalUrl = (string) $input->getArgument(self::ARG_URL); diff --git a/src/Command/ShowCommand.php b/src/Command/ShowCommand.php index 341baf17..9eea8032 100644 --- a/src/Command/ShowCommand.php +++ b/src/Command/ShowCommand.php @@ -36,7 +36,7 @@ use const DIRECTORY_SEPARATOR; -/** @psalm-import-type PieMetadata from PieInstalledJsonMetadataKeys */ +/** @phpstan-import-type PieMetadata from PieInstalledJsonMetadataKeys */ #[AsCommand( name: 'show', description: 'List the installed modules and their versions.', @@ -182,7 +182,7 @@ function (string $version, string $phpExtensionName) use ($composer, $rootPackag /** * @param PieMetadata $installedJsonMetadata - * @psalm-param '.dll'|'.so' $extensionEnding + * @phpstan-param '.dll'|'.so' $extensionEnding */ private static function verifyChecksumInformation( string $extensionPath, diff --git a/src/ComposerIntegration/ComposerIntegrationHandler.php b/src/ComposerIntegration/ComposerIntegrationHandler.php index aabf702a..1f4b2dfb 100644 --- a/src/ComposerIntegration/ComposerIntegrationHandler.php +++ b/src/ComposerIntegration/ComposerIntegrationHandler.php @@ -18,7 +18,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class ComposerIntegrationHandler { - /** @psalm-api */ public function __construct( private readonly ContainerInterface $container, private readonly QuieterConsoleIO $arrayCollectionIo, diff --git a/src/ComposerIntegration/InstallAndBuildProcess.php b/src/ComposerIntegration/InstallAndBuildProcess.php index 39e62fee..a616e77f 100644 --- a/src/ComposerIntegration/InstallAndBuildProcess.php +++ b/src/ComposerIntegration/InstallAndBuildProcess.php @@ -16,7 +16,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class InstallAndBuildProcess { - /** @psalm-suppress PossiblyUnusedMethod no direct reference; used in service locator */ public function __construct( private readonly Build $pieBuild, private readonly Install $pieInstall, diff --git a/src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php b/src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php index fc8a6cdc..a3a57319 100644 --- a/src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php +++ b/src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php @@ -51,7 +51,6 @@ public static function selfRegister( public function __invoke(InstallerEvent $installerEvent): void { - /** @psalm-suppress InternalMethod */ $operations = $installerEvent->getTransaction()?->getOperations() ?? []; array_walk( diff --git a/src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php b/src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php index 905a276f..a364888f 100644 --- a/src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php +++ b/src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php @@ -39,10 +39,6 @@ public static function selfRegister( ); } - /** - * @psalm-suppress InternalProperty - * @psalm-suppress InternalMethod - */ public function __invoke(InstallerEvent $installerEvent): void { $pieOutput = $this->composerRequest->pieOutput; @@ -80,7 +76,6 @@ function (OperationInterface $operation) use ($pieOutput): bool { $overrideOperations = Closure::Bind( static function (Transaction $transaction) use ($newOperations): void { - /** @psalm-suppress InaccessibleProperty */ $transaction->operations = $newOperations; }, null, diff --git a/src/ComposerIntegration/PieComposerInstaller.php b/src/ComposerIntegration/PieComposerInstaller.php index 1334e18b..0e1df409 100644 --- a/src/ComposerIntegration/PieComposerInstaller.php +++ b/src/ComposerIntegration/PieComposerInstaller.php @@ -15,8 +15,6 @@ /** * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks - * - * @psalm-suppress PropertyNotSetInConstructor Property $fixedRootPackage is defined in parent */ class PieComposerInstaller extends Installer { @@ -39,7 +37,6 @@ public static function createWithPhpBinary( IOInterface $io, Composer $composer, ): self { - /** @psalm-suppress InvalidArgument some kind of unrelated type mismatch, defined in parent */ $composerInstaller = new self( $io, $composer->getConfig(), diff --git a/src/ComposerIntegration/PieInstalledJsonMetadataKeys.php b/src/ComposerIntegration/PieInstalledJsonMetadataKeys.php index 048bc948..e93210f8 100644 --- a/src/ComposerIntegration/PieInstalledJsonMetadataKeys.php +++ b/src/ComposerIntegration/PieInstalledJsonMetadataKeys.php @@ -13,7 +13,7 @@ /** * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks * - * @psalm-type PieMetadata = array{ + * @phpstan-type PieMetadata = array{ * pie-target-platform-php-path?: non-empty-string, * pie-target-platform-php-config-path?: non-empty-string, * pie-target-platform-php-version?: non-empty-string, diff --git a/src/ComposerIntegration/QuieterConsoleIO.php b/src/ComposerIntegration/QuieterConsoleIO.php index df191295..1e1768bb 100644 --- a/src/ComposerIntegration/QuieterConsoleIO.php +++ b/src/ComposerIntegration/QuieterConsoleIO.php @@ -42,7 +42,6 @@ private function overrideVerbosityMap(array $newVerbosityMap): void { $overrideFunction = Closure::bind( function (ConsoleIO $consoleIO) use ($newVerbosityMap): void { - /** @psalm-suppress InaccessibleProperty */ $consoleIO->verbosityMap = $newVerbosityMap; }, null, diff --git a/src/ComposerIntegration/UninstallProcess.php b/src/ComposerIntegration/UninstallProcess.php index 6f4d747a..c461928c 100644 --- a/src/ComposerIntegration/UninstallProcess.php +++ b/src/ComposerIntegration/UninstallProcess.php @@ -18,7 +18,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class UninstallProcess { - /** @psalm-suppress PossiblyUnusedMethod no direct reference; used in service locator */ public function __construct( private readonly RemoveIniEntry $removeIniEntry, private readonly Uninstall $uninstall, diff --git a/src/ComposerIntegration/VersionSelectorFactory.php b/src/ComposerIntegration/VersionSelectorFactory.php index 5d9c56a4..a103f293 100644 --- a/src/ComposerIntegration/VersionSelectorFactory.php +++ b/src/ComposerIntegration/VersionSelectorFactory.php @@ -16,7 +16,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ final class VersionSelectorFactory { - /** @psalm-suppress UnusedConstructor */ private function __construct() { } diff --git a/src/DependencyResolver/DetermineMinimumStability.php b/src/DependencyResolver/DetermineMinimumStability.php index 30e41619..364154f4 100644 --- a/src/DependencyResolver/DetermineMinimumStability.php +++ b/src/DependencyResolver/DetermineMinimumStability.php @@ -23,7 +23,7 @@ final class DetermineMinimumStability private const DEFAULT_MINIMUM_STABILITY = self::STABILITY_STABLE; - /** @psalm-assert self::STABILITY_* $stability */ + /** @phpstan-assert self::STABILITY_* $stability */ private static function assertValidStabilityString(string $stability): void { Assert::oneOf( diff --git a/src/DependencyResolver/Package.php b/src/DependencyResolver/Package.php index 692a2009..13111a35 100644 --- a/src/DependencyResolver/Package.php +++ b/src/DependencyResolver/Package.php @@ -27,8 +27,6 @@ * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks * * @immutable - * - * @psalm-suppress PropertyNotSetInConstructor */ final class Package { diff --git a/src/Downloading/GithubPackageReleaseAssets.php b/src/Downloading/GithubPackageReleaseAssets.php index 5b10942e..c7ab6055 100644 --- a/src/Downloading/GithubPackageReleaseAssets.php +++ b/src/Downloading/GithubPackageReleaseAssets.php @@ -18,7 +18,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ final class GithubPackageReleaseAssets implements PackageReleaseAssets { - /** @psalm-api */ public function __construct( private readonly string $githubApiBaseUrl, ) { diff --git a/src/ExtensionName.php b/src/ExtensionName.php index 5d58d929..76fb39c7 100644 --- a/src/ExtensionName.php +++ b/src/ExtensionName.php @@ -49,7 +49,7 @@ private function __construct(string $normalisedExtensionName) $this->normalisedExtensionName = $normalisedExtensionName; } - /** @psalm-assert-if-true non-empty-string $extensionName */ + /** @phpstan-assert-if-true non-empty-string $extensionName */ public static function isValidExtensionName(string $extensionName): bool { return preg_match(self::VALID_PACKAGE_NAME_REGEX, $extensionName) >= 1; @@ -59,7 +59,6 @@ public static function determineFromComposerPackage(PackageInterface $package): { $phpExt = $package->getPhpExt(); - /** @psalm-suppress DocblockTypeContradiction just in case runtime type is not correct */ if ( $phpExt === null || ! array_key_exists('extension-name', $phpExt) diff --git a/src/File/FailedToCreateFile.php b/src/File/FailedToCreateFile.php index 651f6fea..b788456a 100644 --- a/src/File/FailedToCreateFile.php +++ b/src/File/FailedToCreateFile.php @@ -12,7 +12,7 @@ use function implode; use function sprintf; -/** @psalm-import-type CapturedErrorList from CaptureErrors */ +/** @phpstan-import-type CapturedErrorList from CaptureErrors */ class FailedToCreateFile extends RuntimeException { /** @param CapturedErrorList $recorded */ diff --git a/src/File/FailedToUnlinkFile.php b/src/File/FailedToUnlinkFile.php index 745ac02f..bc9ccf0c 100644 --- a/src/File/FailedToUnlinkFile.php +++ b/src/File/FailedToUnlinkFile.php @@ -12,7 +12,7 @@ use function implode; use function sprintf; -/** @psalm-import-type CapturedErrorList from CaptureErrors */ +/** @phpstan-import-type CapturedErrorList from CaptureErrors */ class FailedToUnlinkFile extends RuntimeException { /** @param CapturedErrorList $recorded */ diff --git a/src/File/FailedToWriteFile.php b/src/File/FailedToWriteFile.php index 134a5cb2..b7716e04 100644 --- a/src/File/FailedToWriteFile.php +++ b/src/File/FailedToWriteFile.php @@ -11,7 +11,7 @@ use function implode; use function sprintf; -/** @psalm-import-type CapturedErrorList from CaptureErrors */ +/** @import-type CapturedErrorList from CaptureErrors */ class FailedToWriteFile extends RuntimeException { /** @param CapturedErrorList $recorded */ diff --git a/src/File/FullPathToSelf.php b/src/File/FullPathToSelf.php index 01a6e1e0..f0fa3df6 100644 --- a/src/File/FullPathToSelf.php +++ b/src/File/FullPathToSelf.php @@ -16,7 +16,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class FullPathToSelf { - /** @psalm-suppress PossiblyUnusedMethod no direct reference; used in service locator */ public function __construct(private readonly string $originalCwd) { } @@ -24,7 +23,6 @@ public function __construct(private readonly string $originalCwd) /** @return non-empty-string */ public function __invoke(): string { - /** @psalm-suppress TypeDoesNotContainType */ $phpSelf = array_key_exists('PHP_SELF', $_SERVER) && is_string($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : ''; if ($phpSelf === '') { throw new RuntimeException('Could not find PHP_SELF'); diff --git a/src/Installing/InstallForPhpProject/FindMatchingPackages.php b/src/Installing/InstallForPhpProject/FindMatchingPackages.php index 25780e6d..358d9e61 100644 --- a/src/Installing/InstallForPhpProject/FindMatchingPackages.php +++ b/src/Installing/InstallForPhpProject/FindMatchingPackages.php @@ -20,7 +20,7 @@ /** * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks * - * @psalm-type MatchingPackages = list + * @phpstan-type MatchingPackages = list */ class FindMatchingPackages { diff --git a/src/Installing/InstallForPhpProject/InstallPiePackageFromPath.php b/src/Installing/InstallForPhpProject/InstallPiePackageFromPath.php index 73ccf367..209da08d 100644 --- a/src/Installing/InstallForPhpProject/InstallPiePackageFromPath.php +++ b/src/Installing/InstallForPhpProject/InstallPiePackageFromPath.php @@ -16,7 +16,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class InstallPiePackageFromPath { - /** @psalm-suppress PossiblyUnusedMethod no direct reference; used in service locator */ public function __construct(private readonly InvokeSubCommand $invokeSubCommand) { } diff --git a/src/Installing/SetupIniFile.php b/src/Installing/SetupIniFile.php index ed053c2a..d7978a51 100644 --- a/src/Installing/SetupIniFile.php +++ b/src/Installing/SetupIniFile.php @@ -17,7 +17,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class SetupIniFile { - /** @psalm-suppress PossiblyUnusedMethod no direct reference; used in service locator */ public function __construct(private readonly SetupIniApproach $setupIniApproach) { } diff --git a/src/Platform.php b/src/Platform.php index 4f80ce80..5ef0f6fc 100644 --- a/src/Platform.php +++ b/src/Platform.php @@ -36,7 +36,6 @@ public static function isInteractive(): bool private static function useXdg(): bool { foreach (array_keys($_SERVER) as $key) { - /** @psalm-suppress RedundantCastGivenDocblockType */ if (strpos((string) $key, 'XDG_') === 0) { return true; } diff --git a/src/Platform/InstalledPiePackages.php b/src/Platform/InstalledPiePackages.php index c3f8e082..3473d6b2 100644 --- a/src/Platform/InstalledPiePackages.php +++ b/src/Platform/InstalledPiePackages.php @@ -16,7 +16,7 @@ /** * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks * - * @psalm-type ListOfPiePackages = array + * @phpstan-type ListOfPiePackages = array */ class InstalledPiePackages { diff --git a/src/Platform/PrePackagedSourceAssetName.php b/src/Platform/PrePackagedSourceAssetName.php index f3dc56ef..887fce78 100644 --- a/src/Platform/PrePackagedSourceAssetName.php +++ b/src/Platform/PrePackagedSourceAssetName.php @@ -12,7 +12,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ final class PrePackagedSourceAssetName { - /** @psalm-suppress UnusedConstructor */ private function __construct() { } diff --git a/src/Platform/WindowsExtensionAssetName.php b/src/Platform/WindowsExtensionAssetName.php index 9fe38f7f..5e836df3 100644 --- a/src/Platform/WindowsExtensionAssetName.php +++ b/src/Platform/WindowsExtensionAssetName.php @@ -17,7 +17,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ final class WindowsExtensionAssetName { - /** @psalm-suppress UnusedConstructor */ private function __construct() { } diff --git a/src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php b/src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php index 4c7ef9f4..e1691070 100644 --- a/src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php +++ b/src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php @@ -170,7 +170,6 @@ private function assertCertificateSignedByTrustedRoot(Attestation $attestation): // Finally, verify that the located CA cert was used to sign the attestation certificate if (openssl_x509_verify($attestation->certificate, $caCertificateString) !== 1) { - /** @psalm-suppress MixedArgument */ throw FailedToVerifyRelease::fromIssuerCertificateVerificationFailed($attestationCertificateInfo['issuer']); } @@ -182,8 +181,6 @@ private function assertCertificateSignedByTrustedRoot(Attestation $attestation): /** * If we got here, we skipped all the certificates in the trusted root collection for various reasons; so we * therefore cannot trust the attestation certificate. - * - * @psalm-suppress MixedArgument */ throw FailedToVerifyRelease::fromNoIssuerCertificateInTrustedRoot($attestationCertificateInfo['issuer']); } diff --git a/src/Util/CaptureErrors.php b/src/Util/CaptureErrors.php index 4d706a48..2873d8b8 100644 --- a/src/Util/CaptureErrors.php +++ b/src/Util/CaptureErrors.php @@ -10,7 +10,7 @@ /** * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks * - * @psalm-type CapturedErrorList = list + * @phpstan-type CapturedErrorList = list */ final class CaptureErrors { diff --git a/src/Util/PieVersion.php b/src/Util/PieVersion.php index ab1585fd..90a3a72b 100644 --- a/src/Util/PieVersion.php +++ b/src/Util/PieVersion.php @@ -33,8 +33,6 @@ final class PieVersion public static function isPharBuild(): bool { - /** @psalm-suppress RedundantCondition */ - // phpcs:ignore Generic.Strings.UnnecessaryStringConcat.Found return self::PIE_VERSION !== '@pie_version' . '@'; } diff --git a/src/Util/Process.php b/src/Util/Process.php index 165108ad..342107d8 100644 --- a/src/Util/Process.php +++ b/src/Util/Process.php @@ -12,7 +12,6 @@ /** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ final class Process { - /** @psalm-suppress UnusedConstructor */ private function __construct() { } diff --git a/test/behaviour/CliContext.php b/test/behaviour/CliContext.php index f47fe2e6..f352fcb0 100644 --- a/test/behaviour/CliContext.php +++ b/test/behaviour/CliContext.php @@ -14,7 +14,6 @@ use function array_merge; -/** @psalm-api */ class CliContext implements Context { private const PHP_BINARY = 'php'; @@ -46,7 +45,7 @@ public function runPieCommand(array $command): void $this->exitCode = $proc->getExitCode(); } - /** @psalm-assert !null $this->output */ + /** @phpstan-assert !null $this->output */ private function assertCommandSuccessful(): void { Assert::same(0, $this->exitCode); diff --git a/test/unit/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListenerTest.php b/test/unit/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListenerTest.php index 859bdb9a..606ea133 100644 --- a/test/unit/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListenerTest.php +++ b/test/unit/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListenerTest.php @@ -91,10 +91,6 @@ public function testNonInstallOperationsAreIgnored(): void $composerPackage = new CompletePackage('foo/bar', '1.2.3.0', '1.2.3'); $composerPackage->setDistUrl('https://example.com/git-archive-zip-url'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, @@ -137,10 +133,6 @@ public function testNonCompletePackagesAreIgnored(): void $composerPackage = new Package('foo/bar', '1.2.3.0', '1.2.3'); $composerPackage->setDistUrl('https://example.com/git-archive-zip-url'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, @@ -183,10 +175,6 @@ public function testInstallOperationsForDifferentPackagesAreIgnored(): void $composerPackage = new CompletePackage('different/package', '1.2.3.0', '1.2.3'); $composerPackage->setDistUrl('https://example.com/git-archive-zip-url'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, @@ -229,10 +217,6 @@ public function testWindowsUrlInstallerDoesNotRunOnNonWindows(): void $composerPackage = new CompletePackage('foo/bar', '1.2.3.0', '1.2.3'); $composerPackage->setDistUrl('https://example.com/git-archive-zip-url'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, @@ -280,10 +264,6 @@ public function testDistUrlIsUpdatedForWindowsInstallers(): void $composerPackage = new CompletePackage('foo/bar', '1.2.3.0', '1.2.3'); $composerPackage->setDistUrl('https://example.com/git-archive-zip-url'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, @@ -343,10 +323,6 @@ public function testDistUrlIsUpdatedForPrePackagedTgzSource(): void 'download-url-method' => 'pre-packaged-source', ]); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, diff --git a/test/unit/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperationsTest.php b/test/unit/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperationsTest.php index f251c42a..2ca7205a 100644 --- a/test/unit/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperationsTest.php +++ b/test/unit/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperationsTest.php @@ -82,17 +82,12 @@ public function testEventListenerRegistration(): void ); } - /** @psalm-suppress InternalMethod */ public function testUnrelatedInstallOperationsAreRemoved(): void { $composerPackage1 = new CompletePackage('foo/bar', '1.2.3.0', '1.2.3'); $composerPackage2 = new CompletePackage('bat/baz', '3.4.5.0', '3.4.5'); $composerPackage3 = new CompletePackage('qux/quux', '5.6.7.0', '5.6.7'); - /** - * @psalm-suppress InternalClass - * @psalm-suppress InternalMethod - */ $installerEvent = new InstallerEvent( InstallerEvents::PRE_OPERATIONS_EXEC, $this->composer, diff --git a/test/unit/ComposerIntegration/VendorCleanupTest.php b/test/unit/ComposerIntegration/VendorCleanupTest.php index 19c82d09..556b629b 100644 --- a/test/unit/ComposerIntegration/VendorCleanupTest.php +++ b/test/unit/ComposerIntegration/VendorCleanupTest.php @@ -64,8 +64,6 @@ public function testInvalidVendorDirectory(): void /** * scandir will emit a warning in this case, causing phpunit to fail with warning - * - * @psalm-suppress InvalidArgument */ set_error_handler( static function (): bool|null { diff --git a/test/unit/ExtensionNameTest.php b/test/unit/ExtensionNameTest.php index 2fbf7e7b..5d525039 100644 --- a/test/unit/ExtensionNameTest.php +++ b/test/unit/ExtensionNameTest.php @@ -65,7 +65,6 @@ public function testFromComposerPackageWithPhpExtExtensionName(): void public function testFromComposerPackageWithInvalidPhpExtExtensionNameType(): void { $composerCompletePackage = new CompletePackage('vendor/foo', '1.2.3.0', '1.2.3'); - /** @psalm-suppress InvalidArgument - the type says otherwise, but in runtime, this might be possible in theory */ $composerCompletePackage->setPhpExt(['extension-name' => null]); self::assertSame('foo', ExtensionName::determineFromComposerPackage($composerCompletePackage)->name()); diff --git a/test/unit/Installing/Ini/AddExtensionToTheIniFileTest.php b/test/unit/Installing/Ini/AddExtensionToTheIniFileTest.php index 6c214eda..4fd0bdc8 100644 --- a/test/unit/Installing/Ini/AddExtensionToTheIniFileTest.php +++ b/test/unit/Installing/Ini/AddExtensionToTheIniFileTest.php @@ -156,10 +156,6 @@ public function testReturnsFalseWhenExtensionWasAddedButPhpRuntimeDidNotLoadExte $iniFile = tempnam(sys_get_temp_dir(), 'PIE_ini_file'); file_put_contents($iniFile, $originalIniContent); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); $this->mockPhpBinary diff --git a/test/unit/Installing/Ini/CheckAndAddExtensionToIniIfNeededTest.php b/test/unit/Installing/Ini/CheckAndAddExtensionToIniIfNeededTest.php index b7ae9a8b..69435e12 100644 --- a/test/unit/Installing/Ini/CheckAndAddExtensionToIniIfNeededTest.php +++ b/test/unit/Installing/Ini/CheckAndAddExtensionToIniIfNeededTest.php @@ -44,10 +44,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/Installing/Ini/DockerPhpExtEnableTest.php b/test/unit/Installing/Ini/DockerPhpExtEnableTest.php index e118096d..d27ee241 100644 --- a/test/unit/Installing/Ini/DockerPhpExtEnableTest.php +++ b/test/unit/Installing/Ini/DockerPhpExtEnableTest.php @@ -45,10 +45,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/Installing/Ini/OndrejPhpenmodTest.php b/test/unit/Installing/Ini/OndrejPhpenmodTest.php index 6d957cca..fc14406f 100644 --- a/test/unit/Installing/Ini/OndrejPhpenmodTest.php +++ b/test/unit/Installing/Ini/OndrejPhpenmodTest.php @@ -56,10 +56,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/Installing/Ini/PreCheckExtensionAlreadyLoadedTest.php b/test/unit/Installing/Ini/PreCheckExtensionAlreadyLoadedTest.php index 69b71db3..b22eff67 100644 --- a/test/unit/Installing/Ini/PreCheckExtensionAlreadyLoadedTest.php +++ b/test/unit/Installing/Ini/PreCheckExtensionAlreadyLoadedTest.php @@ -40,10 +40,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/Installing/Ini/StandardAdditionalPhpIniDirectoryTest.php b/test/unit/Installing/Ini/StandardAdditionalPhpIniDirectoryTest.php index 9ecc06a0..2af67d0a 100644 --- a/test/unit/Installing/Ini/StandardAdditionalPhpIniDirectoryTest.php +++ b/test/unit/Installing/Ini/StandardAdditionalPhpIniDirectoryTest.php @@ -50,10 +50,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/Installing/Ini/StandardSinglePhpIniTest.php b/test/unit/Installing/Ini/StandardSinglePhpIniTest.php index 3d35fd0e..7518880b 100644 --- a/test/unit/Installing/Ini/StandardSinglePhpIniTest.php +++ b/test/unit/Installing/Ini/StandardSinglePhpIniTest.php @@ -43,10 +43,6 @@ public function setUp(): void $this->output = new BufferedOutput(BufferedOutput::VERBOSITY_VERBOSE); $this->mockPhpBinary = $this->createMock(PhpBinaryPath::class); - /** - * @psalm-suppress PossiblyNullFunctionCall - * @psalm-suppress UndefinedThisPropertyAssignment - */ (fn () => $this->phpBinaryPath = '/path/to/php') ->bindTo($this->mockPhpBinary, PhpBinaryPath::class)(); diff --git a/test/unit/SelfManage/Verify/AttestationTest.php b/test/unit/SelfManage/Verify/AttestationTest.php index 08b81dc3..c61016d7 100644 --- a/test/unit/SelfManage/Verify/AttestationTest.php +++ b/test/unit/SelfManage/Verify/AttestationTest.php @@ -44,8 +44,6 @@ public function testFromAttestationWithValidBundle(): void /** * @return list>> - * - * @psalm-suppress PossiblyUnusedMethod https://github.com/psalm/psalm-plugin-phpunit/issues/131 */ public static function invalidBundleProvider(): array { From 58bca665faf1a1248d17bc00ab70f191a3f77b61 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Thu, 25 Sep 2025 20:23:45 +0100 Subject: [PATCH 2/2] Introduce baseline for existing phpstan violations --- phpstan-baseline.neon | 787 ++++++++++++++++++ phpstan.neon | 3 + .../PieComposerInstaller.php | 4 +- src/File/FailedToWriteFile.php | 2 +- .../SelfManage/Verify/AttestationTest.php | 4 +- 5 files changed, 793 insertions(+), 7 deletions(-) create mode 100644 phpstan-baseline.neon diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 00000000..cf0c01ff --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,787 @@ +parameters: + ignoreErrors: + - + message: '#^Call to function is_string\(\) with non\-empty\-string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Command/CommandHelper.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int + count: 1 + path: src/Command/CommandHelper.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/Command/CommandHelper.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 2 + path: src/Command/InstallExtensionsForProjectCommand.php + + - + message: '#^Parameter \#1 \$directory of function chdir expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Command/InstallExtensionsForProjectCommand.php + + - + message: '#^Parameter \#1 \$path of function realpath expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Command/InstallExtensionsForProjectCommand.php + + - + message: '#^Strict comparison using \=\=\= between non\-empty\-string and '''' will always evaluate to false\.$#' + identifier: identical.alwaysFalse + count: 1 + path: src/Command/InstallExtensionsForProjectCommand.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 2 + path: src/Command/RepositoryAddCommand.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Command/RepositoryAddCommand.php + + - + message: '#^Parameter \#1 \$type of method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:addRepository\(\) expects ''composer''\|''path''\|''vcs'', string given\.$#' + identifier: argument.type + count: 1 + path: src/Command/RepositoryAddCommand.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/Command/RepositoryRemoveCommand.php + + - + message: '#^Parameter \#2 \$content of static method Php\\Pie\\File\\SudoFilePut\:\:contents\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Command/SelfUpdateCommand.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/Command/UninstallCommand.php + + - + message: '#^Binary operation "\." between ''Found prebuilt…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php + + - + message: '#^Cannot call method findMatchingReleaseAssetUrl\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php + + - + message: '#^Parameter \#1 \$path of function pathinfo expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php + + - + message: '#^Parameter \#1 \$url of method Composer\\Package\\PackageInterface\:\:setDistUrl\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/Listeners/OverrideDownloadUrlInstallListener.php + + - + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php + + - + message: '#^Parameter \#1 \$transaction of closure expects Composer\\DependencyResolver\\Transaction, Composer\\DependencyResolver\\Transaction\|null given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php + + - + message: '#^Strict comparison using \!\=\= between Closure\(Composer\\DependencyResolver\\Transaction\)\: void and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/ComposerIntegration/Listeners/RemoveUnrelatedInstallOperations.php + + - + message: '#^Offset ''question'' on array\{question\: Symfony\\Component\\Console\\Helper\\QuestionHelper\} on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: src/ComposerIntegration/MinimalHelperSet.php + + - + message: '#^Cannot call method loadConfiguration\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: src/ComposerIntegration/PieComposerFactory.php + + - + message: '#^Parameter \#1 \$io of method Composer\\Factory\:\:createComposer\(\) expects Composer\\IO\\IOInterface, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/PieComposerFactory.php + + - + message: '#^Parameter \#2 \$io of static method Php\\Pie\\ComposerIntegration\\Listeners\\OverrideDownloadUrlInstallListener\:\:selfRegister\(\) expects Composer\\IO\\IOInterface, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/PieComposerFactory.php + + - + message: '#^Parameter \#5 \$installAndBuildProcess of class Php\\Pie\\ComposerIntegration\\PiePackageInstaller constructor expects Php\\Pie\\ComposerIntegration\\InstallAndBuildProcess, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/PieComposerFactory.php + + - + message: '#^Parameter \#6 \$uninstallProcess of class Php\\Pie\\ComposerIntegration\\PiePackageInstaller constructor expects Php\\Pie\\ComposerIntegration\\UninstallProcess, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/PieComposerFactory.php + + - + message: '#^Parameter \#3 \$package of class Php\\Pie\\ComposerIntegration\\PieComposerInstaller constructor expects Composer\\Package\\BasePackage&Composer\\Package\\RootPackageInterface, Composer\\Package\\RootPackageInterface given\.$#' + identifier: argument.type + count: 1 + path: src/ComposerIntegration/PieComposerInstaller.php + + - + message: '#^Method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:addRepository\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/ComposerIntegration/PieJsonEditor.php + + - + message: '#^Method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:addRequire\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/ComposerIntegration/PieJsonEditor.php + + - + message: '#^Method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:excludePackagistOrg\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/ComposerIntegration/PieJsonEditor.php + + - + message: '#^Method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:removeRepository\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/ComposerIntegration/PieJsonEditor.php + + - + message: '#^Method Php\\Pie\\ComposerIntegration\\PieJsonEditor\:\:removeRequire\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/ComposerIntegration/PieJsonEditor.php + + - + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/ComposerIntegration/QuieterConsoleIO.php + + - + message: '#^Strict comparison using \!\=\= between Closure\(Composer\\IO\\ConsoleIO\)\: void and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/ComposerIntegration/QuieterConsoleIO.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/ComposerIntegration/VendorCleanup.php + + - + message: '#^Anonymous function should return Php\\Pie\\Building\\Build but returns mixed\.$#' + identifier: return.type + count: 2 + path: src/Container.php + + - + message: '#^Anonymous function should return Php\\Pie\\Installing\\Install but returns mixed\.$#' + identifier: return.type + count: 2 + path: src/Container.php + + - + message: '#^Parameter \#1 \$implementation of method Illuminate\\Contracts\\Container\\ContextualBindingBuilder\:\:give\(\) expects array\|Closure\|string, non\-empty\-string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Container.php + + - + message: '#^Parameter \#1 \$input of class Php\\Pie\\ComposerIntegration\\QuieterConsoleIO constructor expects Symfony\\Component\\Console\\Input\\InputInterface, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Container.php + + - + message: '#^Parameter \#1 \$possibleApproaches of class Php\\Pie\\Installing\\Ini\\PickBestSetupIniApproach constructor expects list\, array\{mixed, mixed, mixed, mixed, mixed\} given\.$#' + identifier: argument.type + count: 1 + path: src/Container.php + + - + message: '#^Parameter \#2 \$output of class Php\\Pie\\ComposerIntegration\\QuieterConsoleIO constructor expects Symfony\\Component\\Console\\Output\\OutputInterface, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Container.php + + - + message: '#^Call to static method Php\\Pie\\DependencyResolver\\DetermineMinimumStability\:\:assertValidStabilityString\(\) with ''alpha''\|''beta''\|''dev''\|''RC''\|''stable'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: src/DependencyResolver/DetermineMinimumStability.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$buildPath is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$compatibleOsFamilies is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$configureOptions is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$downloadUrlMethod is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$incompatibleOsFamilies is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$priority is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$supportNts is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property Php\\Pie\\DependencyResolver\\Package\:\:\$supportZts is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/DependencyResolver/Package.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 8 + path: src/DependencyResolver/Package.php + + - + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\)\: non\-empty\-array given\.$#' + identifier: argument.type + count: 1 + path: src/Downloading/GithubPackageReleaseAssets.php + + - + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/ExtensionName.php + + - + message: '#^Parameter \#2 \$checksum of class Php\\Pie\\File\\BinaryFile constructor expects non\-empty\-string, non\-falsy\-string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/File/BinaryFile.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: src/File/SudoUnlink.php + + - + message: '#^Right side of \|\| is always true\.$#' + identifier: booleanOr.rightAlwaysTrue + count: 1 + path: src/File/SudoUnlink.php + + - + message: '#^Unreachable statement \- code above always terminates\.$#' + identifier: deadCode.unreachable + count: 1 + path: src/File/SudoUnlink.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue + count: 1 + path: src/File/WindowsDelete.php + + - + message: '#^Argument of an invalid type list\\|false supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable + count: 1 + path: src/Installing/Ini/IsExtensionAlreadyInTheIniFile.php + + - + message: '#^Parameter \#2 \$array of function array_key_exists expects array, array\|false given\.$#' + identifier: argument.type + count: 2 + path: src/Installing/Ini/IsExtensionAlreadyInTheIniFile.php + + - + message: '#^Call to function array_key_exists\(\) with ''downloads'' and array\{name\: string, description\: string\|null, abandoned\?\: string\|true, url\?\: string\} will always evaluate to false\.$#' + identifier: function.impossibleType + count: 2 + path: src/Installing/InstallForPhpProject/FindMatchingPackages.php + + - + message: '#^Parameter \#2 \$callback of function array_walk expects callable\(array\|float\|int\|string\|true, int\|string\)\: mixed, Closure\(string, string\)\: void given\.$#' + identifier: argument.type + count: 1 + path: src/Installing/InstallForPhpProject/InstallSelectedPackage.php + + - + message: '#^Parameter \#2 \$workingDirectory of static method Php\\Pie\\Util\\Process\:\:run\(\) expects string\|null, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Installing/InstallForPhpProject/InstallSelectedPackage.php + + - + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse + count: 1 + path: src/Installing/UninstallUsingUnlink.php + + - + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: src/Installing/WindowsInstall.php + + - + message: '#^Strict comparison using \!\=\= between non\-empty\-string and '''' will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 2 + path: src/Installing/WindowsInstall.php + + - + message: '#^Using nullsafe property access "\?\-\>name" on left side of \?\? is unnecessary\. Use \-\> instead\.$#' + identifier: nullsafe.neverNull + count: 1 + path: src/Platform.php + + - + message: '#^Call to function array_key_exists\(\) with 1 and array\{non\-falsy\-string, non\-empty\-string, non\-empty\-string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Platform/TargetPhp/PhpBinaryPath.php + + - + message: '#^Call to function array_key_exists\(\) with 2 and array\{non\-falsy\-string, string, string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 4 + path: src/Platform/TargetPhp/PhpBinaryPath.php + + - + message: '#^Call to function array_key_exists\(\) with 1 and array\{non\-falsy\-string, string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Platform/TargetPhp/PhpizePath.php + + - + message: '#^Call to function array_key_exists\(\) with 2 and array\{non\-falsy\-string, string, non\-falsy\-string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Platform/TargetPlatform.php + + - + message: '#^Strict comparison using \!\=\= between non\-falsy\-string and '''' will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/Platform/TargetPlatform.php + + - + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\)\: non\-empty\-array given\.$#' + identifier: argument.type + count: 1 + path: src/SelfManage/Update/FetchPieReleaseFromGitHub.php + + - + message: '#^Cannot access offset ''extensions'' on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Cannot access offset ''issuer'' on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Cannot access offset ''subject'' on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\)\: Php\\Pie\\SelfManage\\Verify\\Attestation given\.$#' + identifier: argument.type + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Parameter \#1 \$issuer of static method Php\\Pie\\SelfManage\\Verify\\FailedToVerifyRelease\:\:fromIssuerCertificateVerificationFailed\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Parameter \#1 \$issuer of static method Php\\Pie\\SelfManage\\Verify\\FailedToVerifyRelease\:\:fromNoIssuerCertificateInTrustedRoot\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Parameter \#1 \$string of function trim expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php + + - + message: '#^Dead catch \- Php\\Pie\\SelfManage\\Verify\\GithubCliNotAvailable is never thrown in the try block\.$#' + identifier: catch.neverThrown + count: 1 + path: src/SelfManage/Verify/VerifyPieReleaseUsingAttestation.php + + - + message: '#^Property Php\\Pie\\SelfManage\\Verify\\VerifyPieReleaseUsingAttestation\:\:\$fallbackVerification is never read, only written\.$#' + identifier: property.onlyWritten + count: 1 + path: src/SelfManage/Verify/VerifyPieReleaseUsingAttestation.php + + - + message: '#^Strict comparison using \!\=\= between ''@pie_version@'' and ''@pie_version@'' will always evaluate to false\.$#' + identifier: notIdentical.alwaysFalse + count: 1 + path: src/Util/PieVersion.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotEmpty\(\) with Php\\Pie\\File\\BinaryFile will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 2 + path: test/integration/Building/UnixBuildTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/integration/Command/BuildCommandTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/integration/Command/DownloadCommandTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/integration/Command/InfoCommandTest.php + + - + message: '#^Call to function array_key_exists\(\) with 1 and array\{non\-falsy\-string, string\} will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: test/integration/Command/InstallCommandTest.php + + - + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: test/integration/Command/InstallCommandTest.php + + - + message: '#^Call to function is_string\(\) with non\-empty\-string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: test/integration/Command/InstallCommandTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/integration/Command/InstallCommandTest.php + + - + message: '#^Parameter \#1 \$originalClassName of method PHPUnit\\Framework\\TestCase\:\:createMock\(\) expects class\-string\, string given\.$#' + identifier: argument.type + count: 1 + path: test/integration/Command/InstallExtensionsForProjectCommandTest.php + + - + message: '#^Unable to resolve the template type RealInstanceType in call to method PHPUnit\\Framework\\TestCase\:\:createMock\(\)$#' + identifier: argument.templateType + count: 1 + path: test/integration/Command/InstallExtensionsForProjectCommandTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 3 + path: test/integration/Command/RepositoryManagementCommandsTest.php + + - + message: '#^Parameter \#1 \$command of class Symfony\\Component\\Console\\Tester\\CommandTester constructor expects Symfony\\Component\\Console\\Command\\Command, mixed given\.$#' + identifier: argument.type + count: 2 + path: test/integration/Command/ShowCommandTest.php + + - + message: '#^Cannot call method __invoke\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php + + - + message: '#^Cannot call method downloadUrl\(\) on mixed\.$#' + identifier: method.nonObject + count: 2 + path: test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php + + - + message: '#^Cannot call method version\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php + + - + message: '#^Parameter \#2 \$string of static method PHPUnit\\Framework\\Assert\:\:assertStringMatchesFormat\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/integration/DependencyResolver/ResolveDependencyWithComposerTest.php + + - + message: '#^Call to function assert\(\) with true will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: test/integration/Installing/WindowsInstallTest.php + + - + message: '#^Strict comparison using \!\=\= between non\-falsy\-string and '''' will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: test/integration/Installing/WindowsInstallTest.php + + - + message: '#^Parameter \#2 \$extractedSourcePath of static method Php\\Pie\\Downloading\\DownloadedPackage\:\:fromPackageAndExtractedPath\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 2 + path: test/unit/ComposerIntegration/BundledPhpExtensionsRepositoryTest.php + + - + message: '#^Method Php\\PieUnitTest\\ComposerIntegration\\PieJsonEditorTest\:\:normaliseJson\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: test/unit/ComposerIntegration/PieJsonEditorTest.php + + - + message: '#^Parameter \#1 \$fileContent of method Php\\PieUnitTest\\ComposerIntegration\\PieJsonEditorTest\:\:normaliseJson\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 9 + path: test/unit/ComposerIntegration/PieJsonEditorTest.php + + - + message: '#^Match expression does not handle remaining value\: string$#' + identifier: match.unhandled + count: 1 + path: test/unit/ComposerIntegration/VendorCleanupTest.php + + - + message: '#^Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int\)\: bool\)\|null, Closure\(\)\: null given\.$#' + identifier: argument.type + count: 1 + path: test/unit/ComposerIntegration/VendorCleanupTest.php + + - + message: '#^Parameter \#2 \$extractedSourcePath of static method Php\\Pie\\Downloading\\DownloadedPackage\:\:fromPackageAndExtractedPath\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 3 + path: test/unit/Downloading/DownloadedPackageTest.php + + - + message: '#^Parameter \#1 \$phpExt of method Composer\\Package\\Package\:\:setPhpExt\(\) expects array\{extension\-name\?\: string, priority\?\: int, support\-zts\?\: bool, support\-nts\?\: bool, build\-path\?\: string\|null, download\-url\-method\?\: string, os\-families\?\: non\-empty\-list\, os\-families\-exclude\?\: non\-empty\-list\, \.\.\.\}\|null, array\{extension\-name\: null\} given\.$#' + identifier: argument.type + count: 1 + path: test/unit/ExtensionNameTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\AddExtensionToTheIniFileTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/AddExtensionToTheIniFileTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\CheckAndAddExtensionToIniIfNeededTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/CheckAndAddExtensionToIniIfNeededTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\DockerPhpExtEnableTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/DockerPhpExtEnableTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\OndrejPhpenmodTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/OndrejPhpenmodTest.php + + - + message: '#^Anonymous function should return bool but returns mixed\.$#' + identifier: return.type + count: 3 + path: test/unit/Installing/Ini/OndrejPhpenmodTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\PreCheckExtensionAlreadyLoadedTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/PreCheckExtensionAlreadyLoadedTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\StandardAdditionalPhpIniDirectoryTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/StandardAdditionalPhpIniDirectoryTest.php + + - + message: '#^Access to an undefined property Php\\PieUnitTest\\Installing\\Ini\\StandardSinglePhpIniTest\:\:\$phpBinaryPath\.$#' + identifier: property.notFound + count: 1 + path: test/unit/Installing/Ini/StandardSinglePhpIniTest.php + + - + message: '#^Parameter \#1 \$originalCwd of class Php\\Pie\\File\\FullPathToSelf constructor expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: test/unit/Installing/InstallForPhpProject/InstallSelectedPackageTest.php + + - + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: test/unit/Platform/TargetPhp/PhpBinaryPathTest.php + + - + message: '#^Parameter \#1 \$filename of function is_dir expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: test/unit/Platform/TargetPhp/PhpBinaryPathTest.php + + - + message: '#^Parameter \#4 \$body of class Composer\\Util\\Http\\Response constructor expects string\|null, string\|false given\.$#' + identifier: argument.type + count: 2 + path: test/unit/SelfManage/Update/FetchPieReleaseFromGitHubTest.php + + - + message: '#^Method Php\\PieUnitTest\\SelfManage\\Verify\\FallbackVerificationUsingOpenSslTest\:\:prepareCertificateAndSignature\(\) should return array\{string, string\} but returns array\{mixed, mixed\}\.$#' + identifier: return.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#1 \$certificate of function openssl_x509_export expects OpenSSLCertificate\|string, OpenSSLCertificate\|false given\.$#' + identifier: argument.type + count: 2 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#1 \$csr of function openssl_csr_sign expects OpenSSLCertificateSigningRequest\|string, OpenSSLCertificateSigningRequest\|false given\.$#' + identifier: argument.type + count: 2 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#1 \$dsseEnvelopePayload of method Php\\PieUnitTest\\SelfManage\\Verify\\FallbackVerificationUsingOpenSslTest\:\:prepareCertificateAndSignature\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 3 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#1 \$string of function trim expects string, array\\|string given\.$#' + identifier: argument.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#2 \$ca_certificate of function openssl_csr_sign expects OpenSSLCertificate\|string\|null, OpenSSLCertificate\|false given\.$#' + identifier: argument.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#2 \$dsseEnvelopePayload of method Php\\PieUnitTest\\SelfManage\\Verify\\FallbackVerificationUsingOpenSslTest\:\:mockAttestationResponse\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 3 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#3 \$private_key of function openssl_csr_sign expects array\|OpenSSLAsymmetricKey\|OpenSSLCertificate\|string, mixed given\.$#' + identifier: argument.type + count: 2 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#3 \$private_key of function openssl_sign expects array\|OpenSSLAsymmetricKey\|OpenSSLCertificate\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php + + - + message: '#^Parameter \#4 \$body of class Composer\\Util\\Http\\Response constructor expects string\|null, string\|false given\.$#' + identifier: argument.type + count: 1 + path: test/unit/SelfManage/Verify/FallbackVerificationUsingOpenSslTest.php diff --git a/phpstan.neon b/phpstan.neon index 095932dd..b34bc1a6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,3 +1,6 @@ +includes: + - phpstan-baseline.neon + parameters: level: 10 paths: diff --git a/src/ComposerIntegration/PieComposerInstaller.php b/src/ComposerIntegration/PieComposerInstaller.php index 0e1df409..423768be 100644 --- a/src/ComposerIntegration/PieComposerInstaller.php +++ b/src/ComposerIntegration/PieComposerInstaller.php @@ -13,9 +13,7 @@ use Php\Pie\Platform\TargetPhp\PhpBinaryPath; use Webmozart\Assert\Assert; -/** - * @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks - */ +/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */ class PieComposerInstaller extends Installer { private PhpBinaryPath|null $phpBinaryPath = null; diff --git a/src/File/FailedToWriteFile.php b/src/File/FailedToWriteFile.php index b7716e04..78d5e1aa 100644 --- a/src/File/FailedToWriteFile.php +++ b/src/File/FailedToWriteFile.php @@ -11,7 +11,7 @@ use function implode; use function sprintf; -/** @import-type CapturedErrorList from CaptureErrors */ +/** @phpstan-import-type CapturedErrorList from CaptureErrors */ class FailedToWriteFile extends RuntimeException { /** @param CapturedErrorList $recorded */ diff --git a/test/unit/SelfManage/Verify/AttestationTest.php b/test/unit/SelfManage/Verify/AttestationTest.php index c61016d7..05770764 100644 --- a/test/unit/SelfManage/Verify/AttestationTest.php +++ b/test/unit/SelfManage/Verify/AttestationTest.php @@ -42,9 +42,7 @@ public function testFromAttestationWithValidBundle(): void self::assertSame('signature number one!', $attestation->dsseEnvelopeSignature); } - /** - * @return list>> - */ + /** @return list>> */ public static function invalidBundleProvider(): array { return [