From 6bded3f3217ca56d96bac9fb8897e8db4159b323 Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Tue, 6 Aug 2024 20:02:26 +0300 Subject: [PATCH] Fix code style in PhpStormStubsLocator --- src/PhpStormReflectionStubs/PhpStormStubsLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpStormReflectionStubs/PhpStormStubsLocator.php b/src/PhpStormReflectionStubs/PhpStormStubsLocator.php index fffd9109..08b1be99 100644 --- a/src/PhpStormReflectionStubs/PhpStormStubsLocator.php +++ b/src/PhpStormReflectionStubs/PhpStormStubsLocator.php @@ -40,7 +40,7 @@ private static function changeDetector(): ChangeDetector public function locate(ConstantId|NamedFunctionId|NamedClassId $id): ?Resource { $relativePath = match (true) { - $id instanceof ConstantId => defined($id->name) ? null : PhpStormStubsMap::CONSTANTS[$id->name] ?? null, + $id instanceof ConstantId => \defined($id->name) ? null : PhpStormStubsMap::CONSTANTS[$id->name] ?? null, $id instanceof NamedFunctionId => PhpStormStubsMap::FUNCTIONS[$id->name] ?? null, $id instanceof NamedClassId => PhpStormStubsMap::CLASSES[$id->name] ?? null, };