Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Finder] Add types to private properties #42106

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

Merged
merged 1 commit into from
Jul 17, 2021

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

@@ -18,8 +18,8 @@
*/
class Comparator
{
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.