Avoid Parameter $foo of function bar expects string, int given output in static code analysis by explicitly casting to string when a return value is an int, or by passing a string by encapsulating an int with apostrophes.
Details
Details
- Reviewers
valerio.bozzolan - Group Reviewers
O1: Blessed Committers - Commits
- rARC2e4bfc2ff61a: Explicitly cast int to string when expected by PHP functions
Run static code analysis (phpstan).
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- castInt2String (branched from master)
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 2079 Build 2079: arc lint + arc unit