Skip to content

Conversation

@derrabus
Copy link
Member

Q A
Branch? 6.0
Bug fix? no
New feature? n0
Deprecations? n0
Tickets N/A
License MIT
Doc PR N/A

@carsonbot
Copy link

Hey!

I think @hurricane-voronin has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

{
private $target;
private $operator = '==';
private ?string $target = null;
Copy link
Member

Choose a reason for hiding this comment

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

the type of the getter probably needs to be updated (or this should default to the empty string).

Copy link
Member Author

Choose a reason for hiding this comment

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

Calling the getter before initialization does not really make sense. The two child classes of Comparator do initialize the property via the constructor. Let's skip the initialization.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's make that class a bit more robust: #42137

@derrabus derrabus force-pushed the types/finder-properties branch from 3232c9f to 2a4b756 Compare July 15, 2021 16:08
Signed-off-by: Alexander M. Turek <me@derrabus.de>
@derrabus derrabus force-pushed the types/finder-properties branch from 2a4b756 to 33f8a66 Compare July 16, 2021 21:20
@Tobion
Copy link
Contributor

Tobion commented Jul 17, 2021

Thank you @derrabus.

@Tobion Tobion merged commit 71a5133 into symfony:6.0 Jul 17, 2021
@derrabus derrabus deleted the types/finder-properties branch July 18, 2021 00:04
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.

4 participants