1 { fetchFromGitHub, lib, php }:
3 php.buildComposerProject (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = finalAttrs.version;
11 hash = "sha256-ZEQ6oP6zyi0cL69J9ck8gAht5taPkzH+iW5ALC4saAQ=";
14 vendorHash = "sha256-Qp/eMhcKK32N1EMgeIspBDs28Oofwn6n2bEFKqvSx9E=";
15 composerStrictValidation = false;
18 changelog = "https://github.com/phpstan/phpstan/releases/tag/${finalAttrs.version}";
19 description = "PHP Static Analysis Tool";
20 homepage = "https://github.com/phpstan/phpstan";
22 PHPStan focuses on finding errors in your code without actually
23 running it. It catches whole classes of bugs even before you write
24 tests for the code. It moves PHP closer to compiled languages in the
25 sense that the correctness of each line of the code can be checked
26 before you run the actual line.
28 license = lib.licenses.mit;
29 mainProgram = "phpstan";
30 maintainers = lib.teams.php.members;