Skip to content
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
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Factory
* @return T
* @throws ClassDoesNotExistsException
*/
public static function create($class, Authentication $authentication = null)
public static function create($class, ?Authentication $authentication = null)
{
if (class_exists($class)) {
return new $class($authentication);
Expand Down
2 changes: 1 addition & 1 deletion src/Request/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Customer extends AbstractSerializer
*
* @param Address|null $billingAddress Billing address
*/
public function __construct(Address $billingAddress = null)
public function __construct(?Address $billingAddress = null)
{
$this->billing = $billingAddress;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Response/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ abstract class AbstractResponse
* @return void
* @throws \InvalidArgumentException
*/
public function headerSetter(\SimpleXMLElement $xml = null)
public function headerSetter(?\SimpleXMLElement $xml = null)
{
if ($xml) {
$this->Header = ResponseSerializer::serialize(Header::class, $xml);
Expand All @@ -64,7 +64,7 @@ public function headerSetter(\SimpleXMLElement $xml = null)
* @return static
* @throws \InvalidArgumentException
*/
public function deserialize(\SimpleXMLElement $xml = null)
public function deserialize(?\SimpleXMLElement $xml = null)
{
$object = clone $this;

Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/ResponseSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ResponseSerializer
public static function serialize(
$objectName,
\SimpleXMLElement $data,
\SimpleXMLElement $header = null
?\SimpleXMLElement $header = null
) {
$object = new $objectName();
$object->headerSetter($header);
Expand Down