From 99e02dd06aec482137a505ea84772722907508a3 Mon Sep 17 00:00:00 2001 From: rotimi Date: Tue, 9 May 2023 17:46:12 -0600 Subject: [PATCH] PHP 8.1 minimum version readiness --- phpunit.xml | 10 ++++++---- src/GDAO/Model/RecordInterface.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 0b8b695..113b00b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,9 +1,6 @@ - + - - ./src - @@ -17,4 +14,9 @@ + + + ./src + + diff --git a/src/GDAO/Model/RecordInterface.php b/src/GDAO/Model/RecordInterface.php index bd1a695..4842bbe 100644 --- a/src/GDAO/Model/RecordInterface.php +++ b/src/GDAO/Model/RecordInterface.php @@ -172,7 +172,7 @@ public function &getNonTableColAndNonRelatedDataByRef(): array; * * @return $this */ - public function setRelatedData($key, array|RecordInterface|CollectionInterface $value): static; + public function setRelatedData(string $key, array|RecordInterface|CollectionInterface $value): static; /** * Get the model object that saves and reads data to and from the db on behalf of this record