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

[TASK] Tune RenderingContext withAttribute() and getAttribute() #882

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

lolli42
Copy link
Member

@lolli42 lolli42 commented Jun 26, 2024

getAttribute($className) now always returns an instance of $className, or throws. This avoids checking the returned instance and helps with type hinting in IDEs.

getAttribute($className) now always returns an instance of
$className, or throws. This avoids checking the returned
instance and helps with type hinting in IDEs.
@s2b
Copy link
Contributor

s2b commented Jun 26, 2024

I can confirm that code completion works in my VSCode setup:

genericsCodeCompletion

Due to a bug in PhpStorm, we can't test this, but we can expect it to work there, too.

@lolli42
Copy link
Member Author

lolli42 commented Jun 26, 2024

@lolli42 lolli42 force-pushed the lolli-1 branch 2 times, most recently from 9865590 to 20d289a Compare June 26, 2024 14:17
@lolli42 lolli42 merged commit f8556bc into main Jun 26, 2024
8 checks passed
@lolli42 lolli42 deleted the lolli-1 branch June 26, 2024 14:39
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.

2 participants