mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
rebuild docs
This commit is contained in:
parent
859999c33a
commit
7391b856dd
|
@ -11903,15 +11903,10 @@ Add strict return type based on returned strict expr type
|
|||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
public function run()
|
||||
- public function run()
|
||||
+ public function run(): bool
|
||||
{
|
||||
return $this->first() && true;
|
||||
}
|
||||
|
||||
- public function first()
|
||||
+ public function first(): bool
|
||||
{
|
||||
return true;
|
||||
return $this->first() && $this->somethingElse();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -36,12 +36,7 @@ final class SomeClass
|
|||
{
|
||||
public function run()
|
||||
{
|
||||
return $this->first() && true;
|
||||
}
|
||||
|
||||
public function first()
|
||||
{
|
||||
return true;
|
||||
return $this->first() && $this->somethingElse();
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
|
@ -50,14 +45,9 @@ CODE_SAMPLE
|
|||
<<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
public function run()
|
||||
public function run(): bool
|
||||
{
|
||||
return $this->first() && true;
|
||||
}
|
||||
|
||||
public function first(): bool
|
||||
{
|
||||
return true;
|
||||
return $this->first() && $this->somethingElse();
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
|
|
Loading…
Reference in New Issue
Block a user