Skip to content

Commit

Permalink
Fixed vimeo/psalm#7196 and updated pure annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jan 6, 2022
1 parent fbfea17 commit b9d8032
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Context/CommandLineContext.php
Expand Up @@ -41,7 +41,7 @@ public function __construct(
}
}

#[Pure] public function getCommandLine(): string
public function getCommandLine(): string
{
$line = $this->command;

Expand Down
1 change: 1 addition & 0 deletions src/Context/Contract/CommandLineContext.php
Expand Up @@ -8,6 +8,7 @@
interface CommandLineContext extends Context
{
public function getCommandLine(): string;

public function getCommand(): string;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/HandlerContainer.php
Expand Up @@ -98,7 +98,7 @@ public function loadFromClass(string $className): static

$classInstance = $this->container->getOrInstantiate($className);

/** @noinspection PhpClosureCanBeConvertedToFirstClassCallableInspection Until psalm supports first class callables: vimeo/psalm#7196 */
/** @noinspection PhpClosureCanBeConvertedToFirstClassCallableInspection Until vimeo/psalm#7322 is fixed */
$closure = Closure::fromCallable($classInstance);
$middlewareAttributes = $classReflection->getAttributes(MiddlewareAttribute::class, ReflectionAttribute::IS_INSTANCEOF);
$this->registerAttributes($closure, $classAttributes, $middlewareAttributes);
Expand Down

0 comments on commit b9d8032

Please sign in to comment.