From 298230f95a91daa13789a19e45c3caa45b6e656d Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Mon, 24 Jun 2024 10:36:02 +0800 Subject: [PATCH] chore: Update PHPStorm meta file to include Symfony Console Application mapping (#6905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- .phpstorm.meta.php | 10 ++++++---- src/contract/src/ApplicationInterface.php | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index 35f14e6b2..ea4252c2a 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -9,19 +9,21 @@ declare(strict_types=1); * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace PHPSTORM_META; -use function di; +use Hyperf\Context\Context; +use Psr\Container\ContainerInterface; + use function make; use function optional; use function tap; // Reflect -override(\Psr\Container\ContainerInterface::get(0), map(['' => '@'])); -override(\Hyperf\Context\Context::get(0), map(['' => '@'])); +override(ContainerInterface::get(0), map(['' => '@'])); +override(Context::get(0), map(['' => '@'])); override(make(0), map(['' => '@'])); override(\Hyperf\Support\make(0), map(['' => '@'])); -override(di(0), map(['' => '@'])); override(optional(0), type(0)); override(\Hyperf\Support\optional(0), type(0)); override(tap(0), type(0)); diff --git a/src/contract/src/ApplicationInterface.php b/src/contract/src/ApplicationInterface.php index b0cecb4e3..8f501f1cb 100644 --- a/src/contract/src/ApplicationInterface.php +++ b/src/contract/src/ApplicationInterface.php @@ -13,9 +13,11 @@ declare(strict_types=1); namespace Hyperf\Contract; use Hyperf\Framework\ApplicationFactory; +use Symfony\Component\Console\Application; /** * @see ApplicationFactory + * @mixin Application */ interface ApplicationInterface {