It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like new \Minime\Annotations\Types\JsonType() of type object<Minime\Annotations\Types\JsonType> is incompatible with the declared type object<Minime\Annotations\Types\TypeInterface> of property $instance.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
The expression self::$instance; of type Minime\Annotations\Types...ons\Types\TypeInterface adds the type Minime\Annotations\Types\TypeInterface to the return on line 20 which is incompatible with the return type declared by the abstract method Minime\Annotations\Types\AbstractType::getType of type Minime\Annotations\Interfaces\TypeInterface.
Loading history...
21
}
22
23
/**
24
* Filter a value to be a Json
25
*
26
* @param string $value
27
* @param null $annotation Unused
28
* @throws \Minime\Annotations\ParserException
29
* @return mixed
30
*/
31
public function parse($value, $annotation = null)
32
{
33
$json = static::jsonDecode($value);
34
if (JSON_ERROR_NONE != json_last_error()) {
35
throw new ParserException("Raw value must be a valid JSON string. Invalid value '{$value}' given.");
36
}
37
38
return $json;
39
}
40
41
/**
42
* Wrapper fo json_decode function that keeps parser portable
43
* between json-ext and pecl-json-c extensions
44
*
45
* @param string $value json string
46
* @return mixed
47
*/
48
public static function jsonDecode($value)
49
{
50
if (defined('JSON_PARSER_NOTSTRICT')) { // pecl-json-c ext
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..