Updated Rector to commit b2ec1f0b413e16760c41707b74c936f7445e13ab

b2ec1f0b41 [Carbon] Skip first class callable on DateTimeMethodCallToCarbonRector (#5893)
This commit is contained in:
Tomas Votruba 2024-05-18 14:48:45 +00:00
parent 22d3d1949d
commit 3f56884569
4 changed files with 11 additions and 2 deletions

View File

@ -55,6 +55,9 @@ CODE_SAMPLE
if (!$this->isName($node->name, 'date')) {
return null;
}
if ($node->isFirstClassCallable()) {
return null;
}
if (\count($node->getArgs()) !== 1) {
return null;
}

View File

@ -71,6 +71,9 @@ CODE_SAMPLE
if (!$this->isName($new->class, 'DateTime')) {
return null;
}
if ($new->isFirstClassCallable()) {
return null;
}
if (\count($new->getArgs()) !== 1) {
// @todo handle in separate static call
return null;

View File

@ -54,6 +54,9 @@ CODE_SAMPLE
if (!$this->isName($node->class, 'DateTime')) {
return null;
}
if ($node->isFirstClassCallable()) {
return null;
}
// no arg? ::now()
$carbonFullyQualified = new FullyQualified('Carbon\\Carbon');
if ($node->args === []) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '6ebfa15e733ac340249418057ed3f7615e717ac1';
public const PACKAGE_VERSION = 'b2ec1f0b413e16760c41707b74c936f7445e13ab';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-18 20:45:41';
public const RELEASE_DATE = '2024-05-18 21:45:11';
/**
* @var int
*/