Skip to content

Commit

Permalink
Fix explicit nullable parameter for PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Apr 30, 2024
1 parent edee672 commit 66cd0e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@
'keep_multiple_spaces_after_comma' => true,
],
'single_trait_insert_per_statement' => true,
'nullable_type_declaration_for_default_null_value' => true,
])
->setRiskyAllowed(true);
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
"scripts": {
"test": "vendor/bin/pest"
},
"extra": {
"branch-alias": {
"dev-main": "3.x-dev"
}
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
Expand Down
4 changes: 2 additions & 2 deletions src/ArrayToXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public static function convert(
array $array,
$rootElement = '',
bool $replaceSpacesByUnderScoresInKeyNames = true,
string $xmlEncoding = null,
?string $xmlEncoding = null,
string $xmlVersion = '1.0',
array $domProperties = [],
bool $xmlStandalone = null,
?bool $xmlStandalone = null,
bool $addXmlDeclaration = true,
array $options = ['convertNullToXsiNil' => false]
): string {
Expand Down

0 comments on commit 66cd0e5

Please sign in to comment.