Skip to content

Commit

Permalink
Start testing PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 2, 2024
1 parent 604c79e commit 05c1fe8
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
# Should be the higest supported version, so we can use the newest tools
php-version: '8.3'
php-version: '8.4'
tools: composer, composer-require-checker, composer-unused, phpcs
extensions: ctype, dom, filter, pcre, spl, xml
coverage: none
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']

steps:
- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -183,15 +183,15 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run unit tests with coverage
if: ${{ matrix.php-versions == '8.3' }}
if: ${{ matrix.php-versions == '8.4' }}
run: vendor/bin/phpunit

- name: Run unit tests (no coverage)
if: ${{ matrix.php-versions != '8.3' }}
if: ${{ matrix.php-versions != '8.4' }}
run: vendor/bin/phpunit --no-coverage

- name: Save coverage data
if: ${{ matrix.php-versions == '8.3' }}
if: ${{ matrix.php-versions == '8.4' }}
uses: actions/upload-artifact@v4
with:
name: coverage-data
Expand All @@ -205,7 +205,7 @@ jobs:
fail-fast: true
matrix:
operating-system: [windows-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']

steps:
- name: Setup PHP, with composer and extensions
Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200106/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this Body to.
* @return \DOMElement This Body-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200106/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this Detail to.
* @return \DOMElement This Detail-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200106/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this envelope to.
* @return \DOMElement This Envelope-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200106/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this fault to.
* @return \DOMElement This Fault-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200106/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this header to.
* @return \DOMElement This Header-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this Body to.
* @return \DOMElement This Body-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Code.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this code to.
* @return \DOMElement This Code-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this Detail to.
* @return \DOMElement This Detail-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this envelope to.
* @return \DOMElement This Envelope-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this fault to.
* @return \DOMElement This Fault-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this header to.
* @return \DOMElement This Header-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/NotUnderstood.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should append this element to.
* @return \DOMElement
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Reason.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getText(): array
* @param \DOMElement|null $parent The element we should append this element to.
* @return \DOMElement
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Subcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this subcode to.
* @return \DOMElement This Subcode-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/SupportedEnvelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function fromXML(DOMElement $xml): static
* @param \DOMElement|null $parent The element we should add this SupportedEnvelope to.
* @return \DOMElement This SupportedEnvelope-element.
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);
$e->setAttribute('qname', $this->getQName());
Expand Down
2 changes: 1 addition & 1 deletion src/XML/env_200305/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getSupportedEnvelope(): array
* @param \DOMElement|null $parent The element we should append this element to.
* @return \DOMElement
*/
public function toXML(DOMElement $parent = null): DOMElement
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

Expand Down

0 comments on commit 05c1fe8

Please sign in to comment.