Skip to content

Fix JsBlock refactor#2019

Merged
mvorisek merged 1 commit intodevelopfrom
fix_jsblock
Mar 7, 2023
Merged

Fix JsBlock refactor#2019
mvorisek merged 1 commit intodevelopfrom
fix_jsblock

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

Development

Successfully merging this pull request may close these issues.

2 participants