phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
181 stars 21 forks source link

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

Open MauricioFauth opened 12 months ago

MauricioFauth commented 12 months ago

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

https://github.com/phly/keep-a-changelog/blob/e45185a979707c1f953b650932bdf4bad4d96db5/src/Entry/AbstractPrependLinkListener.php#L83-L87

How to reproduce

keep-a-changelog entry:changed -i 123 -- 'Change log entry'