apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -18,9 +18,9 @@ use Doctrine\ORM\Query\SqlWalker;
class Age extends FunctionNode
{
private $value1;
private \Doctrine\ORM\Query\AST\ArithmeticTerm|\Doctrine\ORM\Query\AST\SimpleArithmeticExpression|null $value1 = null;
private $value2;
private \Doctrine\ORM\Query\AST\ArithmeticTerm|\Doctrine\ORM\Query\AST\SimpleArithmeticExpression|null $value2 = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -29,7 +29,7 @@ class Extract extends FunctionNode
{
private string $field;
private $value;
private \Doctrine\ORM\Query\AST\Node|string|null $value = null;
//private PathExpression $value;
//private FunctionNode $value;
//private DateDiffFunction $value;

View File

@@ -18,9 +18,9 @@ use Doctrine\ORM\Query\SqlWalker;
class GetJsonFieldByKey extends FunctionNode
{
private $expr1;
private ?\Doctrine\ORM\Query\AST\Node $expr1 = null;
private $expr2;
private ?\Doctrine\ORM\Query\AST\Node $expr2 = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -24,7 +24,7 @@ use Doctrine\ORM\Query\SqlWalker;
*/
class JsonAggregate extends FunctionNode
{
private $expr;
private ?\Doctrine\ORM\Query\AST\Node $expr = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -18,9 +18,9 @@ use Doctrine\ORM\Query\SqlWalker;
class JsonExtract extends FunctionNode
{
private $element;
private \Doctrine\ORM\Query\AST\Node|string|null $element = null;
private $keyToExtract;
private ?\Doctrine\ORM\Query\AST\ArithmeticExpression $keyToExtract = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -21,7 +21,7 @@ use Doctrine\ORM\Query\SqlWalker;
*/
class JsonbArrayLength extends FunctionNode
{
private $expr1;
private ?\Doctrine\ORM\Query\AST\Node $expr1 = null;
public function getSql(SqlWalker $sqlWalker): string
{

View File

@@ -18,9 +18,9 @@ use Doctrine\ORM\Query\SqlWalker;
class JsonbExistsInArray extends FunctionNode
{
private $expr1;
private ?\Doctrine\ORM\Query\AST\Node $expr1 = null;
private $expr2;
private ?\Doctrine\ORM\Query\AST\InputParameter $expr2 = null;
public function getSql(SqlWalker $sqlWalker): string
{

View File

@@ -25,13 +25,13 @@ use Exception;
*/
class OverlapsI extends FunctionNode
{
private $firstPeriodEnd;
private ?\Doctrine\ORM\Query\AST\Node $firstPeriodEnd = null;
private $firstPeriodStart;
private ?\Doctrine\ORM\Query\AST\Node $firstPeriodStart = null;
private $secondPeriodEnd;
private ?\Doctrine\ORM\Query\AST\Node $secondPeriodEnd = null;
private $secondPeriodStart;
private ?\Doctrine\ORM\Query\AST\Node $secondPeriodStart = null;
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{

View File

@@ -19,9 +19,9 @@ use Doctrine\ORM\Query\Lexer;
*/
class STContains extends FunctionNode
{
private $firstPart;
private ?\Doctrine\ORM\Query\AST\Node $firstPart = null;
private $secondPart;
private ?\Doctrine\ORM\Query\AST\Node $secondPart = null;
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{

View File

@@ -18,7 +18,7 @@ use Doctrine\ORM\Query\SqlWalker;
class STX extends FunctionNode
{
private $field;
private ?\Doctrine\ORM\Query\AST\ArithmeticExpression $field = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -18,7 +18,7 @@ use Doctrine\ORM\Query\SqlWalker;
class STY extends FunctionNode
{
private $field;
private ?\Doctrine\ORM\Query\AST\ArithmeticExpression $field = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -16,9 +16,9 @@ use Doctrine\ORM\Query\Lexer;
class Similarity extends FunctionNode
{
private $firstPart;
private ?\Doctrine\ORM\Query\AST\Node $firstPart = null;
private $secondPart;
private ?\Doctrine\ORM\Query\AST\Node $secondPart = null;
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{

View File

@@ -17,9 +17,9 @@ use Doctrine\ORM\Query\SqlWalker;
class StrictWordSimilarityOPS extends \Doctrine\ORM\Query\AST\Functions\FunctionNode
{
private $firstPart;
private ?\Doctrine\ORM\Query\AST\Node $firstPart = null;
private $secondPart;
private ?\Doctrine\ORM\Query\AST\Node $secondPart = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -21,9 +21,9 @@ use Doctrine\ORM\Query\SqlWalker;
*/
class ToChar extends FunctionNode
{
private $datetime;
private ?\Doctrine\ORM\Query\AST\ArithmeticExpression $datetime = null;
private $fmt;
private \Doctrine\ORM\Query\AST\Node|string|null $fmt = null;
public function getSql(SqlWalker $sqlWalker)
{

View File

@@ -22,7 +22,7 @@ use Doctrine\ORM\Query\Lexer;
*/
class Unaccent extends FunctionNode
{
private $string;
private ?\Doctrine\ORM\Query\AST\Node $string = null;
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{