Issues (16)

src/Chips/Setter.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Config setter (locally affected)
4
 * User: moyo
5
 * Date: 22/03/2018
6
 * Time: 11:16 AM
7
 */
8
9
namespace Carno\Config\Chips;
10
11
trait Setter
12
{
13
    /**
14
     * @param string $key
15
     * @param mixed $val
16
     * @return static
17
     */
18
    public function set(string $key, $val) : self
19
    {
20
        $this->reset($key, $val);
0 ignored issues
show
It seems like reset() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        $this->/** @scrutinizer ignore-call */ 
21
               reset($key, $val);
Loading history...
21
        return $this;
22
    }
23
}
24