Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
path: src/
level: 6
memory_limit: 256M
args: test/phpunit/TestGetter.php

phpmd:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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": [
Expand Down
23 changes: 17 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/phpunit/TestGetter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class TestGetter implements TypeSafeGetter {
use NullableTypeSafeGetter;

/** @param array<string, mixed> $kvp */
public function __construct(private array $kvp = []) {}

public function get(string $name):mixed {
Expand Down
Loading