docs: update readme description #23
integrate.yml
on: pull_request
commit-linting
13s
markdown-linting
7s
Matrix: code-coverage
Matrix: coding-standards
Matrix: dependency-analysis
Matrix: mutation-testing
Matrix: security-analysis
Matrix: static-analysis
Annotations
8 warnings
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L102
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @throws NotFoundExceptionInterface
* @throws Throwable
*/
- public final function save(bool $cascade = true) : StateInterface
+ public final function save(bool $cascade = false) : StateInterface
{
/** @var EntityManager $entityManager */
$entityManager = Facade::getEntityManager();
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L108
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
/** @var EntityManager $entityManager */
$entityManager = Facade::getEntityManager();
$entityManager->persist($this, $cascade);
- return $entityManager->run(throwException: false);
+ return $entityManager->run(throwException: true);
}
/**
* Persists the current entity and throws an exception if an error occurs.
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L118
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @throws NotFoundExceptionInterface
* @throws Throwable
*/
- public final function saveOrFail(bool $cascade = true) : StateInterface
+ public final function saveOrFail(bool $cascade = false) : StateInterface
{
/** @var EntityManager $entityManager */
$entityManager = Facade::getEntityManager();
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L131
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
- public final function persist(bool $cascade = true) : EntityManagerInterface
+ public final function persist(bool $cascade = false) : EntityManagerInterface
{
return Facade::getEntityManager()->persist($this, $cascade);
}
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L141
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @throws NotFoundExceptionInterface
* @throws Throwable
*/
- public final function delete(bool $cascade = true) : StateInterface
+ public final function delete(bool $cascade = false) : StateInterface
{
/** @var EntityManager $entityManager */
$entityManager = Facade::getEntityManager();
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/ActiveRecord.php#L147
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
/** @var EntityManager $entityManager */
$entityManager = Facade::getEntityManager();
$entityManager->delete($this, $cascade);
- return $entityManager->run(throwException: false);
+ return $entityManager->run(throwException: true);
}
/**
* @throws ContainerExceptionInterface
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/Bridge/Spiral/Bootloader/ActiveRecordBootloader.php#L21
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return [CycleOrmBootloader::class];
}
- public function init(ContainerInterface $container) : void
+ protected function init(ContainerInterface $container) : void
{
Facade::setContainer($container);
}
}
|
mutation-testing (ubuntu-latest, 8.2, locked):
src/Facade.php#L41
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
if (null === self::$container) {
throw new RuntimeException('The container is not configured.');
}
- self::$orm ??= self::$container->get(ORMInterface::class);
+ self::$orm = self::$container->get(ORMInterface::class);
if (null === self::$orm) {
throw new RuntimeException('The ORM Carrier is not configured.');
}
|