Magicento
Magicento copied to clipboard
Fluent Methods Problematic
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,