-
I am wondering if there is any way to let the IDE know that a variable in blade (e.g. I've tried using |
Beta Was this translation helpful? Give feedback.
Answered by
brendt
Dec 1, 2021
Replies: 1 comment 1 reply
-
Referencing the function itself with its signature won't be possible. You could type hint the view model itself, but you'd need to call the function on it if you want proper static analysis: @php
/** @var \App\…\PostViewModel $viewModel */
@endphp
{{ $viewModel->formatPrice($post) }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ivandokov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referencing the function itself with its signature won't be possible. You could type hint the view model itself, but you'd need to call the function on it if you want proper static analysis: