Ingen beskrivning

Olivier Massot f5ff52c117 fix phpstan errors 10 månader sedan
bin fe765c792e setup new public events view and override schema:update command 3 år sedan
config 41aa21a27f resolve conflicts 10 månader sedan
doc 1a80feaef8 minor fixes 11 månader sedan
env 32f3b28f9f merge feature/V8-6489-dvelopperloutil-de-cration-des- 11 månader sedan
fixtures 92462a4671 upgrade 3.1.2 2 år sedan
migrations 258fa22c3b Revert "tests applicatifs" 1 år sedan
old f96da113d5 réparer les tests applicatifs 1 år sedan
public 1a88782387 style fixes for CMF licence 10 månader sedan
sql 02ba4ae397 resolve conflicts 10 månader sedan
src f5ff52c117 fix phpstan errors 10 månader sedan
templates 1a88782387 style fixes for CMF licence 10 månader sedan
tests af9490731c Merge branch 'feature/test_path-php_integration' into develop 10 månader sedan
translations cfeafc1114 fix cmf licence translation 2 år sedan
.env efbb02c8eb minor fixes 10 månader sedan
.gitignore 3f482b9009 schema validation : add snippets making, and various fixes 1 år sedan
.gitlab-ci.yml 57654cdad9 fix ci 1 år sedan
.php-cs-fixer.dist.php ad81dfbf35 disable yoda style in cs fixer 1 år sedan
application_tests.sh 35dc4cf0c0 script lancement de test 1 år sedan
composer.json 985f99ae04 add phpstan-deprecation-rules and fix 10 månader sedan
icon.svg 571cc0322a post MR fixes; add HttpCodeEnum and fix return codes 2 år sedan
logo.png 51b2e302e9 add logo 4 år sedan
phpstan.neon.dist d58cf7788d add phpstan 'ergebnis' pack of rules and apply fixes 10 månader sedan
phpunit.xml.dist 2c51844686 tests applicatifs 1 år sedan
readme.md 92793a37fb fix and complete unit tests 1 år sedan

readme.md

AP2I

pipeline status coverage report

Démarrer le handler de messenger

Pour consommer les signaux messengers, lancer :

php bin/console messenger:consume async

En cas d'erreur lié à l'absence de la table messenger_messages, lancer d'abord :

php bin/console messenger:setup-transports

Voir: https://symfony.com/doc/5.4/messenger.html#consuming-messages-running-the-worker

Chercher les erreurs avec phpstan

Pour exécuter une analyse du code :

vendor/bin/phpstan analyse

Voir : https://phpstan.org/user-guide/getting-started

PHPStan

Le fichier comportant la configuration pour chacun est phpstan.neon.dist Le fichier phpstan.neon n'est pas versionné et surcharge les valeurs du .dist

Principales commandes

Pour lancer l'analyse

vendor/bin/phpstan analyse

Pour vider le cache (utiles entre chaque analyse si les modifications ne sont pas prises en compte)

vendor/bin/phpstan clear-result-cache

Voir : https://phpstan.org/

CS Fixer

Vérifier le code

php vendor/bin/php-cs-fixer check --config=.php-cs-fixer.dist.php

Corriger le formatage du code automatiquement

php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php

Phpunit

XDEBUG_MODE=coverage php -d memory_limit=-1 /var/www/html/vendor/phpunit/phpunit/phpunit --testsuite unit --configuration /var/www/html/phpunit.xml.dist