Skip to content

Commit

Permalink
Updated Rector to commit 938f4a2a24ec32f7ee9e9447abad7f37b1046d3f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@938f4a2 [TypeDeclaration] Update fixture and example method name (#6171)
  • Loading branch information
TomasVotruba committed Jul 22, 2024
1 parent 85fe52c commit d35c1aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit d35c1aa

Please sign in to comment.