diff --git a/composer.json b/composer.json index 4629447..9bc3a65 100644 --- a/composer.json +++ b/composer.json @@ -67,9 +67,15 @@ "require" : { "php": ">=5.3.0" }, + "require-dev": { + "phpstan/phpstan": "^1.10" + }, "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } + }, + "scripts": { + "phpstan": "phpstan analyse --memory-limit 512M" } } diff --git a/composer.lock b/composer.lock index 2822bbb..33d75fc 100644 --- a/composer.lock +++ b/composer.lock @@ -1,13 +1,76 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "91f256f9c16112f0cfaf195351eb9ce7", - "content-hash": "d8fc0ae3e220f5834869ff8b73aca888", + "content-hash": "8ac904a3c51a8b5aa84e20fd53db4718", "packages": [], - "packages-dev": [], + "packages-dev": [ + { + "name": "phpstan/phpstan", + "version": "1.11.x-dev", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "8470f2c38fbd6f5a6ff0b3cf63acbae3e38db833" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8470f2c38fbd6f5a6ff0b3cf63acbae3e38db833", + "reference": "8470f2c38fbd6f5a6ff0b3cf63acbae3e38db833", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "default-branch": true, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2023-08-08T19:26:50+00:00" + } + ], "aliases": [], "minimum-stability": "dev", "stability-flags": [], @@ -16,5 +79,6 @@ "platform": { "php": ">=5.3.0" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "2.3.0" } diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..071f1f7 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,8 @@ +parameters: + level: max + + paths: + - . + + excludePaths: + - vendor/