Add phpstan-webmozart-assert extension

This commit is contained in:
James Titcumb
2025-11-13 13:33:17 +00:00
parent 287709fda4
commit 975e0ddfe6
3 changed files with 54 additions and 1 deletions

View File

@@ -46,6 +46,7 @@
"bnf/phpstan-psr-container": "^1.1",
"doctrine/coding-standard": "^14.0.0",
"phpstan/phpstan": "^2.1.31",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^10.5.58"
},
"replace": {

53
composer.lock generated
View File

@@ -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": "2eeabe4ff3ff6e464241cef446dfb44b",
"content-hash": "4956e9821d801a9b289455af8ec11168",
"packages": [
{
"name": "composer/ca-bundle",
@@ -3253,6 +3253,57 @@
],
"time": "2025-10-10T14:14:11+00:00"
},
{
"name": "phpstan/phpstan-webmozart-assert",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-webmozart-assert.git",
"reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/0c641817d2a8f05c7157f92d91986e74d3c8ab0c",
"reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c",
"shasum": ""
},
"require": {
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"nikic/php-parser": "^5.1",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^9.6",
"webmozart/assert": "^1.11.0"
},
"type": "phpstan-extension",
"extra": {
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"autoload": {
"psr-4": {
"PHPStan\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "PHPStan webmozart/assert extension",
"support": {
"issues": "https://github.com/phpstan/phpstan-webmozart-assert/issues",
"source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/2.0.0"
},
"time": "2024-10-14T03:45:26+00:00"
},
{
"name": "phpunit/php-code-coverage",
"version": "10.1.16",

View File

@@ -1,6 +1,7 @@
includes:
- phpstan-baseline.neon
- vendor/bnf/phpstan-psr-container/extension.neon
- vendor/phpstan/phpstan-webmozart-assert/extension.neon
parameters:
level: 10