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

feat: php 7.4 features and typehints #537

Merged
merged 3 commits into from Mar 2, 2022

Conversation

Chris53897
Copy link
Contributor

Add php 7.4 features.
Add typehints
Remove wrong (According to PhpStorm) and useless DocBlocks Comments

DI for Payum (container->get() is deprecated and removed in Symfony 6).
This needs to be tested. But tests do not work correct.
Payum\Core\Payum vs Payum\Core\Registry\RegistryInterface in Commands? See old DocBlock return hints.
So this should be merged upfront #536

@Chris53897 Chris53897 mentioned this pull request Feb 26, 2022
Copy link
Member

@pierredup pierredup left a comment

Choose a reason for hiding this comment

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

There's a few BC breaks which I think should be reverted, but otherwise the changes looks great.

There are also some failing unit tests that seems related to these changes (but can wait for #536 to be merged so that the rest of the builds can pass)

Command/DebugGatewayCommand.php Show resolved Hide resolved
Controller/CancelController.php Outdated Show resolved Hide resolved
Controller/PayumController.php Outdated Show resolved Hide resolved
Controller/PayumController.php Outdated Show resolved Hide resolved
Controller/PayumController.php Outdated Show resolved Hide resolved
@Chris53897 Chris53897 changed the title feat: php 74 features, typehints, DI feat: php 7.4 features and typehints Feb 28, 2022
@Chris53897
Copy link
Contributor Author

Can you pleasse check if all BC Breaks are removed now?
Tests look good now.

@pierredup
Copy link
Member

Thank you @Chris53897

@pierredup pierredup merged commit 665aeb1 into Payum:master Mar 2, 2022
@Chris53897 Chris53897 deleted the feature/php-74-features branch March 5, 2022 08:55
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.

None yet

3 participants