Skip to content

Commit

Permalink
Callable intersections in class-string don't work in Psalm v5 or v6
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jan 26, 2025
1 parent c6c55a0 commit 9048bb4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/AbstractPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,7 @@ public function setInvokableClass(string $name, string|null $class = null): void
*
* @deprecated Please use {@see AbstractPluginManager::configure()} instead.
*
* @phpcs:disable Generic.Files.LineLength.TooLong
* @param class-string<FactoryInterface>|class-string<object&FactoryCallable>|FactoryCallable|FactoryInterface $factory
* @phpcs:enable Generic.Files.LineLength.TooLong
* @param class-string<FactoryInterface>|FactoryCallable|FactoryInterface $factory
* @throws ContainerModificationsNotAllowedException If $name already
* exists as a service and overrides are disallowed.
*/
Expand Down Expand Up @@ -301,9 +299,7 @@ public function addAbstractFactory(string|AbstractFactoryInterface $factory): vo
*
* @param string $name Service name
* @param string|callable|DelegatorFactoryInterface $factory Delegator factory to assign.
* @phpcs:disable Generic.Files.LineLength.TooLong
* @psalm-param class-string<DelegatorFactoryInterface>|class-string<object&DelegatorCallable>|DelegatorCallable $factory
* @phpcs:enable Generic.Files.LineLength.TooLong
* @psalm-param class-string<DelegatorFactoryInterface>|DelegatorCallable $factory
*/
public function addDelegator(string $name, string|callable|DelegatorFactoryInterface $factory): void
{
Expand Down

0 comments on commit 9048bb4

Please sign in to comment.