Skip to content

Commit 21f68dd

Browse files
committed
MC-2338: 3rd party library/dependency upgrade for 2.3 pre Alpha
1 parent 4592a82 commit 21f68dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/TestFramework/Unit/Matcher/MethodInvokedAtIndex.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct($sequenceIndex)
4949
/**
5050
* @return string
5151
*/
52-
public function toString()
52+
public function toString(): string
5353
{
5454
return 'invoked at sequence index ' . $this->sequenceIndex;
5555
}
@@ -58,7 +58,7 @@ public function toString()
5858
* @param \PHPUnit\Framework\MockObject\Invocation $invocation
5959
* @return boolean
6060
*/
61-
public function matches(BaseInvocation $invocation)
61+
public function matches(BaseInvocation $invocation): bool
6262
{
6363
/** @noinspection PhpUndefinedFieldInspection */
6464
if (!isset($this->indexes[$invocation->getMethodName()])) {
@@ -76,6 +76,7 @@ public function matches(BaseInvocation $invocation)
7676

7777
/**
7878
* @param BaseInvocation $invocation
79+
* @return mixed
7980
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
8081
*/
8182
public function invoked(BaseInvocation $invocation)
@@ -88,7 +89,7 @@ public function invoked(BaseInvocation $invocation)
8889
*
8990
* @throws ExpectationFailedException
9091
*/
91-
public function verify()
92+
public function verify(): void
9293
{
9394
if ($this->currentIndex < $this->sequenceIndex) {
9495
throw new ExpectationFailedException(

0 commit comments

Comments
 (0)