@@ -79,9 +79,6 @@ |
||
| 79 | 79 | * does the matcher will get the invoked() method called which should check |
| 80 | 80 | * if an expectation is met. |
| 81 | 81 | * |
| 82 | - * @param PHPUnit_Framework_MockObject_Invocation $invocation |
|
| 83 | - * Object containing information on a mocked or stubbed method which |
|
| 84 | - * was invoked. |
|
| 85 | 82 | * @return bool |
| 86 | 83 | * @throws PHPUnit_Framework_ExpectationFailedException |
| 87 | 84 | */ |
@@ -45,10 +45,7 @@ |
||
| 45 | 45 | * the matcher will get the invoked() method called which should check if an |
| 46 | 46 | * expectation is met. |
| 47 | 47 | * |
| 48 | - * @param PHPUnit_Framework_MockObject_Invocation $invocation |
|
| 49 | - * Object containing information on a mocked or stubbed method which |
|
| 50 | - * was invoked. |
|
| 51 | - * @return bool |
|
| 48 | + * @return boolean|null |
|
| 52 | 49 | */ |
| 53 | 50 | public function verify() |
| 54 | 51 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * @param PHPUnit_Framework_TestCase $testCase |
| 75 | - * @param array|string $type |
|
| 75 | + * @param string $type |
|
| 76 | 76 | */ |
| 77 | 77 | public function __construct(PHPUnit_Framework_TestCase $testCase, $type) |
| 78 | 78 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Specifies the subset of methods to mock. Default is to mock all of them. |
| 144 | 144 | * |
| 145 | - * @param array|null $methods |
|
| 145 | + * @param string[] $methods |
|
| 146 | 146 | * @return PHPUnit_Framework_MockObject_MockBuilder |
| 147 | 147 | */ |
| 148 | 148 | public function setMethods($methods) |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | * @param mixed $other Value or object to evaluate. |
| 100 | 100 | * @param string $description Additional information about the test |
| 101 | 101 | * @param bool $returnResult Whether to return a result or throw an exception |
| 102 | - * @return mixed |
|
| 102 | + * @return boolean |
|
| 103 | 103 | * @throws PHPUnit_Framework_ExpectationFailedException |
| 104 | 104 | */ |
| 105 | 105 | public function evaluate($other, $description = '', $returnResult = false) |
@@ -976,6 +976,7 @@ |
||
| 976 | 976 | } |
| 977 | 977 | |
| 978 | 978 | /** |
| 979 | + * @param string $message |
|
| 979 | 980 | */ |
| 980 | 981 | private function showError($message) |
| 981 | 982 | { |
@@ -459,6 +459,9 @@ discard block |
||
| 459 | 459 | } |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | + /** |
|
| 463 | + * @param string $docComment |
|
| 464 | + */ |
|
| 462 | 465 | private static function cleanUpMultiLineAnnotation($docComment) |
| 463 | 466 | { |
| 464 | 467 | //removing initial ' * ' for docComment |
@@ -581,7 +584,7 @@ discard block |
||
| 581 | 584 | * |
| 582 | 585 | * @param string $className |
| 583 | 586 | * @param string $methodName |
| 584 | - * @return bool |
|
| 587 | + * @return boolean|null |
|
| 585 | 588 | * @since Method available since Release 3.4.0 |
| 586 | 589 | */ |
| 587 | 590 | public static function getErrorHandlerSettings($className, $methodName) |
@@ -734,7 +737,7 @@ discard block |
||
| 734 | 737 | * |
| 735 | 738 | * @param string $className |
| 736 | 739 | * @param string $methodName |
| 737 | - * @return bool |
|
| 740 | + * @return boolean|null |
|
| 738 | 741 | * @since Method available since Release 3.4.0 |
| 739 | 742 | */ |
| 740 | 743 | public static function getPreserveGlobalStateSettings($className, $methodName) |
@@ -805,7 +808,7 @@ discard block |
||
| 805 | 808 | * @param string $className |
| 806 | 809 | * @param string $methodName |
| 807 | 810 | * @param string $settingName |
| 808 | - * @return bool |
|
| 811 | + * @return boolean|null |
|
| 809 | 812 | * @since Method available since Release 3.4.0 |
| 810 | 813 | */ |
| 811 | 814 | private static function getBooleanAnnotationSetting($className, $methodName, $settingName) |
@@ -989,7 +992,7 @@ discard block |
||
| 989 | 992 | |
| 990 | 993 | /** |
| 991 | 994 | * @param ReflectionMethod $method |
| 992 | - * @return bool |
|
| 995 | + * @return integer |
|
| 993 | 996 | * @since Method available since Release 4.0.8 |
| 994 | 997 | */ |
| 995 | 998 | private static function isBeforeMethod(ReflectionMethod $method) |
@@ -1009,7 +1012,7 @@ discard block |
||
| 1009 | 1012 | |
| 1010 | 1013 | /** |
| 1011 | 1014 | * @param ReflectionMethod $method |
| 1012 | - * @return bool |
|
| 1015 | + * @return integer |
|
| 1013 | 1016 | * @since Method available since Release 4.0.8 |
| 1014 | 1017 | */ |
| 1015 | 1018 | private static function isAfterMethod(ReflectionMethod $method) |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Set the current local namespace. |
| 117 | 117 | * |
| 118 | - * @param null|array $namespace (default: null) |
|
| 118 | + * @param string[] $namespace (default: null) |
|
| 119 | 119 | * |
| 120 | 120 | * @return null|array |
| 121 | 121 | */ |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @param string $code |
| 143 | 143 | * @param bool $requireSemicolons |
| 144 | 144 | * |
| 145 | - * @return array A set of statements |
|
| 145 | + * @return \PhpParser\Node[] A set of statements |
|
| 146 | 146 | */ |
| 147 | 147 | protected function parse($code, $requireSemicolons = false) |
| 148 | 148 | { |
@@ -216,7 +216,7 @@ |
||
| 216 | 216 | * |
| 217 | 217 | * @throws FatalErrorException |
| 218 | 218 | * |
| 219 | - * @param $interfaces |
|
| 219 | + * @param Node\Name[] $interfaces |
|
| 220 | 220 | * @param Stmt $stmt |
| 221 | 221 | */ |
| 222 | 222 | protected function ensureInterfacesExist($interfaces, $stmt) |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * These arguments will be excluded from help output. |
| 88 | 88 | * |
| 89 | - * @return array |
|
| 89 | + * @return string[] |
|
| 90 | 90 | */ |
| 91 | 91 | protected function getHiddenArguments() |
| 92 | 92 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * These options will be excluded from help output. |
| 110 | 110 | * |
| 111 | - * @return array |
|
| 111 | + * @return string[] |
|
| 112 | 112 | */ |
| 113 | 113 | protected function getHiddenOptions() |
| 114 | 114 | { |