It seems like $this->key can also be of type Chekote\NounStore\Key; however, parameter $mock of Phake::when() does only seem to accept Phake_IMock, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The method isPossessive() does not exist on Chekote\Phake\Proxies\VisibilityProxy. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
It seems like $this->key can also be of type Chekote\NounStore\Key; however, parameter $mock of Chekote\Phake\Phake::makeVisible() does only seem to accept Phake_IMock, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return array(array('Cust...h Customer's 4th Car')) returns the type array<integer,array<integer,string>> which is incompatible with the documented return type string[].
Loading history...
36
["Customer's Car"],
37
["8th Customer's Car"],
38
["Customer's 2nd Car"],
39
["7th Customer's 4th Car"],
40
];
41
}
42
43
/**
44
* @dataProvider nonPossessiveNouns
45
*/
46
public function testReturnsFalseForNonPossessiveNoun($noun) {
It seems like $this->key can also be of type Chekote\NounStore\Key; however, parameter $mock of Chekote\Phake\Phake::makeVisible() does only seem to accept Phake_IMock, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return array(array('Item'), array('1st Item')) returns the type array<integer,array<integer,string>> which is incompatible with the documented return type string[].