Composer updates
This commit is contained in:
17
vendor/spatie/array-to-xml/CHANGELOG.md
vendored
17
vendor/spatie/array-to-xml/CHANGELOG.md
vendored
@@ -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
|
||||
|
||||
3
vendor/spatie/array-to-xml/README.md
vendored
3
vendor/spatie/array-to-xml/README.md
vendored
@@ -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
|
||||
|
||||
[](https://github.com/spatie/array-to-xml/releases)
|
||||
|
||||
13
vendor/spatie/array-to-xml/src/ArrayToXml.php
vendored
13
vendor/spatie/array-to-xml/src/ArrayToXml.php
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user