Skip to content

Deprecated: Kennyth01\PhpRulesEngine\Rule::interpretRules() #3

@andriusbuivydas-vg

Description

@andriusbuivydas-vg

Starting with php version 8.4:

public function interpretRules(array $conditions = null)

triggers E_DEPRECATED warning (type hint (array) doesn't explicitly allow null value).

I expect changing to:

public function interpretRules(?array $conditions = null)
  // or
public function interpretRules(array|null $conditions = null)

would fix this issue.

Note that in php 9.0 this will be fatal error.

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