-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests : ajout de PHPStan #662
Conversation
858c0bd
to
b407950
Compare
701cf47
to
4e84d2c
Compare
e95e13d
to
7ec2aa6
Compare
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supprimer ce code mort plutot ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'étais allé un peu vite en besogne je trouve, j'ai modifié pour éviter de supprimer ce bout de code : a9878dc
* | ||
* @return \DateTime | ||
*/ | ||
public function getMinDateOfLastRegistration() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@petitalb merci pour le fix. du coup pas possible de récupérer les paramètres dans une Entity ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il me semble que ce n'est pas possible effectivement. Faut passer par un service.
Note, ce code n'était de toute façon pas utilisé, je l'avais déjà remarqué dans ma PR #698.
les tests PHPStan passent 🎉 |
* Add PHPStan package. run in CI * Fix errors from Entities & Controllers * fix errors in BookingController * remove useless from EntityService * remove useless from CommissionJoinOrLeaveEvent * ToggleableHandler: handle() should return bool * fix BeneficiaryService & MembershipService * fix ShiftService * fix SwipeCardEvent & TimeLogEventListener * fix BasePathPicture * fix Commands * Remove unused code * homogenise form error display Co-authored-by: Albin PETIT <[email protected]>
Voir l'issue #699
Suite de #661
Pour lancer la commande en local (après avoir fait un
composer install
)