Magicento icon indicating copy to clipboard operation
Magicento copied to clipboard

Fluent Methods Problematic

Open dac514 opened this issue 11 years ago • 0 comments

PhpStorm 7.1 on OSX, Magicento 2.8

When I "CMD + Hover" over ('core/template'), Magicento correctly detects Mage_Core_Block_Template in the 1st code block. Magicento does not detect Mage_Core_Block_Template in the 2nd code block.

Example:

<?php

class Foo_Bar_RenderController extends Mage_Core_Controller_Front_Action
{

    public function testAction() {

        $blockHtml = $this->getLayout()->createBlock('core/template')
            ->setTemplate('foo_bar/random.phtml')
            ->toHtml(); // Works!

        $blockHtml = $this->getLayout()
            ->createBlock('core/template')
            ->setTemplate('foo_bar/random.phtml')
            ->toHtml(); // Doesn't work?
    }

Expected: "CMD + Hover" over both ('core/template') work.

Best regards,

dac514 avatar Aug 20 '14 18:08 dac514