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

Fix JsBlock refactor #2019

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Fix JsBlock refactor #2019

merged 1 commit into from
Mar 7, 2023

Conversation

mkrecek234
Copy link
Contributor

A missed refactoring for JsBlock

@mkrecek234 mkrecek234 requested a review from mvorisek March 6, 2023 13:39
Copy link
Member

@mvorisek mvorisek left a comment

Choose a reason for hiding this comment

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

Shouldn't this be detected by

* @phpstan-type JsCallbackSetClosure \Closure(Jquery, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed): (JsExpressionable|View|string|void)
?

Before merging this, I would like to have an explanation why this is not detected by phpstan or if we can help phpstan to detect it in general.

@mvorisek mvorisek changed the title Refactor JsBlock Fix JsBlock refactor Mar 6, 2023
@mvorisek
Copy link
Member

mvorisek commented Mar 6, 2023

Copy link
Member

@mvorisek mvorisek left a comment

Choose a reason for hiding this comment

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

with fixed phpstan the original problem is correctly detected and this PR is correct, thank you

@mvorisek mvorisek merged commit c6b9ed7 into develop Mar 7, 2023
@mvorisek mvorisek deleted the fix_jsblock branch March 7, 2023 08:08
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