From b502451b287d72ee7b305b0eb6dc147b08111cbc Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 29 Feb 2024 21:43:04 +0100 Subject: [PATCH] Introduce wyrihaximus/phpstan-react This will help users of this package find event loop blocking function calls in their code --- composer.json | 6 ++++++ composer.lock | 47 ++++++++++++++++++++++++++++++++++++++++++++- etc/qa/phpstan.neon | 1 + rules.neon | 1 + 4 files changed, 54 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e9b62e6..9925cbf 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "react/async": "^4.2.0", "react/event-loop": "^1.5.0", "react/promise": "^3.1", + "wyrihaximus/phpstan-react": "^1", "wyrihaximus/test-utilities": "^5.5.4 || ^6" }, "require-dev": { @@ -49,6 +50,11 @@ }, "sort-packages": true }, + "extra": { + "unused": [ + "wyrihaximus/phpstan-react" + ] + }, "scripts": { "post-install-cmd": [ "composer normalize", diff --git a/composer.lock b/composer.lock index c573536..5d5face 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": "278c3e8f0d4f12234f0f7a58ca5ef85e", + "content-hash": "ee0b42b34c963d70e472af7f71cfac60", "packages": [ { "name": "amphp/amp", @@ -9904,6 +9904,51 @@ ], "time": "2023-05-06T11:54:10+00:00" }, + { + "name": "wyrihaximus/phpstan-react", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/WyriHaximus/phpstan-reactphp.git", + "reference": "da07f594ea52390771aefbd3c5d850219aa75e64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/WyriHaximus/phpstan-reactphp/zipball/da07f594ea52390771aefbd3c5d850219aa75e64", + "reference": "da07f594ea52390771aefbd3c5d850219aa75e64", + "shasum": "" + }, + "require": { + "php": "^8.2" + }, + "require-dev": { + "nikic/php-parser": "^4.18", + "phpstan/phpdoc-parser": "^1.24", + "wyrihaximus/test-utilities": "^5.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "WyriHaximus\\React\\PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "👎 ReactPHP extension for PHPStan", + "support": { + "issues": "https://github.com/WyriHaximus/phpstan-reactphp/issues", + "source": "https://github.com/WyriHaximus/phpstan-reactphp/tree/1.0.0" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + } + ], + "time": "2024-02-29T20:19:44+00:00" + }, { "name": "wyrihaximus/phpstan-rules-wrapper", "version": "3.0.0", diff --git a/etc/qa/phpstan.neon b/etc/qa/phpstan.neon index ced5cad..a7254a1 100644 --- a/etc/qa/phpstan.neon +++ b/etc/qa/phpstan.neon @@ -15,3 +15,4 @@ parameters: includes: - ../../vendor/wyrihaximus/test-utilities/rules.neon + - ../../vendor/wyrihaximus/phpstan-react/phpstan-reactphp-rules.neon diff --git a/rules.neon b/rules.neon index 4409eda..5b5cdf8 100644 --- a/rules.neon +++ b/rules.neon @@ -6,3 +6,4 @@ parameters: includes: - ../test-utilities/rules.neon + - ../phpstan-react/phpstan-reactphp-rules.neon