diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 2019d1cb1..620c1d730 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -1594,7 +1594,7 @@
$container
- ($name is class-string ? T : callable)
+ ($name is class-string ? T : HelperInterface|callable)
get
diff --git a/src/HelperPluginManager.php b/src/HelperPluginManager.php
index 21026074d..df12d6203 100644
--- a/src/HelperPluginManager.php
+++ b/src/HelperPluginManager.php
@@ -554,7 +554,7 @@ public function validatePlugin($instance)
* @param class-string|string $name Service name of plugin to retrieve.
* @param null|array $options Options to use when creating the instance.
* @return HelperInterface|callable
- * @psalm-return ($name is class-string ? T : callable)
+ * @psalm-return ($name is class-string ? T : HelperInterface|callable)
*/
public function get($name, ?array $options = null)
{
diff --git a/test/StaticAnalysis/PluginRetrieval.php b/test/StaticAnalysis/PluginRetrieval.php
index b1597e876..79d8ee814 100644
--- a/test/StaticAnalysis/PluginRetrieval.php
+++ b/test/StaticAnalysis/PluginRetrieval.php
@@ -23,12 +23,6 @@ public function retrieveHelperByClassName(string $email): string
return ($this->pluginManager->get(GravatarImage::class))($email);
}
- public function retrievalByAliasAssumesCallable(): void
- {
- $helper = $this->pluginManager->get('something');
- $helper();
- }
-
public function retrievalByClassNameInfersKnownMethods(): string
{
$helper = $this->pluginManager->get(Layout::class);