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

Uncaught TypeError get_headers() Argument #2 ($associative) must be of type bool, int given #117

Open
MauricioFauth opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MauricioFauth
Copy link

Bug Report

Q A
Version 2.12.1.0
PHP 8.1.23

Summary

The associative argument of the get_headers() function has been changed from int to bool in PHP 8.0.

Current behaviour

PHP Fatal error:  Uncaught TypeError: get_headers(): Argument #2 ($associative) must be of type bool, int given in /redacted/phly/keep-a-changelog/src/Entry/AbstractPrependLinkListener.php:86

$headers = get_headers(
$link,
1,
stream_context_create(['http' => ['method' => 'HEAD']])
);

How to reproduce

keep-a-changelog entry:changed -i 123 -- 'Change log entry'
@MauricioFauth MauricioFauth added the bug Something isn't working label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant