Skip to content

Commit

Permalink
cs fix (PER Coding Style 2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
usarise committed Nov 17, 2023
1 parent 21c667f commit a13ad20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class RequestBody implements \Stringable {
final public function toArray(): array {
return array_filter(
get_object_vars($this),
static fn ($var): bool => $var !== null,
static fn($var): bool => $var !== null,
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Error/Code.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class Code {
*/
public static function toDescription(array $codes, array $descriptions = Description::TEXTS): array {
return array_map(
static fn ($code): string => $descriptions[$code] ?? $code,
static fn($code): string => $descriptions[$code] ?? $code,
$codes,
);
}
Expand Down

0 comments on commit a13ad20

Please sign in to comment.