src/Config/Config.php

Summary

Maintainability
A
0 mins
Test Coverage

Possibly zero references to public method \Mvc5\Config\Config::has()
Open

    function has($name) : bool
Severity: Minor
Found in src/Config/Config.php by phan

Returning type \Mvc5\Config\Config but with() is declared to return \Mvc5\Config\Model
Open

        return $new;
Severity: Minor
Found in src/Config/Config.php by phan

Returning type \Mvc5\Config\Config but without() is declared to return \Mvc5\Config\Model
Open

        return $new;
Severity: Minor
Found in src/Config/Config.php by phan

Return type of set() is undeclared type \Mvc5\Config\mixed
Open

    function set($name, $value = null) : mixed
Severity: Minor
Found in src/Config/Config.php by phan

Doc-block of with contains declared return type mixed which is incompatible with the return type \Mvc5\Config\Model declared in the signature
Open

     * @return Model|mixed
Severity: Minor
Found in src/Config/Config.php by phan

Declaration of function without(array|string $name) : \Mvc5\Config\Model|mixed should be compatible with function without(array|string $name, array $options = null) : \Mvc5\Cookie\Cookies defined in /code/src/Cookie/Cookies.php:31
Open

    function without($name) : Model
Severity: Minor
Found in src/Config/Config.php by phan

Declaration of function without($name) : \Mvc5\Config\Model should be compatible with function without($name, array $options = null) : \Mvc5\Cookie\Cookies (the method override accepts 1 parameter(s), but the overridden method can accept 2) defined in /code/src/Cookie/Cookies.php:31
Open

    function without($name) : Model
Severity: Minor
Found in src/Config/Config.php by phan

Doc-block of without contains declared return type mixed which is incompatible with the return type \Mvc5\Config\Model declared in the signature
Open

     * @return Model|mixed
Severity: Minor
Found in src/Config/Config.php by phan

Doc-block of set contains declared return type mixed which is incompatible with the return type \Mvc5\Config\mixed declared in the signature
Open

     * @return mixed
Severity: Minor
Found in src/Config/Config.php by phan

Returning type array but set() is declared to return \Mvc5\Config\mixed
Open

        return $name;
Severity: Minor
Found in src/Config/Config.php by phan

Declaration of function with(array|string $name, mixed $value = null) : \Mvc5\Config\Model|mixed should be compatible with function with(array|string $name, null|string $value = null, array $options = null) : \Mvc5\Cookie\Cookies defined in /code/src/Cookie/Cookies.php:24
Open

    function with($name, $value = null) : Model
Severity: Minor
Found in src/Config/Config.php by phan

Declaration of function with($name, $value = null) : \Mvc5\Config\Model should be compatible with function with($name, $value = null, array $options = null) : \Mvc5\Cookie\Cookies (the method override accepts 2 parameter(s), but the overridden method can accept 3) defined in /code/src/Cookie/Cookies.php:24
Open

    function with($name, $value = null) : Model
Severity: Minor
Found in src/Config/Config.php by phan

There are no issues that match your filters.

Category
Status