From 555119b7e864612ef6a8882e1f68c64fc5424490 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 8 Feb 2023 18:06:31 +0700 Subject: [PATCH] Added phpstan in composer.json --- composer.json | 5 +++- composer.lock | 64 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 66 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 837389521..09fd608b7 100644 --- a/composer.json +++ b/composer.json @@ -54,9 +54,12 @@ "samdark/sitemap": "*", "swiftmailer/swiftmailer": "*", "symfony/dotenv": "4.*", - "symfony/var-dumper": "4.*", "symfony/polyfill": "*" }, + "require-dev": { + "phpstan/phpstan": "*", + "symfony/var-dumper": "4.*" + }, "autoload": { "psr-4": { "TorrentPier\\": "src/" diff --git a/composer.lock b/composer.lock index b049ee30b..32492ddad 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "723d1e7c1a6153d62b6c4a30af6f598b", + "content-hash": "f032a639a723929ad90e6ecf95aa4054", "packages": [ { "name": "bugsnag/bugsnag", @@ -1358,6 +1358,67 @@ } ], "time": "2022-11-10T10:11:03+00:00" + } + ], + "packages-dev": [ + { + "name": "phpstan/phpstan", + "version": "1.9.16", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "922e2689bb180575d0f57de0443c431a5a698e8f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/922e2689bb180575d0f57de0443c431a5a698e8f", + "reference": "922e2689bb180575d0f57de0443c431a5a698e8f", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "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": { + "issues": "https://github.com/phpstan/phpstan/issues", + "source": "https://github.com/phpstan/phpstan/tree/1.9.16" + }, + "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-02-07T10:42:21+00:00" }, { "name": "symfony/var-dumper", @@ -1449,7 +1510,6 @@ "time": "2022-10-03T15:15:11+00:00" } ], - "packages-dev": [], "aliases": [], "minimum-stability": "stable", "stability-flags": [],