Run updated tools

This commit is contained in:
2026-06-23 22:55:27 +02:00
parent 2583ba5bf9
commit 1488c6bbea
12 changed files with 33 additions and 13 deletions
+3 -3
View File
@@ -727,7 +727,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connection.
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
@@ -773,7 +773,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connection.
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
@@ -852,7 +852,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
* lock_path?: scalar|Param|null, // Default: "%kernel.cache_dir%/doctrine/orm/slc/filelock"
* lock_lifetime?: scalar|Param|null, // Default: 60
* type?: scalar|Param|null, // Default: "default"
* lifetime?: scalar|Param|null, // Default: 0
* lifetime?: scalar|Param|null, // Default: null
* service?: scalar|Param|null,
* name?: scalar|Param|null,
* }>,
+2
View File
@@ -12,7 +12,9 @@ use Symfony\Component\Console\Style\SymfonyStyle;
use Tvdt\Entity\Season;
use Tvdt\Repository\SeasonRepository;
use Tvdt\Repository\UserRepository;
use Tvdt\Tests\Command\ClaimSeasonCommandTest;
/** @see ClaimSeasonCommandTest */
#[AsCommand(
name: 'tvdt:claim-season',
description: 'Give a user owner rights on a season',
+2
View File
@@ -9,7 +9,9 @@ use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Style\SymfonyStyle;
use Tvdt\Repository\UserRepository;
use Tvdt\Tests\Command\MakeAdminCommandTest;
/** @see MakeAdminCommandTest */
#[AsCommand(
name: 'tvdt:make-admin',
description: 'Give a user the role admin',
+3 -3
View File
@@ -31,14 +31,14 @@ class GivenAnswer
public function __construct(
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
private(set) Candidate $candidate,
public private(set) Candidate $candidate,
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
#[ORM\ManyToOne]
private(set) Quiz $quiz,
public private(set) Quiz $quiz,
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
private(set) Answer $answer,
public private(set) Answer $answer,
) {}
}
+2
View File
@@ -5,7 +5,9 @@ declare(strict_types=1);
namespace Tvdt\Helpers;
use Safe\Exceptions\UrlException;
use Tvdt\Tests\Helpers\Base64Test;
/** @see Base64Test */
class Base64
{
public static function base64UrlEncode(string $input): string
+3 -1
View File
@@ -10,8 +10,10 @@ use Safe\Exceptions\UrlException;
use Tvdt\Entity\Candidate;
use Tvdt\Entity\Season;
use Tvdt\Helpers\Base64;
use Tvdt\Tests\Repository\CandidateRepositoryTest;
/** @extends ServiceEntityRepository<Candidate> */
/** @extends ServiceEntityRepository<Candidate>
* @see CandidateRepositoryTest */
class CandidateRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
+3 -1
View File
@@ -8,8 +8,10 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Tvdt\Entity\Candidate;
use Tvdt\Entity\Question;
use Tvdt\Tests\Repository\QuestionRepositoryTest;
/** @extends ServiceEntityRepository<Question> */
/** @extends ServiceEntityRepository<Question>
* @see QuestionRepositoryTest */
class QuestionRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
+3 -1
View File
@@ -10,8 +10,10 @@ use Safe\DateTimeImmutable;
use Tvdt\Entity\Candidate;
use Tvdt\Entity\Quiz;
use Tvdt\Entity\QuizCandidate;
use Tvdt\Tests\Repository\QuizCandidateRepositoryTest;
/** @extends ServiceEntityRepository<QuizCandidate> */
/** @extends ServiceEntityRepository<QuizCandidate>
* @see QuizCandidateRepositoryTest */
class QuizCandidateRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
+3 -1
View File
@@ -13,8 +13,10 @@ use Symfony\Component\Uid\Uuid;
use Tvdt\Dto\Result;
use Tvdt\Entity\Quiz;
use Tvdt\Exception\ErrorClearingQuizException;
use Tvdt\Tests\Repository\QuizRepositoryTest;
/** @extends ServiceEntityRepository<Quiz> */
/** @extends ServiceEntityRepository<Quiz>
* @see QuizRepositoryTest */
class QuizRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry, private readonly LoggerInterface $logger)
+3 -1
View File
@@ -8,8 +8,10 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Tvdt\Entity\Season;
use Tvdt\Entity\User;
use Tvdt\Tests\Repository\SeasonRepositoryTest;
/** @extends ServiceEntityRepository<Season> */
/** @extends ServiceEntityRepository<Season>
* @see SeasonRepositoryTest */
class SeasonRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
+3 -1
View File
@@ -9,8 +9,10 @@ use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Tvdt\Entity\User;
use Tvdt\Tests\Repository\UserRepositoryTest;
/** @extends ServiceEntityRepository<User> */
/** @extends ServiceEntityRepository<User>
* @see UserRepositoryTest */
class UserRepository extends ServiceEntityRepository implements PasswordUpgraderInterface
{
public function __construct(ManagerRegistry $registry)
+3 -1
View File
@@ -14,8 +14,10 @@ use Tvdt\Entity\Question;
use Tvdt\Entity\Quiz;
use Tvdt\Entity\Season;
use Tvdt\Entity\User;
use Tvdt\Tests\Security\Voter\SeasonVoterTest;
/** @extends Voter<string, Season|Elimination|Quiz|Candidate|Answer|Question> */
/** @extends Voter<string, Season|Elimination|Quiz|Candidate|Answer|Question>
* @see SeasonVoterTest */
final class SeasonVoter extends Voter
{
public const string EDIT = 'SEASON_EDIT';