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

Increase PHPStan level #162

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Increase PHPStan level #162

merged 3 commits into from
Dec 6, 2023

Conversation

odolbeau
Copy link
Owner

This probably break the BC promise and its probably not complete : there's probably other non strict typed methods I should take care of.

WDYT about this, should we go for a new major version with strict typing?
If yes, is there anything else we would like to include in a new major version?

@OskarStark OskarStark changed the title Increase phptan level Increase PHPStan level Nov 30, 2023
@maxhelias
Copy link
Collaborator

I think we can go for a new major version, it's time to move on ;D

@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you think of the file header update?

Copy link
Owner Author

Choose a reason for hiding this comment

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

This is a good idea!

I discovered recently that's is something supported by php-cs : https://github.com/symfony/symfony/blob/7.1/.php-cs-fixer.dist.php#L16

Maybe we can open an issue / PR in order to decide of a header we want to have in all files?

@maxhelias
Copy link
Collaborator

PhoneNumber::$errorNames Could be remove for a major version and it should fix the failed CI

@odolbeau odolbeau merged commit e922fd5 into master Dec 6, 2023
6 checks passed
@odolbeau odolbeau deleted the increase-phptan-level branch December 6, 2023 15:49
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

2 participants