Composer updates

This commit is contained in:
Clemens Schwaighofer
2023-05-29 16:21:31 +09:00
parent 250067927a
commit 7b5ad92e66
304 changed files with 11398 additions and 3199 deletions

View File

@@ -2,6 +2,23 @@
All notable changes to `array-to-xml` will be documented in this file
## 3.1.5 - 2022-12-24
### What's Changed
- Add Dependabot Automation by @patinthehat in https://github.com/spatie/array-to-xml/pull/196
- Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/array-to-xml/pull/197
- Fix PHP version by @parallels999 in https://github.com/spatie/array-to-xml/pull/198
- fix deprecated `passing null as string type` by @trin4ik in https://github.com/spatie/array-to-xml/pull/204
### New Contributors
- @dependabot made their first contribution in https://github.com/spatie/array-to-xml/pull/197
- @parallels999 made their first contribution in https://github.com/spatie/array-to-xml/pull/198
- @trin4ik made their first contribution in https://github.com/spatie/array-to-xml/pull/204
**Full Changelog**: https://github.com/spatie/array-to-xml/compare/3.1.4...3.1.5
## 3.1.4 - 2022-11-24
### What's Changed

View File

@@ -1,6 +1,3 @@
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org)
# Convert an array to xml
[![Latest Version](https://img.shields.io/github/release/spatie/array-to-xml.svg?style=flat-square)](https://github.com/spatie/array-to-xml/releases)

View File

@@ -24,7 +24,8 @@ class ArrayToXml
string | null $xmlEncoding = null,
string $xmlVersion = '1.0',
array $domProperties = [],
bool | null $xmlStandalone = null
bool | null $xmlStandalone = null,
bool $addXmlDeclaration = true
) {
$this->document = new DOMDocument($xmlVersion, $xmlEncoding ?? '');
@@ -36,6 +37,8 @@ class ArrayToXml
$this->setDomProperties($domProperties);
}
$this->addXmlDeclaration = $addXmlDeclaration;
$this->replaceSpacesByUnderScoresInKeyNames = $replaceSpacesByUnderScoresInKeyNames;
if (! empty($array) && $this->isArrayAllKeySequential($array)) {
@@ -61,7 +64,8 @@ class ArrayToXml
string $xmlEncoding = null,
string $xmlVersion = '1.0',
array $domProperties = [],
bool $xmlStandalone = null
bool $xmlStandalone = null,
bool $addXmlDeclaration = true,
): string {
$converter = new static(
$array,
@@ -70,7 +74,8 @@ class ArrayToXml
$xmlEncoding,
$xmlVersion,
$domProperties,
$xmlStandalone
$xmlStandalone,
$addXmlDeclaration
);
return $converter->toXml();
@@ -80,7 +85,7 @@ class ArrayToXml
{
return $this->addXmlDeclaration
? $this->document->saveXML()
: $this->document->saveXml($this->document->documentElement);
: $this->document->saveXML($this->document->documentElement);
}
public function toDom(): DOMDocument