Skip to content

Commit

Permalink
v0.1.3
Browse files Browse the repository at this point in the history
some returntypes fixed
  • Loading branch information
Artur Voll committed Feb 19, 2022
1 parent 449ae73 commit 6ab294b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"php": ">=7.2",
"goetas-webservices/xsd2php-runtime": "^0.2.2"
},
"version": "0.1.3",
"license": "MIT",
"authors": [
{
Expand Down
6 changes: 3 additions & 3 deletions src/XmlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class XmlParser
* @param string $classNamespace
* @param bool|null $debug
*
* @return self
* @return void
*/
public function __construct(string $metadataDir, string $classNamespace, ?bool $debug = false)
{
Expand Down Expand Up @@ -93,7 +93,7 @@ protected function getSerializer(): Serializer
*
* @return mixed
*/
public function toObject(string $xmlstring = "", string $namespace = ""): mixed
public function toObject(string $xmlstring = "", string $namespace = "")
{
$this->xmlstring = $xmlstring;
$this->namespace = $namespace;
Expand All @@ -102,7 +102,7 @@ public function toObject(string $xmlstring = "", string $namespace = ""): mixed
return $this->serializer->deserialize($this->xmlstring, $this->namespace, 'xml');
}

public function toXml(mixed $object): string
public function toXml(object $object): string
{
return $this->serializer->serialize($object, 'xml');
}
Expand Down

0 comments on commit 6ab294b

Please sign in to comment.