From 46b344538b7bf0bde21f576782c884a0d93409c9 Mon Sep 17 00:00:00 2001 From: Bart Vrancken Date: Sun, 28 Jun 2020 16:11:49 +0200 Subject: [PATCH] Update IodefElement.php array_key_exists on objects is depricated and removed in php 7.4. Therefor i need to change this into an array, this quick hack makes it 7.4 compatible! --- src/IodefElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IodefElement.php b/src/IodefElement.php index d39c147..680cc57 100644 --- a/src/IodefElement.php +++ b/src/IodefElement.php @@ -289,7 +289,7 @@ protected function validate() } // If a value is set, validate it. - if (array_key_exists('value', $this)) { + if (array_key_exists('value', json_decode(json_encode($this), true))) { // It's possible that there is no value rule set. // If so, skip value validation. if (sizeof($this->getValueRule()) > 0) {