You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while disabling mutating Attributes is not supported out of the box, you can achieve it by global-ignoreSourceCodeByRegex setting in infection.json5 config:
{"mutators": {"@default": true,"global-ignoreSourceCodeByRegex": [// to not mutate `nullable: false` to `nullable: true` or `unique: true` as unit tests don't cover it".*\\#\\[MongoDB\\\\Field.*",".*\\#\\[ORM\\\\JoinColumn.*",".*\\#\\[ORM\\\\Column.*"]}}
Hi,
I am working with Doctrine Entities and Mongo DB documents.
Doctrine allows us to configure ORM mapping with PHP attributes.
Example:
In this case infection test is changing
nullable: true
tonullable: false
.There is no direct way of handling this mutant, especially with unit tests.
Can we add a config, using which we can disable mutation of PHP attributes at all?
The text was updated successfully, but these errors were encountered: