diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index cfaf2fa5502..4efc860b3eb 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -7119,8 +7119,8 @@ Add known property and return MockObject types ```diff class SomeTest extends TestCase { -- public function test() -+ public function test(): \PHPUnit\Framework\MockObject\MockObject +- public function createSomeMock() ++ public function createSomeMock(): \PHPUnit\Framework\MockObject\MockObject { $someMock = $this->createMock(SomeClass::class); return $someMock; diff --git a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromMockObjectRector.php b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromMockObjectRector.php index 7fc5a5c668c..d0fb0e49cf6 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromMockObjectRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromMockObjectRector.php @@ -59,7 +59,7 @@ public function getRuleDefinition() : RuleDefinition return new RuleDefinition('Add known property and return MockObject types', [new CodeSample(<<<'CODE_SAMPLE' class SomeTest extends TestCase { - public function test() + public function createSomeMock() { $someMock = $this->createMock(SomeClass::class); return $someMock; @@ -69,7 +69,7 @@ public function test() , <<<'CODE_SAMPLE' class SomeTest extends TestCase { - public function test(): \PHPUnit\Framework\MockObject\MockObject + public function createSomeMock(): \PHPUnit\Framework\MockObject\MockObject { $someMock = $this->createMock(SomeClass::class); return $someMock; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 0130c16c473..616edc99eb9 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'ecdb0d4e3528ad9ea921678b0a0d69455da7fde6'; + public const PACKAGE_VERSION = '938f4a2a24ec32f7ee9e9447abad7f37b1046d3f'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-07-22 07:21:57'; + public const RELEASE_DATE = '2024-07-22 09:21:58'; /** * @var int */