Skip to content

Conversation

@Ryouzanpaku
Copy link
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
Copy link
Member

@sixer1182 sixer1182 left a comment

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.

/**
* @param string $tag
* @param string $ephemeralPublicKey
* @param string $encryptedMessage
Copy link
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
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.

protected $ibanCountry;

public function __construct(string $ibanCountry = null)
public function __construct(?string $ibanCountry = null)
Copy link
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
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.

remove-php-8-4] cleanup phpdoc comments
remove-php-8-4] cleanup phpdoc comments
remove-php-8-4] cleanup phpdoc comments
@Ryouzanpaku
Copy link
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 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
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.

3 participants