mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
Merge pull request #3585 from rectorphp/fix-void-bool
fix rector description
This commit is contained in:
commit
4232acd90f
@ -21,7 +21,7 @@ final class ContextGetByTypeToConstructorInjectionRector extends AbstractToConst
|
||||
public function getDefinition(): RectorDefinition
|
||||
{
|
||||
return new RectorDefinition(
|
||||
'Move dependency passed to all children to parent as @inject/@required dependency',
|
||||
'Move dependency get via $context->getByType() to constructor injection',
|
||||
[
|
||||
new CodeSample(
|
||||
<<<'PHP'
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\TypeDeclaration\Tests\Rector\FunctionLike\ReturnTypeDeclarationRector\Fixture;
|
||||
|
||||
final class SkipReturnAndReturnBool
|
||||
{
|
||||
public function someMethod($value)
|
||||
{
|
||||
if ($value) {
|
||||
return;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user