Skip to content

Commit 61c8d08

Browse files
committed
fix(v2): minor codestyle fix
1 parent 1a36da8 commit 61c8d08

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/MockedFunction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use QratorLabs\Smocky\Functions\MockedFunction as GenericMockedFunction;
1111
use ReflectionException;
1212

13+
use function assert;
14+
1315
class MockedFunction extends AbstractMocked
1416
{
1517
private InvocationStubber $invocationMocker;
@@ -40,6 +42,7 @@ static function (...$args) use (&$mockObject, &$method) {
4042
);
4143

4244
$method = $this->mockedFunction->getShortName();
45+
assert(!empty($method));
4346
$mockObject = self::createEmptyMock($testCase, $method);
4447

4548
$this->invocationMocker = $invocationRule === null

src/MockedMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MockedMethod extends AbstractMocked
2222
*
2323
* @param TestCase $testCase
2424
* @param string $class
25-
* @param string $method
25+
* @param non-empty-string $method
2626
* @param InvocationOrder|null $invocationRule
2727
*
2828
* @throws ReflectionException

0 commit comments

Comments
 (0)