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

Provide PHP 8.1 support #74

Merged
merged 1 commit into from
Dec 1, 2021

Commits on Dec 1, 2021

  1. feat: PHP 8.1 support

    This patch provides PHP 8.1 support, via the following changes:
    
    - Adds `~8.1.0` to the list of allowed PHP versions.
    - Marks a conflict with symfony/console versions prior to 5.3.11 (first version supporting PHP 8.1)
    - Replaces usage of `gmstrftime()` with a combination of casting timestamps to `DateTimeImmutable` objects with a GMT timezone, and using `IntlDateFormatter::formatObject()` with an equivalent date/time format to what was used with `gmstrftime()`.
    - Adds `#[\ReturnTimeWillChange]` attributes to classes implementing `JsonSerialize` to ensure they remain both backwards and forwards compatible.
    
    Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
    weierophinney committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    3f7b5bf View commit details
    Browse the repository at this point in the history