mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-14 21:04:48 +01:00
2da49992cc
[Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
23 lines
641 B
PHP
23 lines
641 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php80\Contract;
|
|
|
|
use PhpParser\Node;
|
|
use PhpParser\Node\Expr\BinaryOp;
|
|
use PhpParser\Node\Expr\BooleanNot;
|
|
use PhpParser\Node\Expr\FuncCall;
|
|
use Rector\Php80\ValueObject\StrStartsWith;
|
|
interface StrStartWithMatchAndRefactorInterface
|
|
{
|
|
/**
|
|
* @param \PhpParser\Node\Expr\BinaryOp $binaryOp
|
|
*/
|
|
public function match($binaryOp) : ?\Rector\Php80\ValueObject\StrStartsWith;
|
|
/**
|
|
* @return FuncCall|BooleanNot|null
|
|
* @param \Rector\Php80\ValueObject\StrStartsWith $strStartsWith
|
|
*/
|
|
public function refactorStrStartsWith($strStartsWith) : ?\PhpParser\Node;
|
|
}
|