SARB

Static Analysis Results Baseliner (SARB) lets you adopt static analysis on an existing PHP codebase by baselining existing issues so the build only fails on new ones.

DaveLiddament/sarb View on GitHub


SARB (Static Analysis Results Baseliner) makes it practical to introduce tools like PHPStan and Psalm to a large or legacy PHP codebase. Instead of fixing thousands of pre-existing issues up front, SARB baselines them so your build only fails on new issues — and, unlike other baselining approaches, it still tracks a baselined issue when its file is renamed or moved.

Related articles

SARB version 1 released

Static Analysis Results Baseliner (SARB) is used to create a baseline of these results. As work on the project progresses SARB can takes the latest static analysis results, removes those issues in the baseline and report the issues raised since the baseline. Learn all about version 1.

18 March 2021
baselining sarb

Related talks