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

Fixed phpstan issues #9

Closed
wants to merge 2 commits into from
Closed

Fixed phpstan issues #9

wants to merge 2 commits into from

Conversation

mabar
Copy link
Contributor

@mabar mabar commented Nov 5, 2019

PHPStan should not report any issues, so I removed it from allow_failure to prevent any new issues in future

@dg
Copy link
Member

dg commented Nov 5, 2019

👎 for removing from allow_failure because it is big complication for me.

@mabar
Copy link
Contributor Author

mabar commented Nov 5, 2019

As you wish, reverted

@dg
Copy link
Member

dg commented Nov 6, 2019

Why is annotation $components confusing?

@mabar
Copy link
Contributor Author

mabar commented Nov 6, 2019

There is also $components property with typehint IComponent[]

@dg
Copy link
Member

dg commented Nov 6, 2019

Where?

@mabar
Copy link
Contributor Author

mabar commented Nov 6, 2019

@dg
Copy link
Member

dg commented Nov 6, 2019

But it is a different private property.

@mabar
Copy link
Contributor Author

mabar commented Nov 6, 2019

How is anyone supposed to understand that two properties with same name are not the same one? It's not possible to do without magic.

@mabar mabar closed this Nov 6, 2019
@dg
Copy link
Member

dg commented Nov 6, 2019

The second one is shortcut for getComponents(), presented for back compatibility. And magic is well documented https://doc.nette.org/cs/3.0/smartobject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants