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: drop support for php < 8.1 #15

Merged
merged 3 commits into from
Jan 26, 2024
Merged

feat: drop support for php < 8.1 #15

merged 3 commits into from
Jan 26, 2024

Conversation

Chris53897
Copy link
Contributor

drop support for symfony < 5.4
add "ext-simplexml" as required
add strong types

As i was working in #14
i made some more changes for a new major version. There are BC breaks, and i am not sure about the changes in the interface.

drop support for symfony < 5.4
add "ext-simplexml" as required
add strong types
Copy link
Member

@frederikbosch frederikbosch left a comment

Choose a reason for hiding this comment

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

Great work!

composer.json Outdated
@@ -13,8 +13,9 @@
}
],
"require": {
"php": ">=5.5",
"symfony/yaml": "^3.2 | ^4.0 | ^5.0 | ^6.0"
"php": ">=8.1",
Copy link
Member

Choose a reason for hiding this comment

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

~8.1.0 || ~8.2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean ~8.1.0 || ~8.2.0 || ~8.3.0 ?

src/Country.php Outdated
* @param int $minorUnit
*/
public function __construct($entity, $currency, $alphabeticCode, $numericCode, $minorUnit)
public function __construct(private readonly string $entity,
Copy link
Member

Choose a reason for hiding this comment

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

Add new line

src/Country.php Outdated
private readonly string $currency,
private readonly string $alphabeticCode,
private readonly int $numericCode,
private readonly int $minorUnit)
Copy link
Member

Choose a reason for hiding this comment

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

Add new line, identation

Copy link
Contributor Author

@Chris53897 Chris53897 Jan 26, 2024

Choose a reason for hiding this comment

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

i changed identation betwen type and variable name. I am not sure if you that is what you mean.

I am not sure where exact you want me to add the new line

@frederikbosch
Copy link
Member

Let's get this is in, with the minor changes I suggested.

drop support for symfony < 5.4
add "ext-simplexml" as required
add strong types
@frederikbosch
Copy link
Member

The two new lines and indentation are still left. If you correct them I will press the button.

drop support for symfony < 5.4
add "ext-simplexml" as required
add strong types
@Chris53897
Copy link
Contributor Author

I am not sure how exactly you want it.
I did change it now, but maybe wrong

@frederikbosch frederikbosch merged commit ab7657c into moneyphp:master Jan 26, 2024
@Chris53897 Chris53897 deleted the feature/modernize branch January 26, 2024 13:06
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.

3 participants