8000 Fix explicit nullable parameter for PHP 8.4 compatibility by GromNaN · Pull Request #233 · spatie/array-to-xml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix explicit nullable parameter for PHP 8.4 compatibility #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
0