From aec267f6b8f1e28978de8c970ba01b7cc5f941a6 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 27 Oct 2024 08:28:28 +0100 Subject: [PATCH] [BUGFIX] Fix another implictly nullable parameter This fixes compatibility with PHP 8.4. This is the last part of the v8.x backport of #643. --- CHANGELOG.md | 2 +- src/RuleSet/RuleSet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e2b3ca..c39c583f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Added -- Add support for PHP 8.4 (#675, #701, #746) +- Add support for PHP 8.4 (#675, #701, #746, #751) ### Changed diff --git a/src/RuleSet/RuleSet.php b/src/RuleSet/RuleSet.php index adb9be92..8cbbd34f 100644 --- a/src/RuleSet/RuleSet.php +++ b/src/RuleSet/RuleSet.php @@ -102,7 +102,7 @@ public function getLineNo() * * @return void */ - public function addRule(Rule $oRule, Rule $oSibling = null) + public function addRule(Rule $oRule, $oSibling = null) { $sRule = $oRule->getRule(); if (!isset($this->aRules[$sRule])) {