Skip to content

Parsedown::blockSetextHeader(): Implicitly marking parameter $Block as nullable is deprecated #923

@mikethea1

Description

@mikethea1

I'm seeing this warning trying to use Parsedown 1.7.4 (latest stable, from what I can tell) on php 8.4.

Seems like the fix is to just do ?array $Block = null instead of array $Block = null?

See https://github.com/erusev/parsedown/blob/1.7.x/Parsedown.php#L715

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions