diff --git a/composer.json b/composer.json index 6af64290..00c132c5 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,10 @@ "pestphp/pest": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", "pestphp/pest-plugin-livewire": "^2.0", - "phpunit/phpunit": "^10.0" + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan-beberlei-assert": "^1.1", + "phpunit/phpunit": "^10.0", + "tomasvotruba/bladestan": "^0.5.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 8563e8e6..84c6fbc3 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": "97faa44b39abeeaf3d8510641b88c4ec", + "content-hash": "77792597ca94508a25bd414fce094abb", "packages": [ { "name": "aws/aws-crt-php", @@ -11589,6 +11589,50 @@ ], "time": "2024-01-20T20:34:02+00:00" }, + { + "name": "phpstan/extension-installer", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpstan/extension-installer.git", + "reference": "5b19a72c93e79bb0d410ac2cd55f02c4a6e0cfbe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/5b19a72c93e79bb0d410ac2cd55f02c4a6e0cfbe", + "reference": "5b19a72c93e79bb0d410ac2cd55f02c4a6e0cfbe", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.6.0", + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.9.0" + }, + "require-dev": { + "composer/composer": "^2.0", + "php-parallel-lint/php-parallel-lint": "^1.2.0", + "phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0" + }, + "type": "composer-plugin", + "extra": { + "class": "PHPStan\\ExtensionInstaller\\Plugin" + }, + "autoload": { + "psr-4": { + "PHPStan\\ExtensionInstaller\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Composer plugin for automatic installation of PHPStan extensions", + "support": { + "issues": "https://github.com/phpstan/extension-installer/issues", + "source": "https://github.com/phpstan/extension-installer/tree/1.4.0" + }, + "time": "2024-06-06T11:26:29+00:00" + }, { "name": "phpstan/phpdoc-parser", "version": "1.29.1", @@ -11694,6 +11738,56 @@ ], "time": "2024-06-06T12:19:22+00:00" }, + { + "name": "phpstan/phpstan-beberlei-assert", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-beberlei-assert.git", + "reference": "0918f2c71f93d44839b74fe3ba2682b2083a8729" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-beberlei-assert/zipball/0918f2c71f93d44839b74fe3ba2682b2083a8729", + "reference": "0918f2c71f93d44839b74fe3ba2682b2083a8729", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.10" + }, + "require-dev": { + "beberlei/assert": "^3.3.0", + "nikic/php-parser": "^4.13.0", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.5" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan beberlei/assert extension", + "support": { + "issues": "https://github.com/phpstan/phpstan-beberlei-assert/issues", + "source": "https://github.com/phpstan/phpstan-beberlei-assert/tree/1.1.2" + }, + "time": "2023-09-04T12:13:01+00:00" + }, { "name": "phpunit/php-code-coverage", "version": "10.1.14", @@ -13211,6 +13305,75 @@ } ], "time": "2024-03-03T12:36:25+00:00" + }, + { + "name": "tomasvotruba/bladestan", + "version": "0.5.0", + "source": { + "type": "git", + "url": "https://github.com/TomasVotruba/bladestan.git", + "reference": "593c05f8940981e6ca8860555e273d135cec2aa6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TomasVotruba/bladestan/zipball/593c05f8940981e6ca8860555e273d135cec2aa6", + "reference": "593c05f8940981e6ca8860555e273d135cec2aa6", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.0 || ^10.0 || ^11.0", + "illuminate/filesystem": "^9.0 || ^10.0 || ^11.0", + "illuminate/view": "^9.0 || ^10.0 || ^11.0", + "php": "^8.1", + "phpstan/phpstan": "^1.10" + }, + "require-dev": { + "laravel/framework": "^10.40", + "nikic/php-parser": "^4.18", + "phpunit/phpunit": "^10.0", + "rector/rector": "^0.19", + "symplify/easy-ci": "^11.3", + "symplify/easy-coding-standard": "^12.1", + "tomasvotruba/class-leak": "^0.2.6", + "tracy/tracy": "^2.9" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "config/extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "TomasVotruba\\Bladestan\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rule for static analysis of Blade templates", + "keywords": [ + "phpstan-extension", + "static analysis" + ], + "support": { + "issues": "https://github.com/TomasVotruba/bladestan/issues", + "source": "https://github.com/TomasVotruba/bladestan/tree/0.5.0" + }, + "funding": [ + { + "url": "https://www.paypal.me/rectorphp", + "type": "custom" + }, + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2024-01-10T21:54:16+00:00" } ], "aliases": [], diff --git a/phpstan.neon b/phpstan.neon index 27af532a..2ea8bc12 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,4 @@ includes: - - vendor/larastan/larastan/extension.neon - phpstan-baseline.neon parameters: