Olá Alura e comunidade,
estou com erro nos tipos da Entidade:
App\Entity\Employee::setDecimoTerceiro():
Argument #1 ($decimoterceiro) must be of type ?App\Entity\Ativoemp, string given, called in C:\xampp\htdocs\contb\cotab\src\Controller\PagueController.php on line 70
ExceptionLogs 2Stack Trace TypeError in C:\xampp\htdocs\contb\cotab\src\Entity\Employee.php (line 189)
public function getDecimoTerceiro():
?string
{
return $this->decimoterceiro;
}
public function setDecimoTerceiro
(
?Ativoemp $decimoterceiro): void
{
$this->decimoterceiro = $decimoterceiro;
if ($decimoterceiro !==null && $decimoterceiro->
getATDecimoterceiro() !== $this)
{
$decimoterceiro->setATDecimoterceiro($this);
o link do git: git@github.com:tiagobrandao03/cotab.git