Skip to content

Commit ca07272

Browse files
author
Greg Bowler
committed
test multiple paths
closes php-actions/phpstan#7
1 parent 59037ff commit ca07272

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: PHPStan Static Analysis
1313
uses: php-actions/phpstan@v3
1414
with:
15-
path: src/
15+
path: src/ inc/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-dom": "*",
88
"ext-json": "*",
99
"ext-sqlite3": "*",
10-
"phpstan/phpstan": ">=0.12.80"
10+
"phpstan/phpstan": "1.*"
1111
},
1212
"autoload": {
1313
"psr-4": {

composer.lock

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/Example.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
class Example {
3+
public function getReason():string {
4+
return <<<STR
5+
The reason for this class to exist is to act as documentation
6+
for passing multiple directories to PHPStan.
7+
8+
Have a great day!
9+
STR;
10+
}
11+
}

0 commit comments

Comments
 (0)