File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 42
42
# Make sure your committed .env.dist.testing file ends with a newline.
43
43
# The formatting of the contents to include a blank newline is deliberate.
44
44
- name : Define GitHub Secrets in .env.dist.testing
45
- uses : DamianReeves/write-file-action@v1.1
45
+ uses : DamianReeves/write-file-action@v1.3
46
46
with :
47
47
path : .env.dist.testing
48
48
contents : |
68
68
- name : Build PHP Autoloader
69
69
run : composer dump-autoload
70
70
71
+ # Run PHPStan for static analysis.
72
+ - name : Run PHPStan Static Analysis
73
+ working-directory : ${{ env.PLUGIN_DIR }}
74
+ run : php vendor/bin/phpstan analyse --memory-limit=1250M
75
+
71
76
# Run Coding Standards.
72
77
- name : Run Coding Standards
73
78
run : php vendor/bin/phpcs --standard=phpcs.xml
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ private function create_log(string $message)
142
142
// Mask email addresses that may be contained within the message.
143
143
$ message = preg_replace_callback (
144
144
'^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})^ ' ,
145
+ // @phpstan-ignore-next-line - see https://github.com/phpstan/phpstan/issues/10396
145
146
function ($ matches ) {
146
147
return preg_replace ('/\B[^@.]/ ' , '* ' , $ matches [0 ]);
147
148
},
You can’t perform that action at this time.
0 commit comments