File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 44
44
env :
45
45
CI_PHP_VERSION : ${{ matrix.php }}
46
46
CI_PHP_FUTURE_RELEASE : ${{ matrix.future-release }}
47
+
48
+ - name : Static analysis
49
+ run : " vendor/bin/psalm"
50
+ if : ${{ !matrix.future-release && matrix.php >= 7.1 }}
Original file line number Diff line number Diff line change 21
21
"ext-gd" : " *" ,
22
22
"phpcompatibility/php-compatibility" : " *" ,
23
23
"phpunit/phpunit" : " *" ,
24
- "squizlabs/php_codesniffer" : " *"
24
+ "squizlabs/php_codesniffer" : " *" ,
25
+ "vimeo/psalm" : " *"
25
26
},
26
27
"suggest" : {
27
28
"ext-mbstring" : " *"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <psalm
3
+ errorLevel =" 5"
4
+ resolveFromConfigFile =" true"
5
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6
+ xmlns =" https://getpsalm.org/schema/config"
7
+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8
+ >
9
+ <projectFiles >
10
+ <directory name =" src" />
11
+ <ignoreFiles >
12
+ <directory name =" vendor" />
13
+ </ignoreFiles >
14
+ </projectFiles >
15
+ <issueHandlers >
16
+ <UndefinedClass >
17
+ <errorLevel type =" suppress" >
18
+ <referencedClass name =" CurlHandle" />
19
+ <file name =" src/Curl/Curl.php" />
20
+ </errorLevel >
21
+ <errorLevel type =" suppress" >
22
+ <referencedClass name =" CurlMultiHandle" />
23
+ <file name =" src/Curl/MultiCurl.php" />
24
+ </errorLevel >
25
+ </UndefinedClass >
26
+ </issueHandlers >
27
+ </psalm >
Original file line number Diff line number Diff line change @@ -1428,7 +1428,7 @@ public function removeHeader($key)
1428
1428
*
1429
1429
* @access public
1430
1430
* @param bool $on
1431
- * @param resource $output
1431
+ * @param resource|string $output
1432
1432
*/
1433
1433
public function verbose ($ on = true , $ output = 'STDERR ' )
1434
1434
{
You can’t perform that action at this time.
0 commit comments