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];