ReportsViolations
For classes that took a logger before violations existed, and now accept a ViolationReporter in its place.
A logger still works and receives the same messages as before. Accepting a logger is deprecated and will be removed in the next major version, together with this trait.
Table of Contents
Methods
- reportViolation() : void
Methods
reportViolation()
private
reportViolation(LoggerInterface|ViolationReporter|null $reporter, Violation $violation) : void
Parameters
- $reporter : LoggerInterface|ViolationReporter|null
- $violation : Violation