Implement StoreInterface #103
Annotations
7 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/ArrayObjectTrait.php#L20
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
public function offsetExists($index) : bool
{
- return $this->has((string) $index);
+ return $this->has($index);
}
/**
* @param TKey $index
|
src/ArrayObjectTrait.php#L31
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
public function offsetGet($index)
{
- return $this->get((string) $index);
+ return $this->get($index);
}
/**
* @param TKey $index
|
src/ArrayObjectTrait.php#L52
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
public function offsetUnset($index)
{
- $this->delete((string) $index);
+ $this->delete($index);
}
public function count() : int
{
|
src/Config.php#L74
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function get($key, $default = null)
{
$this->default = $default;
- if (!$this->has((string) $key)) {
+ if (!$this->has($key)) {
return $default;
}
// The class::temp variable is always set by the class::has() method
|
src/Config.php#L105
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
public function set(string $key, $value) : bool
{
- return $this->insertValue($this->storage, $this->buildLevels((string) $key), $value);
+ return $this->insertValue($this->storage, $this->buildLevels($key), $value);
}
public function update(string $key, $value) : bool
{
|
src/Config.php#L168
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
*/
private function buildLevels(string $key) : array
{
- return \explode($this->delimiter ?: '.', $key);
+ return \explode($this->delimiter ? '.' : $this->delimiter, $key);
}
}
|
The logs for this run have expired and are no longer available.
Loading