jaimz22 / DoctrineFullTextPostrgres

A simple to use set of database types, and annotations to use postgresql's full text search engine with doctrine
17 stars 21 forks source link

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

Open tacman opened 2 years ago

tacman commented 2 years ago

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 commented 2 years ago

sure! that sounds awesome

tacman commented 2 years ago

OK, I'm working on it now. Turns out the biggest complication is bumping phpunit, as the current version requires php5!

Let's make this a 2.0 branch, since it's such a big change. I have a setup working with php7.4 and phpunit 6, it passes the first 3 tests and stops on the 4th. Can I push and hand it off to you for a bit?

Tac

On Thu, Feb 10, 2022 at 8:13 AM jaimz22 @.***> wrote:

sure! that sounds awesome

— Reply to this email directly, view it on GitHub https://github.com/jaimz22/DoctrineFullTextPostrgres/issues/23#issuecomment-1034969420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEXIQO7B65XLBG34OURC7TU2PBYFANCNFSM5OA2U5VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

jaimz22 commented 2 years ago

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

tacman commented 2 years ago

I've bumped phpunit to 9.5 (the latest).

I removed 3 tests, one about GetterEntity likely is okay to remove.

The other 2 are more fundamental, and may have something to do with my configuration (capitalization?) It's the two about dolphins.

On Thu, Feb 10, 2022 at 12:28 PM jaimz22 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/jaimz22/DoctrineFullTextPostrgres/issues/23#issuecomment-1035292429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEXIQIOTNJ7JG6POPUPBNDU2P7VJANCNFSM5OA2U5VA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

tacman commented 2 years ago

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

tacman commented 1 year ago

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