Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null is not allowed #27

Open
cv65kr opened this issue Jun 13, 2024 · 1 comment
Open

Null is not allowed #27

cv65kr opened this issue Jun 13, 2024 · 1 comment
Assignees

Comments

@cv65kr
Copy link

cv65kr commented Jun 13, 2024

In the definition of function public static function getHeaders(mixed $headers, ?array $globals = null): array $globals allows to use null but parseHeaders ($headers = $h->parseHeaders($headers, $globals);) require array that's leads to issue

https://github.com/formancehq/formance-sdk-php/blob/main/src/Utils/Utils.php#L157

It should be
public static function getHeaders(mixed $headers, array $globals = []): array

@altitude
Copy link
Member

Thanks for the heads up @cv65kr! Taking a look at this cc @Shiroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants