@@ -530,7 +530,7 @@ |
||
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | /** |
| 533 | - * @return boolean|string |
|
| 533 | + * @return false|string |
|
| 534 | 534 | */ |
| 535 | 535 | public function getParent() |
| 536 | 536 | { |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | interface b extends a |
| 16 | 16 | { |
| 17 | + /** |
|
| 18 | + * @return void |
|
| 19 | + */ |
|
| 17 | 20 | public function baz(Baz $baz); |
| 18 | 21 | } |
| 19 | 22 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @param PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection |
| 38 | 38 | * @param PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher |
| 39 | - * @param array $configurableMethods |
|
| 39 | + * @param string[] $configurableMethods |
|
| 40 | 40 | */ |
| 41 | 41 | public function __construct(PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection, PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher, array $configurableMethods) |
| 42 | 42 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @param mixed $value |
|
| 86 | + * @param string $value |
|
| 87 | 87 | * @param mixed $nextValues, ... |
| 88 | 88 | * |
| 89 | 89 | * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker |
@@ -222,6 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @param array ...$arguments |
| 225 | + * @param string $arguments |
|
| 225 | 226 | * |
| 226 | 227 | * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker |
| 227 | 228 | */ |
@@ -261,7 +262,7 @@ discard block |
||
| 261 | 262 | } |
| 262 | 263 | |
| 263 | 264 | /** |
| 264 | - * @param PHPUnit_Framework_Constraint|string $constraint |
|
| 265 | + * @param string $constraint |
|
| 265 | 266 | * |
| 266 | 267 | * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker |
| 267 | 268 | */ |
@@ -397,7 +397,7 @@ |
||
| 397 | 397 | * @param bool $callOriginalClone |
| 398 | 398 | * @param bool $callAutoload |
| 399 | 399 | * |
| 400 | - * @return object |
|
| 400 | + * @return PHPUnit_Framework_MockObject_MockObject |
|
| 401 | 401 | * |
| 402 | 402 | * @throws PHPUnit_Framework_MockObject_RuntimeException |
| 403 | 403 | * @throws PHPUnit\Framework\Exception |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param mixed $id |
| 66 | 66 | * |
| 67 | - * @return bool|null |
|
| 67 | + * @return PHPUnit_Framework_MockObject_Builder_Match|null |
|
| 68 | 68 | */ |
| 69 | 69 | public function lookupId($id) |
| 70 | 70 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | - * @return bool |
|
| 167 | + * @return boolean|null |
|
| 168 | 168 | */ |
| 169 | 169 | public function verify() |
| 170 | 170 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * @param PHPUnit_Framework_MockObject_Invocation $invocation |
| 63 | 63 | * |
| 64 | - * @return bool |
|
| 64 | + * @return boolean|null |
|
| 65 | 65 | */ |
| 66 | 66 | public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) |
| 67 | 67 | { |
@@ -41,9 +41,8 @@ |
||
| 41 | 41 | * the matcher will get the invoked() method called which should check if an |
| 42 | 42 | * expectation is met. |
| 43 | 43 | * |
| 44 | - * @param PHPUnit_Framework_MockObject_Invocation $invocation Object containing information on a mocked or stubbed method which was invoked |
|
| 45 | 44 | * |
| 46 | - * @return bool |
|
| 45 | + * @return boolean|null |
|
| 47 | 46 | */ |
| 48 | 47 | public function verify() |
| 49 | 48 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @param TestCase $testCase |
| 90 | - * @param array|string $type |
|
| 90 | + * @param string $type |
|
| 91 | 91 | */ |
| 92 | 92 | public function __construct(TestCase $testCase, $type) |
| 93 | 93 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | /** |
| 186 | 186 | * Specifies the subset of methods to not mock. Default is to mock all of them. |
| 187 | 187 | * |
| 188 | - * @param array $methods |
|
| 188 | + * @param string[] $methods |
|
| 189 | 189 | * |
| 190 | 190 | * @return PHPUnit_Framework_MockObject_MockBuilder |
| 191 | 191 | */ |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * |
| 209 | 209 | * @param mixed $needle |
| 210 | 210 | * @param string $haystackAttributeName |
| 211 | - * @param string|object $haystackClassOrObject |
|
| 211 | + * @param \ClassWithNonPublicAttributes $haystackClassOrObject |
|
| 212 | 212 | * @param string $message |
| 213 | 213 | * @param bool $ignoreCase |
| 214 | 214 | * @param bool $checkForObjectIdentity |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * |
| 278 | 278 | * @param mixed $needle |
| 279 | 279 | * @param string $haystackAttributeName |
| 280 | - * @param string|object $haystackClassOrObject |
|
| 280 | + * @param \ClassWithNonPublicAttributes $haystackClassOrObject |
|
| 281 | 281 | * @param string $message |
| 282 | 282 | * @param bool $ignoreCase |
| 283 | 283 | * @param bool $checkForObjectIdentity |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * |
| 361 | 361 | * @param string $type |
| 362 | 362 | * @param string $haystackAttributeName |
| 363 | - * @param string|object $haystackClassOrObject |
|
| 363 | + * @param \ClassWithNonPublicAttributes $haystackClassOrObject |
|
| 364 | 364 | * @param bool $isNativeType |
| 365 | 365 | * @param string $message |
| 366 | 366 | */ |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | * |
| 416 | 416 | * @param string $type |
| 417 | 417 | * @param string $haystackAttributeName |
| 418 | - * @param string|object $haystackClassOrObject |
|
| 418 | + * @param \ClassWithNonPublicAttributes $haystackClassOrObject |
|
| 419 | 419 | * @param bool $isNativeType |
| 420 | 420 | * @param string $message |
| 421 | 421 | */ |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | * |
| 462 | 462 | * @param int $expectedCount |
| 463 | 463 | * @param string $haystackAttributeName |
| 464 | - * @param string|object $haystackClassOrObject |
|
| 464 | + * @param \stdClass $haystackClassOrObject |
|
| 465 | 465 | * @param string $message |
| 466 | 466 | */ |
| 467 | 467 | public static function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | * |
| 506 | 506 | * @param int $expectedCount |
| 507 | 507 | * @param string $haystackAttributeName |
| 508 | - * @param string|object $haystackClassOrObject |
|
| 508 | + * @param \stdClass $haystackClassOrObject |
|
| 509 | 509 | * @param string $message |
| 510 | 510 | */ |
| 511 | 511 | public static function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | * is empty. |
| 636 | 636 | * |
| 637 | 637 | * @param string $haystackAttributeName |
| 638 | - * @param string|object $haystackClassOrObject |
|
| 638 | + * @param \stdClass $haystackClassOrObject |
|
| 639 | 639 | * @param string $message |
| 640 | 640 | */ |
| 641 | 641 | public static function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') |
@@ -664,7 +664,7 @@ discard block |
||
| 664 | 664 | * is not empty. |
| 665 | 665 | * |
| 666 | 666 | * @param string $haystackAttributeName |
| 667 | - * @param string|object $haystackClassOrObject |
|
| 667 | + * @param \stdClass $haystackClassOrObject |
|
| 668 | 668 | * @param string $message |
| 669 | 669 | */ |
| 670 | 670 | public static function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '') |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | * |
| 693 | 693 | * @param mixed $expected |
| 694 | 694 | * @param string $actualAttributeName |
| 695 | - * @param string|object $actualClassOrObject |
|
| 695 | + * @param \ClassWithNonPublicAttributes $actualClassOrObject |
|
| 696 | 696 | * @param string $message |
| 697 | 697 | */ |
| 698 | 698 | public static function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | * |
| 726 | 726 | * @param mixed $expected |
| 727 | 727 | * @param string $actualAttributeName |
| 728 | - * @param string|object $actualClassOrObject |
|
| 728 | + * @param \ClassWithNonPublicAttributes $actualClassOrObject |
|
| 729 | 729 | * @param string $message |
| 730 | 730 | */ |
| 731 | 731 | public static function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -754,7 +754,7 @@ discard block |
||
| 754 | 754 | * |
| 755 | 755 | * @param mixed $expected |
| 756 | 756 | * @param string $actualAttributeName |
| 757 | - * @param string|object $actualClassOrObject |
|
| 757 | + * @param \ClassWithNonPublicAttributes $actualClassOrObject |
|
| 758 | 758 | * @param string $message |
| 759 | 759 | */ |
| 760 | 760 | public static function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -783,7 +783,7 @@ discard block |
||
| 783 | 783 | * |
| 784 | 784 | * @param mixed $expected |
| 785 | 785 | * @param string $actualAttributeName |
| 786 | - * @param string|object $actualClassOrObject |
|
| 786 | + * @param \ClassWithNonPublicAttributes $actualClassOrObject |
|
| 787 | 787 | * @param string $message |
| 788 | 788 | */ |
| 789 | 789 | public static function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -1482,7 +1482,7 @@ discard block |
||
| 1482 | 1482 | * |
| 1483 | 1483 | * @param mixed $expected |
| 1484 | 1484 | * @param string $actualAttributeName |
| 1485 | - * @param string|object $actualClassOrObject |
|
| 1485 | + * @param \ClassWithNonPublicAttributes $actualClassOrObject |
|
| 1486 | 1486 | * @param string $message |
| 1487 | 1487 | */ |
| 1488 | 1488 | public static function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '') |
@@ -1556,7 +1556,7 @@ discard block |
||
| 1556 | 1556 | * |
| 1557 | 1557 | * @param string $expected |
| 1558 | 1558 | * @param string $attributeName |
| 1559 | - * @param string|object $classOrObject |
|
| 1559 | + * @param \stdClass $classOrObject |
|
| 1560 | 1560 | * @param string $message |
| 1561 | 1561 | */ |
| 1562 | 1562 | public static function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '') |
@@ -1593,7 +1593,7 @@ discard block |
||
| 1593 | 1593 | * |
| 1594 | 1594 | * @param string $expected |
| 1595 | 1595 | * @param string $attributeName |
| 1596 | - * @param string|object $classOrObject |
|
| 1596 | + * @param \stdClass $classOrObject |
|
| 1597 | 1597 | * @param string $message |
| 1598 | 1598 | */ |
| 1599 | 1599 | public static function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '') |
@@ -1630,7 +1630,7 @@ discard block |
||
| 1630 | 1630 | * |
| 1631 | 1631 | * @param string $expected |
| 1632 | 1632 | * @param string $attributeName |
| 1633 | - * @param string|object $classOrObject |
|
| 1633 | + * @param \stdClass $classOrObject |
|
| 1634 | 1634 | * @param string $message |
| 1635 | 1635 | */ |
| 1636 | 1636 | public static function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '') |
@@ -1966,7 +1966,7 @@ discard block |
||
| 1966 | 1966 | * Asserts that two XML documents are equal. |
| 1967 | 1967 | * |
| 1968 | 1968 | * @param string $expectedFile |
| 1969 | - * @param string|DOMDocument $actualXml |
|
| 1969 | + * @param string $actualXml |
|
| 1970 | 1970 | * @param string $message |
| 1971 | 1971 | */ |
| 1972 | 1972 | public static function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '') |
@@ -1981,7 +1981,7 @@ discard block |
||
| 1981 | 1981 | * Asserts that two XML documents are not equal. |
| 1982 | 1982 | * |
| 1983 | 1983 | * @param string $expectedFile |
| 1984 | - * @param string|DOMDocument $actualXml |
|
| 1984 | + * @param string $actualXml |
|
| 1985 | 1985 | * @param string $message |
| 1986 | 1986 | */ |
| 1987 | 1987 | public static function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '') |
@@ -1996,7 +1996,7 @@ discard block |
||
| 1996 | 1996 | * Asserts that two XML documents are equal. |
| 1997 | 1997 | * |
| 1998 | 1998 | * @param string|DOMDocument $expectedXml |
| 1999 | - * @param string|DOMDocument $actualXml |
|
| 1999 | + * @param string $actualXml |
|
| 2000 | 2000 | * @param string $message |
| 2001 | 2001 | */ |
| 2002 | 2002 | public static function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '') |
@@ -2011,7 +2011,7 @@ discard block |
||
| 2011 | 2011 | * Asserts that two XML documents are not equal. |
| 2012 | 2012 | * |
| 2013 | 2013 | * @param string|DOMDocument $expectedXml |
| 2014 | - * @param string|DOMDocument $actualXml |
|
| 2014 | + * @param string $actualXml |
|
| 2015 | 2015 | * @param string $message |
| 2016 | 2016 | */ |
| 2017 | 2017 | public static function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '') |