Doctrine major updates #1369
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function prePersist(PrePersistEventArgs $args) : void
{
- if (!$args->getObject() instanceof PositionAwareInterface) {
+ if (!true) {
return;
}
$this->uniquePosition($args);
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function prePersist(PrePersistEventArgs $args) : void
{
- if (!$args->getObject() instanceof PositionAwareInterface) {
+ if (!false) {
return;
}
$this->uniquePosition($args);
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/SortableListener.php#L55
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
public function prePersist(PrePersistEventArgs $args) : void
{
- if (!$args->getObject() instanceof PositionAwareInterface) {
+ if ($args->getObject() instanceof PositionAwareInterface) {
return;
}
$this->uniquePosition($args);
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/SortableListener.php#L81
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function preRemove(PreRemoveEventArgs $args) : void
{
$entity = $args->getObject();
- if ($entity instanceof PositionAwareInterface) {
+ if (false) {
$this->movePosition($args->getObjectManager(), $entity, -1);
}
}
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/UniqueActiveListener.php#L52
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function prePersist(PrePersistEventArgs $args) : void
{
- $this->uniqueActive($args);
+
}
public function preUpdate(PreUpdateEventArgs $args) : void
{
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/UniqueActiveListener.php#L57
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function preUpdate(PreUpdateEventArgs $args) : void
{
- $this->uniqueActive($args);
+
}
/**
* @throws MappingException
|
Run mutation tests with pcov and infection/infection:
src/EventListener/ORM/UniqueActiveListener.php#L88
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
private function uniqueActive(LifecycleEventArgs $args) : void
{
$entity = $args->getObject();
- if (!$entity instanceof UniqueActiveInterface) {
+ if (!false) {
return;
}
if (!$entity->isActive()) {
|
Run mutation tests with pcov and infection/infection:
src/Manager/ORM/BaseQueryTrait.php#L28
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
*/
protected final function addOrder(QueryBuilder $builder, array $sort, string $defaultAlias, array $aliasMapping = [], string $defaultOrder = 'asc') : QueryBuilder
{
- foreach ($sort as $field => $order) {
+ foreach (array() as $field => $order) {
if (\is_int($field)) {
$field = $order;
$order = $defaultOrder;
|
Run mutation tests with pcov and infection/infection:
src/Manager/ORM/BaseQueryTrait.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$field = $order;
$order = $defaultOrder;
}
- $this->addOrderField($builder, $defaultAlias, $field, $order, $aliasMapping);
+
}
return $builder;
}
|
Run mutation tests with pcov and infection/infection:
src/Manager/ORM/BaseQueryTrait.php#L57
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException(sprintf('The fieldname "%s" cannot contain more than one dot', $field));
}
// Map entity to table name
- if (2 === \count($fieldSpl)) {
+ if (1 === \count($fieldSpl)) {
[$table, $field] = $fieldSpl;
foreach ($aliasMapping as $k => $v) {
if ($fieldSpl[0] === $k) {
|
The logs for this run have expired and are no longer available.
Loading