Skip to content

Commit aa3c301

Browse files
authored
[no ci] fix findings 7
1 parent ecb8904 commit aa3c301

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/php-sast.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
# run: composer validate --strict
2626

2727
# This config file gets auto-loaded by PHPStan
28+
# !!!! The old bcc-signon plugin and the bcc-wp-proxy plugin are excluded from analysis!
2829
- name: Set PHPStan config
2930
run: |
3031
cat <<'EOF' > phpstan.neon
@@ -40,11 +41,11 @@ jobs:
4041
bootstrapFiles:
4142
- plugins/bcc-login/bcc-login.php
4243
ignoreErrors:
43-
- '#Function get_culture not found\.#'
4444
- '#Path in require\(\) "build/visibility\.asset\.php" is not a file or it does not exist\.#'
4545
- '#Path in require\(\) "build/settings\.asset\.php" is not a file or it does not exist\.#'
4646
excludePaths:
4747
- plugins/bcc-signon/*
48+
- plugins/bcc-wp-proxy/*
4849
includes:
4950
- vendor/szepeviktor/phpstan-wordpress/extension.neon
5051
EOF
@@ -64,6 +65,11 @@ jobs:
6465
bool $format_value = true,
6566
bool $escape_html = false
6667
) {};
68+
69+
/**
70+
* @return string
71+
*/
72+
function get_culture() {};
6773
EOF
6874
6975
- name: Install PHPStan and Wordpress-stub

0 commit comments

Comments
 (0)