Add Session Control object to directly set session key (#4) #30
tests.yml
on: push
PHPStan static code analysis
19s
PHP Code Sniffer static code analysis
11s
Matrix: Mutation testing
Matrix: PHPUnit tests
Annotations
4 warnings
Mutation testing (8.2):
src/Exception/SteppedFormErrorsException.php#L18
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function __construct(public readonly array $errors)
{
- parent::__construct();
+
}
}
|
Mutation testing (8.2):
src/Form/StepControl.php#L35
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
$current = $this->storage->get(self::STORAGE_KEY);
if ($current !== null) {
- throw new AlreadyStartedException((string) $current);
+ throw new AlreadyStartedException($current);
}
}
public function throwIfNotStarted() : void
|
Mutation testing (8.2):
src/Form/Storage/DataStorage.php#L70
Escaped Mutant for Mutator "CastArray":
--- Original
+++ New
@@ @@
*/
private function getData() : array
{
- return (array) $this->storage->get(self::STORAGE_KEY, []);
+ return $this->storage->get(self::STORAGE_KEY, []);
}
/**
* @return string[]
|
Mutation testing (8.2):
src/SteppedForm.php#L142
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
if (!$this->built) {
$this->steps = $this->builder->build($entity);
- $this->built = true;
+ $this->built = false;
}
}
private function rebuild(mixed $entity) : void
|