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

Make test types compatible with Doctrine DBAL 4.0.x-dev #9402

Merged
merged 1 commit into from Jan 18, 2022
Merged

Make test types compatible with Doctrine DBAL 4.0.x-dev #9402

merged 1 commit into from Jan 18, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented Jan 18, 2022

This is a step towards making the ORM test suite compatible with DBAL 4.0.x-dev.

The test type classes may be reworked by adding return type declarations and remain compatible with DBAL 3.x. Other mock classes (e.g. DatabasePlatformMock) will have to be replaced with PHPUnit mocks since it's impossible to implement both the DBAL 3.x and 4.0-x SPIs statically (without code generation).

@@ -66,36 +66,30 @@ public function testFetchObjectWithAutoIncrementedCustomType(): void
}
}

class DDC5684ObjectIdType extends DBALTypes\IntegerType
class DDC5684ObjectIdType extends DBALTypes\BigIntType
Copy link
Member Author

@morozov morozov Jan 18, 2022

Choose a reason for hiding this comment

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

This is a hack to be able to return a non-integer value from convertToPHPValue() and have the column autoincremented at the same time. Not sure how valid this test is in the first place.

@morozov morozov merged commit 30ea3a2 into doctrine:3.0.x Jan 18, 2022
@morozov morozov deleted the dbal-4.0.x-types branch January 18, 2022 23:53
@derrabus derrabus added this to the 3.0.0 milestone Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants