Updated Rector to commit c3840325600449b562691e34612279dcd4316043

c384032560 [Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296)
This commit is contained in:
Tomas Votruba 2023-11-28 17:41:50 +00:00
parent 54e7a3a895
commit 84b97fe47c
4 changed files with 18 additions and 7 deletions

View File

@ -96,6 +96,13 @@ final class ExactCompareFactory
if (!$compareExpr instanceof Expr) {
return null;
}
if ($treatAsNotEmpty) {
return new BooleanAnd($toNullNotIdentical, $compareExpr);
}
if ($unionType->isString()->yes()) {
$booleanAnd = new BooleanAnd($toNullNotIdentical, $compareExpr);
return new BooleanAnd($booleanAnd, new NotIdentical($expr, new String_('0')));
}
return new BooleanAnd($toNullNotIdentical, $compareExpr);
}
/**
@ -185,6 +192,10 @@ final class ExactCompareFactory
if (!$scalarFalsyIdentical instanceof Expr) {
return null;
}
if ($unionType->isString()->yes()) {
$booleanOr = new BooleanOr($toNullIdentical, $scalarFalsyIdentical);
return new BooleanOr($booleanOr, new Identical($expr, new String_('0')));
}
return new BooleanOr($toNullIdentical, $scalarFalsyIdentical);
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '765b63696eb3bc240e92f10b00169b146c99463a';
public const PACKAGE_VERSION = 'c3840325600449b562691e34612279dcd4316043';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-28 18:10:17';
public const RELEASE_DATE = '2023-11-29 00:39:41';
/**
* @var int
*/

View File

@ -504,8 +504,8 @@
},
{
"name": "illuminate\/container",
"version": "v10.33.0",
"version_normalized": "10.33.0.0",
"version": "v10.34.1",
"version_normalized": "10.34.1.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/container.git",
@ -561,8 +561,8 @@
},
{
"name": "illuminate\/contracts",
"version": "v10.33.0",
"version_normalized": "10.33.0.0",
"version": "v10.34.1",
"version_normalized": "10.34.1.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/contracts.git",

File diff suppressed because one or more lines are too long