Skip to content

Commit

Permalink
Optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
DikoIbragimov committed Dec 13, 2024
1 parent 6ccf05b commit 55e692e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getHeaders(): array {
* @return array
*/
public function getFirstHeaders(): array {
return array_map(static fn($lines) => $lines[0], $this->requestProvider->get()->getHeaders());
return array_map(static fn(array $lines) => $lines[0], $this->getHeaders());

Check failure on line 43 in src/RequestHeaders.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

MissingClosureReturnType

src/RequestHeaders.php:43:26: MissingClosureReturnType: Closure does not have a return type, expecting mixed (see https://psalm.dev/068)

Check failure on line 43 in src/RequestHeaders.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

MissingClosureReturnType

src/RequestHeaders.php:43:26: MissingClosureReturnType: Closure does not have a return type, expecting mixed (see https://psalm.dev/068)

Check failure on line 43 in src/RequestHeaders.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

MissingClosureReturnType

src/RequestHeaders.php:43:26: MissingClosureReturnType: Closure does not have a return type, expecting mixed (see https://psalm.dev/068)
}

/**
Expand Down

0 comments on commit 55e692e

Please sign in to comment.