forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix non-existing method trying to get method reflection (rectorphp#4505)
- Loading branch information
1 parent
3580436
commit 252f178
Showing
3 changed files
with
31 additions
and
6 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
20 changes: 20 additions & 0 deletions
20
...Call/FormerNullableArgumentToScalarTypedRector/Fixture/skip_nette_form_class_call.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,20 @@ | ||
<?php | ||
|
||
namespace Rector\Generic\Tests\Rector\MethodCall\FormerNullableArgumentToScalarTypedRector\Fixture; | ||
|
||
use Nette\Application\UI\Form; | ||
|
||
class SkipNetteFormClassCall | ||
{ | ||
public function create() | ||
{ | ||
$form = new Form; | ||
|
||
$form->addText('reading', 'Reading') | ||
->setRequired('...') | ||
->getControlPrototype() | ||
->nonExistingMagic('rating'); | ||
|
||
return $form; | ||
} | ||
} |
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