Skip to content

CC-1903/remove-php-8-4-deprecations#214

Merged
Ryouzanpaku merged 5 commits into
mainfrom
CC-1903/remove-php-8-4-deprecations
Jul 10, 2025
Merged

CC-1903/remove-php-8-4-deprecations#214
Ryouzanpaku merged 5 commits into
mainfrom
CC-1903/remove-php-8-4-deprecations

Conversation

@Ryouzanpaku

Copy link
Copy Markdown
Contributor

No description provided.

remove-php-8-4] explicitly set nullable parameter.
@Ryouzanpaku Ryouzanpaku requested a review from a team as a code owner July 8, 2025 14:51

@sixer1182 sixer1182 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some nullable params left that are not marked as such.
Also I saw some inconsistancies between method headers and PHP doc tags.
I suggest using AI to improve consistancy and check for missed nullable params.

Comment thread src/Exceptions/UnzerApiException.php
Comment thread src/Interfaces/PaymentServiceInterface.php
@@ -20,7 +20,7 @@ class SignedMessage extends AbstractUnzerResource
* @param string $ephemeralPublicKey
* @param string $encryptedMessage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP doc is not consistant with the allowed parameter types in the method header.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed phpdoc, since it only contains redundant information.

Comment thread src/Resources/PaymentTypes/InstallmentSecured.php
protected $ibanCountry;

public function __construct(string $ibanCountry = null)
public function __construct(?string $ibanCountry = null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No function header, no php doc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, since it would not add any actual information.

Comment thread src/Traits/CanPayoutWithCustomer.php
Comment thread src/Unzer.php
Comment thread src/Unzer.php
Comment thread src/Unzer.php
Comment thread src/Unzer.php
remove-php-8-4] cleanup phpdoc comments
remove-php-8-4] cleanup phpdoc comments
remove-php-8-4] cleanup phpdoc comments
@Ryouzanpaku

Copy link
Copy Markdown
Contributor Author

There are some nullable params left that are not marked as such. Also I saw some inconsistancies between method headers and PHP doc tags. I suggest using AI to improve consistancy and check for missed nullable params.

For general consystancy cleanup i created extra ticket: CC-2652

Comment thread src/Resources/TransactionTypes/Payout.php
Comment on lines +86 to +89
* @param string|null $uri uri of the target system
* @param AbstractUnzerResource|null $resource
* @param string $httpMethod
* @param string|null $apiVersion

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't run the fixer to make the code more readable?

@Ryouzanpaku Ryouzanpaku merged commit 45765c1 into main Jul 10, 2025
8 of 9 checks passed
@Ryouzanpaku Ryouzanpaku deleted the CC-1903/remove-php-8-4-deprecations branch July 10, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants