mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-30 03:47:53 +01:00
Updated Rector to commit c3840325600449b562691e34612279dcd4316043
c384032560
[Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296)
This commit is contained in:
parent
54e7a3a895
commit
84b97fe47c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -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",
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user