mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
dbb3bb2510
6bd6b3cc85
PHP80 string helpers loose comparison (#3246)
25 lines
817 B
PHP
25 lines
817 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Php80\Contract;
|
|
|
|
use PhpParser\Node;
|
|
use PhpParser\Node\Expr\BinaryOp\Equal;
|
|
use PhpParser\Node\Expr\BinaryOp\Identical;
|
|
use PhpParser\Node\Expr\BinaryOp\NotEqual;
|
|
use PhpParser\Node\Expr\BinaryOp\NotIdentical;
|
|
use PhpParser\Node\Expr\BooleanNot;
|
|
use PhpParser\Node\Expr\FuncCall;
|
|
use Rector\Php80\ValueObject\StrStartsWith;
|
|
interface StrStartWithMatchAndRefactorInterface
|
|
{
|
|
/**
|
|
* @param \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\NotIdentical|\PhpParser\Node\Expr\BinaryOp\Equal|\PhpParser\Node\Expr\BinaryOp\NotEqual $binaryOp
|
|
*/
|
|
public function match($binaryOp) : ?StrStartsWith;
|
|
/**
|
|
* @return FuncCall|BooleanNot|null
|
|
*/
|
|
public function refactorStrStartsWith(StrStartsWith $strStartsWith) : ?Node;
|
|
}
|