From d67184b90a8117bc318e6e2534187fc102b6feb9 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Mon, 30 Mar 2026 02:26:12 -0400 Subject: [PATCH 1/2] php8 fix --- src/Option.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Option.php b/src/Option.php index 0c347d2..f65895f 100644 --- a/src/Option.php +++ b/src/Option.php @@ -244,7 +244,8 @@ public function isType($type) public function getTypeClass() { - $class = 'GetOptionKit\\ValueType\\'.ucfirst($this->isa).'Type'; + $isa = (string) $this->isa; + $class = 'GetOptionKit\\ValueType\\'.ucfirst($isa).'Type'; if (class_exists($class, true)) { return new $class($this->isaOption); } @@ -261,7 +262,9 @@ protected function _preprocessValue($value) { $val = $value; - if ($isa = ucfirst((string) $this->isa)) { + $isa = (string) $this->isa; + if ($isa !== '') { + $isa = ucfirst($isa); $type = $this->getTypeClass(); if ($type->test($value)) { $val = $type->parse($value); From 505c248d7d01d225205b77096c07d72e658cdea8 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Mon, 30 Mar 2026 02:29:12 -0400 Subject: [PATCH 2/2] php7 fix --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 273cbc8..a36b88a 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,9 @@ "minimum-stability": "dev", "prefer-stable": true, "config": { + "platform": { + "php": "7.4.0" + }, "optimize-autoloader": true, "sort-packages": true },