Automation #7730
Annotations
10 warnings
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 4094 | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "MBString":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 3)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 13, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 5)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L53
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 11, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L52
Escaped Mutant for Mutator "MBString":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L51
Escaped Mutant for Mutator "MBString":
@@ @@
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
$hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
- return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
+ return new self(sprintf('%08s-%04s-%04x-%04x-%012s', substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
public function compare(UuidInterface $uuid): int
|
Run Infection command:
src/Uuid.php#L47
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
*/
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
- $hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
+ $hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(11));
return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
|
Run Infection command:
src/Uuid.php#L47
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
*/
public static function new(DateTimeInterface $dateTime = new DateTimeImmutable('now')): self
{
- $hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(10));
+ $hex = mb_str_pad(dechex($dateTime->getTimestamp()), 12, '0', STR_PAD_LEFT) . bin2hex(random_bytes(9));
return new self(sprintf('%08s-%04s-%04x-%04x-%012s', mb_substr($hex, 0, 8), mb_substr($hex, 8, 4), hexdec(mb_substr($hex, 12, 4)) & 0xfff | 7 << 12, hexdec(mb_substr($hex, 16, 4)) & 0x3fff | 0x8000, mb_substr($hex, 20, 12)));
}
#[Override]
|
Loading