for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AramisAuto\EmailController;
class Message
{
public $id;
public $raw;
public $headers;
public $text;
public $html;
public $subject;
public $from = array();
public $to = array();
public $cc = array();
public $source;
public $metadata = array();
public function setRaw($raw)
$this->raw = $raw;
}
public function setHeaders(array $headers)
// All headers must be case sensitive
$headersLower = new \stdClass();
foreach ($headers as $name => $value) {
$nameLower = strtolower($name);
$headersLower->$nameLower = $value;
$this->headers = $headersLower;
public function setText($text)
$this->text = $text;
public function setHtml($html)
$this->html = $html;
public function setSubject($subject)
$this->subject = $subject;
public function setFrom($email, $name = null)
$from = new \StdClass();
$from->email = $email;
$from->name = $name;
$this->from = $from;
$from
object<stdClass>
array
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 setTo(array $tos)
$objTo = new \StdClass();
foreach ($tos as $to) {
$objTo->email = $to[0];
$objTo->name = $to[1];
$this->to = $objTo;
$objTo
$to
public function setCc(array $ccs)
$objCc = new \StdClass();
foreach ($ccs as $cc) {
$objCc->email = $cc[0];
$objCc->name = $cc[1];
$this->cc = $objCc;
$objCc
$cc
public function setSource($source)
$this->source = $source;
public function setId($id)
$this->id = $id;
public function hasMetadata($name)
return array_key_exists($name, $this->metadata);
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..