From 3736c65592dfaeeb63e34d308a30671de93db5cc Mon Sep 17 00:00:00 2001 From: fiachra mcdermott Date: Tue, 29 Jun 2021 00:48:24 -0400 Subject: [PATCH] chore: rename class --- ...ertyHandler.php => ModelRelationshipPropertyHandler.php} | 2 +- src/Plugin.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/Handlers/Eloquent/{ModelPropertyHandler.php => ModelRelationshipPropertyHandler.php} (99%) diff --git a/src/Handlers/Eloquent/ModelPropertyHandler.php b/src/Handlers/Eloquent/ModelRelationshipPropertyHandler.php similarity index 99% rename from src/Handlers/Eloquent/ModelPropertyHandler.php rename to src/Handlers/Eloquent/ModelRelationshipPropertyHandler.php index 24ee98d..092306f 100644 --- a/src/Handlers/Eloquent/ModelPropertyHandler.php +++ b/src/Handlers/Eloquent/ModelRelationshipPropertyHandler.php @@ -20,7 +20,7 @@ use function str_replace; /** * @psalm-suppress DeprecatedInterface */ -class ModelPropertyHandler implements +class ModelRelationshipPropertyHandler implements \Psalm\Plugin\Hook\PropertyExistenceProviderInterface, \Psalm\Plugin\Hook\PropertyVisibilityProviderInterface, \Psalm\Plugin\Hook\PropertyTypeProviderInterface diff --git a/src/Plugin.php b/src/Plugin.php index e0562a6..73b8efd 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -5,7 +5,7 @@ use Psalm\LaravelPlugin\Handlers\Application\ContainerHandler; use Psalm\LaravelPlugin\Handlers\Application\OffsetHandler; use Psalm\LaravelPlugin\Handlers\Eloquent\ModelMethodHandler; use Psalm\LaravelPlugin\Handlers\Eloquent\ModelPropertyAccessorHandler; -use Psalm\LaravelPlugin\Handlers\Eloquent\ModelPropertyHandler; +use Psalm\LaravelPlugin\Handlers\Eloquent\ModelRelationshipPropertyHandler; use Psalm\LaravelPlugin\Handlers\Eloquent\RelationsMethodHandler; use Psalm\LaravelPlugin\Handlers\Helpers\PathHandler; use Psalm\LaravelPlugin\Handlers\Helpers\RedirectHandler; @@ -56,8 +56,8 @@ class Plugin implements PluginEntryPointInterface $registration->registerHooksFromClass(ContainerHandler::class); require_once 'Handlers/Application/OffsetHandler.php'; $registration->registerHooksFromClass(OffsetHandler::class); - require_once 'Handlers/Eloquent/ModelPropertyHandler.php'; - $registration->registerHooksFromClass(ModelPropertyHandler::class); + require_once 'Handlers/Eloquent/ModelRelationshipPropertyHandler.php'; + $registration->registerHooksFromClass(ModelRelationshipPropertyHandler::class); require_once 'Handlers/Eloquent/ModelPropertyAccessorHandler.php'; $registration->registerHooksFromClass(ModelPropertyAccessorHandler::class); require_once 'Handlers/Eloquent/RelationsMethodHandler.php';