diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d06c948..1116175 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,6 +122,7 @@ jobs: path: src/ level: 6 memory_limit: 256M + args: test/phpunit/TestGetter.php phpmd: runs-on: ubuntu-latest diff --git a/composer.json b/composer.json index 4d407be..d3a6e8e 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }, "require-dev": { - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^1.10 || ^2.0", "phpunit/phpunit": "^10.1", "phpmd/phpmd": "^2.13", "squizlabs/php_codesniffer": "^3.7 || ^4.0" @@ -31,7 +31,7 @@ "scripts": { "phpunit": "vendor/bin/phpunit --configuration phpunit.xml", - "phpstan": "vendor/bin/phpstan analyse --level 6 src --memory-limit 256M", + "phpstan": "vendor/bin/phpstan analyse --level 6 src test/phpunit/TestGetter.php --memory-limit 256M", "phpcs": "vendor/bin/phpcs src --standard=phpcs.xml", "phpmd": "vendor/bin/phpmd src/ text phpmd.xml", "test": [ diff --git a/composer.lock b/composer.lock index 7e60279..66f4abe 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": "b37572a9d5de7c9c166491bf414fe947", + "content-hash": "5cd456772f796b5c67a9b5c784cfb218", "packages": [], "packages-dev": [ { @@ -535,15 +535,15 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.34", + "version": "2.2.16", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4dd89ca7aa30fdc6760be21550d583bcc32e8476", - "reference": "4dd89ca7aa30fdc6760be21550d583bcc32e8476", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/46a6d9060e5a7763adfcc21ebcb8b504ebdbcb92", + "reference": "46a6d9060e5a7763adfcc21ebcb8b504ebdbcb92", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -562,6 +562,17 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ "dev", @@ -584,7 +595,7 @@ "type": "github" } ], - "time": "2026-07-28T10:04:39+00:00" + "time": "2026-09-25T09:31:51+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/test/phpunit/TestGetter.php b/test/phpunit/TestGetter.php index d1bc7df..e96de48 100644 --- a/test/phpunit/TestGetter.php +++ b/test/phpunit/TestGetter.php @@ -7,6 +7,7 @@ class TestGetter implements TypeSafeGetter { use NullableTypeSafeGetter; + /** @param array $kvp */ public function __construct(private array $kvp = []) {} public function get(string $name):mixed {