Closed
Description
Hi,
I am working with Doctrine Entities and Mongo DB documents.
Doctrine allows us to configure ORM mapping with PHP attributes.
Example:
class UserDevice
{
public function __construct(
#[MongoDB\Id]
private ?string $id,
#[MongoDB\Field(type: Types::DATE_MUTABLE, nullable: true)]
private ?UTCDateTime $updatedAt = null,
) {
}
In this case infection test is changing nullable: true
to nullable: 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?