Skip to content

Commit 20f4d75

Browse files
committed
[TASK] Add PHPStan rules for Safe-PHP
This will prevent unsafe function usage from getting added. Closes #1168
1 parent e788f3e commit 20f4d75

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ updates:
2222
versions: [ ">= 9.0.0" ]
2323
- dependency-name: "rector/rector"
2424
- dependency-name: "thecodingmachine/safe"
25+
- dependency-name: "thecodingmachine/phpstan-safe-rule"
2526
versioning-strategy: "increase"
2627
commit-message:
2728
prefix: "[Dependabot] "

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"phpunit/phpunit": "8.5.46",
3737
"rawr/phpunit-data-provider": "3.3.1",
3838
"rector/rector": "1.2.10 || 2.1.7",
39-
"rector/type-perfect": "1.0.0 || 2.1.0"
39+
"rector/type-perfect": "1.0.0 || 2.1.0",
40+
"thecodingmachine/phpstan-safe-rule": "1.2.0"
4041
},
4142
"suggest": {
4243
"ext-mbstring": "for parsing UTF-8 CSS"

0 commit comments

Comments
 (0)