Skip to content

Commit

Permalink
Added some return typehints to functions who missed them
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Jun 19, 2024
1 parent 7bd6cd7 commit 028307b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ApiPlatform/HandleAttachmentsUploadsProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(

}

public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): mixed
{
if ($operation instanceof DeleteOperationInterface) {
return $this->removeProcessor->process($data, $operation, $uriVariables, $context);
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Sandbox/SandboxedLabelExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(private readonly LabelTextReplacer $labelTextReplace

}

public function getFunctions()
public function getFunctions(): array
{
return [
new TwigFunction('placeholder', fn(string $text, object $label_target) => $this->labelTextReplacer->handlePlaceholderOrReturnNull($text, $label_target)),
Expand Down

0 comments on commit 028307b

Please sign in to comment.