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

Drop support for PHP < 7.4, add return types #23

Open
tacman opened this issue Feb 10, 2022 · 6 comments
Open

Drop support for PHP < 7.4, add return types #23

tacman opened this issue Feb 10, 2022 · 6 comments

Comments

@tacman
Copy link
Contributor

tacman commented Feb 10, 2022

I'd like to get rid of the deprecation errors I'm getting now:

2022-02-10T08:00:55-06:00 [info] User Deprecated: Method "Doctrine\DBAL\Types\Type::canRequireSQLConversion()" might add "bool" as a native return type declaration in the future. Do the same in child class "VertigoLabs\DoctrineFullTextPostgres\DBAL\Types\TsVector" now to avoid errors or add an explicit @return annotation to suppress this message.
2022-02-10T08:00:55-06:00 [info] User Deprecated: Method "Doctrine\DBAL\Types\Type::convertToDatabaseValue()" might add "mixed" as a native return type declaration in the future. Do the same in child class "VertigoLabs\DoctrineFullTextPostgres\DBAL\Types\TsVector" now to avoid errors or add an explicit @return annotation to suppress this message.
2022-02-10T08:00:55-06:00 [info] User Deprecated: Method "Doctrine\DBAL\Types\Type::getMappedDatabaseTypes()" might add "array" as a native return type declaration in the future. Do the same in child class "VertigoLabs\DoctrineFullTextPostgres\DBAL\Types\TsVector" now to avoid errors or add an explicit @return annotation to suppress this message.

Fixing these properly would require adding return types, so we'd have to bump up the minimum PHP version. I can do a PR.

@jaimz22
Copy link
Owner

jaimz22 commented Feb 10, 2022

sure! that sounds awesome

@tacman
Copy link
Contributor Author

tacman commented Feb 10, 2022 via email

@jaimz22
Copy link
Owner

jaimz22 commented Feb 10, 2022

yeah a v2 branch sounds like a good idea considering it's not BC for php5

@tacman
Copy link
Contributor Author

tacman commented Feb 10, 2022 via email

@tacman
Copy link
Contributor Author

tacman commented Mar 17, 2022

Any chance you can take a look at this? I'm not sure why the tests fail.

@tacman
Copy link
Contributor Author

tacman commented Sep 29, 2022

hi, @jaimz22 , any chance you could look at my PR? Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants