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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.5.5] - 2025-10-09
### Fixes
- Fix deprecation warnings on PHP 8.4
- Restrict supported PHP versions to 7.1 and above.

## [3.5.4] - 2025-09-12
### Added
- Provide `setFormTemplate` method to set `form_template` for the `createPaymentRequest`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ try {

## Requirements

The AltaPay API PHP requires PHP 7.0.0 or greater with the following extensions installed:
The AltaPay API PHP requires PHP 7.1.0 or greater with the following extensions installed:

- date
- filter
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
]
},
"require": {
"php": "^7.0 || ^8.0",
"php": "^7.1 || ^8.0",
"ext-date": "*",
"ext-filter": "*",
"ext-mbstring": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class AbstractApi
/**
* PHP API version
*/
const PHP_API_VERSION = '3.5.3';
const PHP_API_VERSION = '3.5.5';

/**
* Event dispatcher
Expand Down
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