File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/internal/Magento/Framework/TestFramework/Unit/Matcher Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function __construct($sequenceIndex)
49
49
/**
50
50
* @return string
51
51
*/
52
- public function toString ()
52
+ public function toString (): string
53
53
{
54
54
return 'invoked at sequence index ' . $ this ->sequenceIndex ;
55
55
}
@@ -58,7 +58,7 @@ public function toString()
58
58
* @param \PHPUnit\Framework\MockObject\Invocation $invocation
59
59
* @return boolean
60
60
*/
61
- public function matches (BaseInvocation $ invocation )
61
+ public function matches (BaseInvocation $ invocation ): bool
62
62
{
63
63
/** @noinspection PhpUndefinedFieldInspection */
64
64
if (!isset ($ this ->indexes [$ invocation ->getMethodName ()])) {
@@ -76,6 +76,7 @@ public function matches(BaseInvocation $invocation)
76
76
77
77
/**
78
78
* @param BaseInvocation $invocation
79
+ * @return mixed
79
80
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
80
81
*/
81
82
public function invoked (BaseInvocation $ invocation )
@@ -88,7 +89,7 @@ public function invoked(BaseInvocation $invocation)
88
89
*
89
90
* @throws ExpectationFailedException
90
91
*/
91
- public function verify ()
92
+ public function verify (): void
92
93
{
93
94
if ($ this ->currentIndex < $ this ->sequenceIndex ) {
94
95
throw new ExpectationFailedException (
You can’t perform that action at this time.
0 commit comments