-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NodeNameResolver] Set return false on node is MethodCall/StaticCall …
…on NodeNameResolver::isName() (#5981) Co-authored-by: kaizen-ci <info@kaizen-ci.org>
- Loading branch information
1 parent
45f6570
commit d266e69
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...y/Rector/Class_/CompleteDynamicPropertiesRector/Fixture/skip_static_return_object.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector\Fixture; | ||
|
||
final class Carbon | ||
{ | ||
public $timestamp; | ||
|
||
public static function now() | ||
{ | ||
return new static(); | ||
} | ||
} | ||
|
||
class SkipStaticReturnObject | ||
{ | ||
public function getCurrentTimestamp() | ||
{ | ||
return Carbon::now()->timestamp; | ||
} | ||
} |