rebuild docs

This commit is contained in:
Tomas Votruba 2022-06-25 16:56:53 +02:00
parent 859999c33a
commit 7391b856dd
2 changed files with 6 additions and 21 deletions

View File

@ -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();
}
}
```

View File

@ -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