@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Prophecy\Doubler\ClassPatch; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class ReflectionClassNewInstancePatchSpec extends ObjectBehavior |
9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Prophecy\Doubler; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class DoublerSpec extends ObjectBehavior |
9 | 8 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | 6 | use I\Simply; |
7 | - |
|
8 | 7 | use ReflectionClass; |
9 | 8 | use ReflectionMethod; |
10 | 9 | use ReflectionParameter; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Prophecy\Prediction; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | - |
|
7 | 6 | use RuntimeException; |
8 | 7 | |
9 | 8 | class CallbackPredictionSpec extends ObjectBehavior |
@@ -312,6 +312,9 @@ |
||
312 | 312 | public $errors; |
313 | 313 | public $value = null; |
314 | 314 | |
315 | + /** |
|
316 | + * @param string $value |
|
317 | + */ |
|
315 | 318 | public function __construct($value) |
316 | 319 | { |
317 | 320 | $this->value = $value; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * Scores 10 if argument matches preset value. |
47 | 47 | * |
48 | - * @param $argument |
|
48 | + * @param string $argument |
|
49 | 49 | * |
50 | 50 | * @return bool|int |
51 | 51 | */ |
@@ -126,6 +126,9 @@ |
||
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param string $methodName |
|
131 | + */ |
|
129 | 132 | private function createUnexpectedCallException(ObjectProphecy $prophecy, $methodName, |
130 | 133 | array $arguments) |
131 | 134 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param ObjectProphecy $objectProphecy |
41 | 41 | * @param string $methodName |
42 | - * @param null|Argument\ArgumentsWildcard|array $arguments |
|
42 | + * @param Argument\ArgumentsWildcard $arguments |
|
43 | 43 | * |
44 | 44 | * @throws \Prophecy\Exception\Doubler\MethodNotFoundException If method not found |
45 | 45 | */ |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * Checks provided prediction immediately. |
264 | 264 | * |
265 | - * @param callable|Prediction\PredictionInterface $prediction |
|
265 | + * @param Prediction\PredictionInterface $prediction |
|
266 | 266 | * |
267 | 267 | * @return $this |
268 | 268 | * |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | /** |
369 | 369 | * Returns currently registered promise. |
370 | 370 | * |
371 | - * @return null|Promise\PromiseInterface |
|
371 | + * @return Promise\PromiseInterface |
|
372 | 372 | */ |
373 | 373 | public function getPromise() |
374 | 374 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | /** |
379 | 379 | * Returns currently registered prediction. |
380 | 380 | * |
381 | - * @return null|Prediction\PredictionInterface |
|
381 | + * @return Prediction\PredictionInterface |
|
382 | 382 | */ |
383 | 383 | public function getPrediction() |
384 | 384 | { |
@@ -259,7 +259,7 @@ |
||
259 | 259 | * Appends code coverage data. |
260 | 260 | * |
261 | 261 | * @param array $data |
262 | - * @param mixed $id |
|
262 | + * @param null|string $id |
|
263 | 263 | * @param bool $append |
264 | 264 | * @param mixed $linesToBeCovered |
265 | 265 | * @param array $linesToBeUsed |