Skip to content

Add type to ColocatedMappingDriver::isTransient()#318

Merged
derrabus merged 1 commit intodoctrine:3.1.xfrom
derrabus:types/mapping-driver
Dec 13, 2022
Merged

Add type to ColocatedMappingDriver::isTransient()#318
derrabus merged 1 commit intodoctrine:3.1.xfrom
derrabus:types/mapping-driver

Conversation

@derrabus
Copy link
Member

The MappingDriver::isTransient() was upgraded with a type for the $className parameter, but apparently we forgot to do the same on the ColocatedMappingDriver trait. This PR corrects this mistake. Adding the type to an abstract method should be safe in PHP 7.2 and up.

@derrabus derrabus added the Bug Something isn't working label Dec 13, 2022
@derrabus derrabus added this to the 3.1.1 milestone Dec 13, 2022
@derrabus derrabus requested a review from greg0ire December 13, 2022 20:18
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

There are build issues to address.

@derrabus derrabus force-pushed the types/mapping-driver branch from 30106bb to f5c65af Compare December 13, 2022 21:09
@derrabus
Copy link
Member Author

Done.

@derrabus derrabus merged commit d87426f into doctrine:3.1.x Dec 13, 2022
@derrabus derrabus deleted the types/mapping-driver branch December 13, 2022 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants