Skip to content

Commit

Permalink
Merge pull request #20 from skilld-labs/php84
Browse files Browse the repository at this point in the history
PHP 8.4 compatibility
  • Loading branch information
grasmash authored Nov 25, 2024
2 parents bb1c1a2 + fd6a6c1 commit eea11b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Expander.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit eea11b9

Please sign in to comment.