Add rector and phpstan

This commit is contained in:
2026-05-24 16:30:29 +02:00
parent 3c878d126f
commit b02af503c5
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -48,6 +48,10 @@ jobs:
run: docker compose exec -T php vendor/bin/php-cs-fixer check --diff --show-progress=none
- name: Twig Coding Style
run: docker compose exec -T php vendor/bin/twig-cs-fixer check
- name: Static Analysis (PHPStan)
run: docker compose exec -T php vendor/bin/phpstan analyse --no-progress --no-ansi
- name: Rector
run: docker compose exec -T php vendor/bin/rector process --dry-run
- name: Check HTTP reachability
run: curl -v --fail-with-body http://localhost
- name: Check Mercure reachability
+1
View File
@@ -20,6 +20,7 @@ class Elimination
{
use SoftDeleteableEntity;
use TimestampableEntity;
public const string SCREEN_GREEN = 'green';
public const string SCREEN_RED = 'red';
+1
View File
@@ -18,6 +18,7 @@ use Tvdt\Repository\QuizCandidateRepository;
class QuizCandidate
{
use SoftDeleteableEntity;
#[ORM\Column(type: UuidType::NAME, unique: true)]
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]