for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Del\Traits;
use Del\Entity\Country;
use Del\Factory\CountryFactory;
use Doctrine\ORM\Mapping as ORM;
trait HasCountryTrait
{
/**
* @var Country $country
* @ORM\Column(type="string", length=3, nullable=false)
*/
private $country;
* @return Country
public function getCountry(): Country
return CountryFactory::generate($this->country);
}
* @param Country $country
public function setCountry(Country $country): void
$this->country = $country->getIso();
$country->getIso()
string
object<Del\Entity\Country>
$country
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..
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..