mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

{varType} vs <div> issue #160

Closed nufue closed 1 month ago

nufue commented 3 months ago

Describe the bug {varType} does not seem to be working in combination with <div>.

Environment (please complete the following information):

To Reproduce

  1. Paste code below to a new file.
  2. See that $amd is hinted as undefined variable, even though it is specified in {varType}.
  3. Additionally when I replace the <div class="product-detail"> with <span>, PHPStorm recognizes $amd as defined and of type App\Model\Standards\Amendment.

Code

{varType App\Model\Standards\Amendment $amd}

{block content}
    <div class="product-detail">
        {if $amd->isEligibleForOrder()}
        {/if}
    </div>
{/block}

Screenshots image image

mesour commented 1 month ago

This was old 2.0 try, it will be work in new 2.0