for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helmut\Forms\Fields\ParagraphText;
use Helmut\Forms\Field;
use Helmut\Forms\Utility\Validate;
class ParagraphText extends Field {
public $value = '';
public function getValue()
{
return $this->value;
}
public function getButtonName()
//
public function renderWith()
return ['value' => $this->value];
public function setValueFromDefault()
$this->value = $this->default;
$this->default
array
string
$value
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..
public function setValueFromModel($model)
if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
public function setValueFromRequest($request)
$this->value = $request->get($this->name);
public function fillModelWithValue($model)
if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
public function validateRequired()
return Validate::required($this->value);
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..