for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace eXpansion\Bundle\Acme\Plugins\Gui;
use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
use eXpansion\Framework\Core\Model\Gui\Widget;
use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
use eXpansion\Framework\Core\Plugins\Gui\WindowFactory as BaseWindowFactory;
use eXpansion\Framework\Gui\Components\uiButton;
use eXpansion\Framework\Gui\Components\uiCheckbox;
use eXpansion\Framework\Gui\Components\uiDropdown;
use eXpansion\Framework\Gui\Components\uiLabel;
use eXpansion\Framework\Gui\Components\uiLine;
use eXpansion\Framework\Gui\Components\uiTooltip;
use eXpansion\Framework\Gui\Layouts\layoutLine;
use eXpansion\Framework\Gui\Layouts\layoutRow;
use FML\Controls\Label;
use FML\Controls\Quad;
class MemoryWidgetFactory extends WidgetFactory
{
protected $memoryMessage = "";
protected function createContent(ManialinkInterface $manialink)
parent::createContent($manialink);
$this->memoryMessage = new Label();
new \FML\Controls\Label()
object<FML\Controls\Label>
string
$memoryMessage
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->memoryMessage->setTextPrefix('$s')->setText("waiting data...");
$manialink->getContentFrame()->setScale(0.8)->setPosition(160, -130);
$manialink->addChild($this->memoryMessage);
}
public function setMemory($msg)
$this->memoryMessage->setText($msg);
setText
$this->memoryMessage
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..