From af275d169978e081cc12bced947795d55571a596 Mon Sep 17 00:00:00 2001 From: Hamza Tamyachte Date: Sun, 15 Mar 2026 22:22:16 +0100 Subject: [PATCH] Fix #86c89ftg9 - Remove PHP 7.4 typed properties for PHP 7.3 compatibility Remove typed property declarations to prevent fatal parse errors on Moodle 4.0.x servers running PHP 7.3. Lower environment.xml PHP requirement from 7.4 to 7.3. Fixes #13 --- classes/condition.php | 4 ++-- environment.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/condition.php b/classes/condition.php index 50a202c..7d2f461 100644 --- a/classes/condition.php +++ b/classes/condition.php @@ -42,14 +42,14 @@ class condition extends \core_availability\condition { * * @var string */ - protected string $ipaddresses = ''; + protected $ipaddresses = ''; /** * Predefined IP address ranges. * * @var array */ - protected array $predefinedranges = []; + protected $predefinedranges = []; /** * condition constructor. diff --git a/environment.xml b/environment.xml index cff201b..dd3ab8f 100644 --- a/environment.xml +++ b/environment.xml @@ -1,6 +1,6 @@ - +