Skip to content

fix: use nullable type hint in interpretRules() for PHP 8.4 compatibi…#4

Merged
kennyth01 merged 1 commit into
mainfrom
fix/php84-nullable-interpretRules
May 10, 2026
Merged

fix: use nullable type hint in interpretRules() for PHP 8.4 compatibi…#4
kennyth01 merged 1 commit into
mainfrom
fix/php84-nullable-interpretRules

Conversation

@kennyth01
Copy link
Copy Markdown
Owner

…lity

Replaces array $conditions = null with ?array $conditions = null to resolve the PHP 8.4 deprecation warning. Without this fix, the code would produce a fatal error in PHP 9.0.

Fixes #3

…lity

Replaces `array $conditions = null` with `?array $conditions = null` to
resolve the PHP 8.4 deprecation warning. Without this fix, the code would
produce a fatal error in PHP 9.0.

Fixes #3

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kennyth01 kennyth01 merged commit 5e28881 into main May 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant