2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
php,
|
|
|
|
}:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
php.buildComposerProject (finalAttrs: {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "phpstan";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.11.4";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phpstan";
|
|
|
|
repo = "phpstan-src";
|
|
|
|
rev = finalAttrs.version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-9scH169cOc4rFUqqs6gqySI9aGEU5Exi8v4VtG9ujY8=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-u1GS1gyuU6T1ZJ1BLZZ/KbMoPemoN8VSFeR63/KgIAA=";
|
2024-01-02 11:29:13 +00:00
|
|
|
composerStrictValidation = false;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/phpstan/phpstan/releases/tag/${finalAttrs.version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "PHP Static Analysis Tool";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/phpstan/phpstan";
|
2020-10-16 20:44:37 +00:00
|
|
|
longDescription = ''
|
|
|
|
PHPStan focuses on finding errors in your code without actually
|
|
|
|
running it. It catches whole classes of bugs even before you write
|
|
|
|
tests for the code. It moves PHP closer to compiled languages in the
|
|
|
|
sense that the correctness of each line of the code can be checked
|
|
|
|
before you run the actual line.
|
|
|
|
'';
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "phpstan";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = lib.teams.php.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|