Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-5162: Setup project for PHP 8.3 and port Notifications and Authentication classes #87

Merged
merged 14 commits into from
Jan 30, 2025

Conversation

ademarco
Copy link
Member

No description provided.

Copy link

@drishu drishu left a comment

Choose a reason for hiding this comment

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

Lots of code quality improvments, I recomment we use the new https://github.com/openeuropa/code-review-library to be consistent

Comment on lines +24 to +25
* @param RequestInterface & Type\GetServiceTicket $getServiceTicketPart
* @return ResultInterface & Type\GetServiceTicketResponse
Copy link

Choose a reason for hiding this comment

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

think we should indicate one or the other, usually its the interface, but if we need it to be the class then lets go with that

Copy link
Member Author

Choose a reason for hiding this comment

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

This code is generated by the library, check the readme here.

{
$new = clone $this;
$new->serviceTicket = $serviceTicket;

return $new;
}
}

Copy link

Choose a reason for hiding this comment

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

double newline

Copy link
Member Author

Choose a reason for hiding this comment

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

This code is generated by the library, check the readme here.

Comment on lines +79 to +85
// // Add the ResultInterface to classes that match given regex.
// ->addRule(
// new Rules\TypenameMatchesRule(
// new Rules\AssembleRule(new Assembler\ResultAssembler()),
// '/Response$/'
// )
// )
Copy link

@drishu drishu Jan 27, 2025

Choose a reason for hiding this comment

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

I see this repo is full of commented out code, not for this PR but I suggest you make a ticket/issue where you uncomment this code and either move it to a separate branch, or add a flag to execute it only when true, but leaving code like this is a problem

Copy link
Member Author

Choose a reason for hiding this comment

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

I will clean all of this in a follow up ticket, before closing the epic and releasing.

*/
private $notificationType;
private $notificationType = null;
Copy link

Choose a reason for hiding this comment

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

even without assigning null, the default value is null

Copy link
Member Author

Choose a reason for hiding this comment

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

This code is generated by the library, check the readme here.

@@ -12,7 +12,7 @@
"cweagans/composer-patches": "^1 || ^2",
"php-http/logger-plugin": "^1",
"php-http/message": "~1.13",
"phpro/soap-client": "~2.4",
"phpro/soap-client": "~3.4",
Copy link
Member

Choose a reason for hiding this comment

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

As I understand php constraint should be updated as we are testing in CI only with 8.3 version.

Copy link
Member Author

Choose a reason for hiding this comment

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

This has been done.

@@ -12,7 +12,7 @@
"cweagans/composer-patches": "^1 || ^2",
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need the ^1 version?

Comment on lines 21 to 23
"symfony/http-client": "~5.4 || ~6",
"symfony/serializer": "~5.4 || ~6",
"symfony/validator": "~5.4 || ~6",
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need to keep the support of the ~5.4 versions for symfony-related packages?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll remove this in the next ticket.

composer.json Show resolved Hide resolved
@ademarco ademarco merged commit e55b283 into 3.x Jan 30, 2025
4 checks passed
@ademarco ademarco deleted the EWPP-5162-notification-authentication branch January 30, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants