Skip to content

Commit

Permalink
Run composer docs weekly (#5035)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 17, 2023
1 parent f40ec62 commit b26d507
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/weekly_pull_requests.yaml
Expand Up @@ -28,6 +28,11 @@ jobs:
run: "composer preload"
branch: 'automated-regenerated-preload'

-
name: "Re-Generate Nodes/Rectors Documentation"
run: "composer docs"
branch: 'automated-regenerated-nodes-rectors-documentation'

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

Expand Down
8 changes: 5 additions & 3 deletions build/target-repository/docs/rector_rules_overview.md
Expand Up @@ -1163,14 +1163,16 @@ Direct return on if nullable check before return
{
public function run()
{
- /** @var \stdClass|null $value */
- $value = $this->foo->bar();
- $value = $this->get();
- if (! $value instanceof \stdClass) {
- return null;
- }
-
- return $value;
+ return $this->foo->bar();
+ return $this->get();
}

public function get(): ?stdClass {
}
}
```
Expand Down

0 comments on commit b26d507

Please sign in to comment.