Skip to content

Commit 1661589

Browse files
authored
Merge pull request #4 from lkck24/PHPStan
Phpstan and Phpunit updates
2 parents 2c76a02 + 27ff3b9 commit 1661589

File tree

6 files changed

+22
-68
lines changed

6 files changed

+22
-68
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
22
/vendor/
3+
/data/

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
"phpstan/phpstan": "^0.12.51",
1919
"phpstan/phpstan-deprecation-rules": "^0.12.4",
2020
"phpstan/phpstan-phpunit": "^0.12.16",
21-
"phpstan/phpstan-strict-rules": "^0.12.5",
2221
"squizlabs/php_codesniffer": "^3.5.5"
2322
},
2423
"scripts": {
2524
"check": ["@analyze", "@test"],
2625
"test": "pest tests",
27-
"analyze": "phpstan analyse --level max src"
26+
"analyze": "phpstan analyse --level max"
2827
},
2928
"autoload": {
3029
"psr-4": {

composer.lock

Lines changed: 1 addition & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
includes:
2+
- vendor/phpstan/phpstan-phpunit/extension.neon
3+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
parameters:
5+
tmpDir: data
6+
level: max
7+
paths:
8+
- src

phpunit.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation = "./vendor/phpunit/phpunit/phpunit.xsd"
4+
cacheResultFile="./data/phpunit.result.cache"
5+
colors = "true">
6+
<testsuites>
7+
<testsuite name="Unit">
8+
<directory suffix="Test.php">./tests/</directory>
9+
</testsuite>
10+
</testsuites>
11+
</phpunit>

0 commit comments

Comments
 (0)