From ffb33dd1000949f9389e81040da07308f768deb6 Mon Sep 17 00:00:00 2001 From: Kenneth Ocastro <> Date: Sun, 10 May 2026 11:39:19 +0800 Subject: [PATCH] fix: use nullable type hint in interpretRules() for PHP 8.4 compatibility 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 --- src/Rule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rule.php b/src/Rule.php index ab1c2a8..97dad0e 100644 --- a/src/Rule.php +++ b/src/Rule.php @@ -248,7 +248,7 @@ public function triggerFailureEvent(Facts $facts): array ]; } - public function interpretRules(array $conditions = null): string + public function interpretRules(?array $conditions = null): string { if ($conditions === null) { $conditions = $this->conditions;