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';