From fd6a6c1e07bab84db036c7744233ff5762fbc5ac Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Tue, 23 Jul 2024 02:54:21 +0200 Subject: [PATCH] PHP 8.4 compatibility RFC https://php.watch/rfcs/deprecate-implicitly-nullable-types --- src/Expander.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Expander.php b/src/Expander.php index 490c9a3..0d984ee 100644 --- a/src/Expander.php +++ b/src/Expander.php @@ -103,7 +103,7 @@ protected function doExpandArrayProperties( Data $data, array $array, string $parent_keys = '', - Data $reference_data = null + ?Data $reference_data = null ) { foreach ($array as $key => $value) { // Boundary condition(s). @@ -201,7 +201,7 @@ function ($matches) use ($data, $reference_data) { public function expandStringPropertiesCallback( array $matches, Data $data, - Data $reference_data = null + ?Data $reference_data = null ): mixed { $property_name = $matches[1]; $unexpanded_value = $matches[0];