Skip to content

Commit 53e3339

Browse files
committed
fixup! [docs] imrpoev node visitoir
1 parent 297d631 commit 53e3339

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/docs/creating-a-node-visitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fianl class SomeRector extends AbstractRector
6464
{
6565
public function refactor(Node $node): ?Node
6666
{
67-
if ($node->getAttribute(AssignAwareNodeVisitor::IS_PART_OF_ASSIGN) === true) {
67+
if ($node->getAttribute(AssignAwareNodeVisitor::IS_PART_OF_ASSIGN)) {
6868
// we know node is part of assign
6969
}
7070

src/Documentation/DocumentationMenuFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function create(): array
7272
'writing-tests-for-custom-rule',
7373
'Writing Tests For Custom Rule'
7474
),
75-
$this->documentationMenuItemFactory->createSection('creating-a-node-visitor', 'Creating Node Visitor'),
75+
$this->documentationMenuItemFactory->createSection('creating-a-node-visitor', 'Creating Node Visitor', true),
7676
$this->documentationMenuItemFactory->createSection('how-to-run-on-php-53', 'Run on PHP 5.3'),
7777
$this->documentationMenuItemFactory->createSection(
7878
'https://leanpub.com/rector-the-power-of-automated-refactoring',

0 commit comments

Comments
 (0)