diff --git a/src/Dto/LeagueDto.php b/src/Dto/LeagueDto.php index 72d48633..f1f659b2 100644 --- a/src/Dto/LeagueDto.php +++ b/src/Dto/LeagueDto.php @@ -200,15 +200,15 @@ class LeagueDto { $this->validationErrors[] = 'Los puntos por partido ganado deben ser superiores a los puntos por empate y por perdida.'; } - if (($this->pointsPerDraw > $this->pointsPerWin)) + if (isset($this->pointsPerDraw, $this->pointsPerWin) && ($this->pointsPerDraw > $this->pointsPerWin)) { $this->validationErrors[] = 'Los puntos por empate deben ser inferiores a los puntos por partido ganado.'; } - if (($this->pointsPerDraw < $this->pointsPerLoss)) + if (isset($this->pointsPerDraw, $this->pointsPerLoss) && ($this->pointsPerDraw < $this->pointsPerLoss)) { $this->validationErrors[] = 'Los puntos por empate deben ser superiores a los puntos por partido perdido.'; } - if ($this->pointsPerWin + $this->pointsPerDraw + $this->pointsPerLoss > 20) + if (isset($this->pointsPerDraw, $this->pointsPerWin, $this->pointsPerLoss) && ($this->pointsPerWin + $this->pointsPerDraw + $this->pointsPerLoss > 20)) { $this->validationErrors[] = 'La suma de los puntos por partidos ganados, perdidos y empatados no puede ser superior a 20.'; } diff --git a/var/cache/dev/url_matching_routes.php.meta b/var/cache/dev/url_matching_routes.php.meta index 3574910b..168b169a 100644 Binary files a/var/cache/dev/url_matching_routes.php.meta and b/var/cache/dev/url_matching_routes.php.meta differ