From 6fd31cb5fa9e314321edf8d528697aecfd8f354a Mon Sep 17 00:00:00 2001 From: Oliver Hader Date: Sun, 30 Jan 2022 17:02:56 +0100 Subject: [PATCH] [TASK] Remove deprecated AfterFunctionLikeAnalysisEvent::getClasslikeStorage --- UPGRADING.md | 2 ++ .../EventHandler/Event/AfterFunctionLikeAnalysisEvent.php | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 915e8d9aebe..a26b6f861e4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -209,3 +209,5 @@ - `Psalm\PluginRegistrationSocket::getAdditionalFileExtensions` was removed - `Psalm\PluginRegistrationSocket::addFileExtension` was removed - :information_source: migration possible using `Psalm\PluginFileExtensionsSocket` + - [BC] Method `\Psalm\Plugin\EventHandler\Event\AfterFunctionLikeAnalysisEvent::getClasslikeStorage()` was removed, + use correct `\Psalm\Plugin\EventHandler\Event\AfterFunctionLikeAnalysisEvent::getFunctionlikeStorage()` instead diff --git a/src/Psalm/Plugin/EventHandler/Event/AfterFunctionLikeAnalysisEvent.php b/src/Psalm/Plugin/EventHandler/Event/AfterFunctionLikeAnalysisEvent.php index 7f9cee4ad38..6429d808f86 100644 --- a/src/Psalm/Plugin/EventHandler/Event/AfterFunctionLikeAnalysisEvent.php +++ b/src/Psalm/Plugin/EventHandler/Event/AfterFunctionLikeAnalysisEvent.php @@ -70,14 +70,6 @@ public function getStmt(): Node\FunctionLike return $this->stmt; } - /** - * @deprecated Will be removed in Psalm v5.0, use getFunctionlikeStorage() instead - */ - public function getClasslikeStorage(): FunctionLikeStorage - { - return $this->functionlike_storage; - } - public function getFunctionlikeStorage(): FunctionLikeStorage { return $this->functionlike_storage;