Skip to content

Commit 9c0fccd

Browse files
committed
Update PHP version requirement and add PHPStan configuration
1 parent 1177a22 commit 9c0fccd

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
!/src
33
!/.gitignore
44
!/LICENSE
5+
!/phpstan.neon
56
!/README.md
6-

composer.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "library",
44
"license": "MIT",
55
"require": {
6-
"php": ">= 5.3"
6+
"php": ">= 7.4"
77
},
88
"autoload": {
99
"psr-4": {
@@ -12,5 +12,11 @@
1212
},
1313
"suggest": {
1414
"rkr/php-di-ioc-adapter": "An adapter for PHP-DI"
15+
},
16+
"require-dev": {
17+
"phpstan/phpstan": "^2.1"
18+
},
19+
"scripts": {
20+
"phpstan": "phpstan analyse -c phpstan.neon"
1521
}
16-
}
22+
}

phpstan.neon

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src

0 commit comments

Comments
 (0)