Skip to content

Commit

Permalink
Updated Rector to commit a2b010d3152c065aeb91bdbcd5437b8645a3f7c7
Browse files Browse the repository at this point in the history
rectorphp/rector-src@a2b010d [Carbon] Skip first class callable on DateFuncCallToCarbonRector (#6776)
  • Loading branch information
TomasVotruba committed Mar 10, 2025
1 parent 24d48c8 commit ef2fdc9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function refactor(Node $node) : ?Node
{
if ($node instanceof Minus) {
$left = $node->left;
if ($left instanceof FuncCall && $this->isName($left->name, 'time')) {
if ($left instanceof FuncCall && !$left->isFirstClassCallable() && $this->isName($left->name, 'time')) {
$timeUnit = $this->detectTimeUnit($node->right);
if ($timeUnit !== null) {
return $this->createCarbonSubtract($timeUnit);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'f6c99820dc0852cc2c9f92f94aaae188b4b6aeae';
public const PACKAGE_VERSION = 'a2b010d3152c065aeb91bdbcd5437b8645a3f7c7';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-03-10 02:52:02';
public const RELEASE_DATE = '2025-03-10 07:24:47';
/**
* @var int
*/
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1687,12 +1687,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "70e288130abf8b477a7abf1f86f0f940b8e58317"
"reference": "92f682e23190f3cbbf0e7b95912b5d4ab043be42"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/70e288130abf8b477a7abf1f86f0f940b8e58317",
"reference": "70e288130abf8b477a7abf1f86f0f940b8e58317",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/92f682e23190f3cbbf0e7b95912b5d4ab043be42",
"reference": "92f682e23190f3cbbf0e7b95912b5d4ab043be42",
"shasum": ""
},
"require": {
Expand All @@ -1703,7 +1703,7 @@
"doctrine\/doctrine-bundle": "^2.13",
"doctrine\/orm": "^2.20",
"phpstan\/extension-installer": "^1.4",
"phpstan\/phpstan": "^2.0",
"phpstan\/phpstan": "^2.1.8",
"phpstan\/phpstan-deprecation-rules": "^2.0",
"phpstan\/phpstan-webmozart-assert": "^2.0",
"phpunit\/phpunit": "^11.5",
Expand All @@ -1715,7 +1715,7 @@
"tomasvotruba\/class-leak": "^2.0",
"tracy\/tracy": "^2.10"
},
"time": "2025-03-09T19:48:45+00:00",
"time": "2025-03-09T20:53:31+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/rector/extension-installer/src/GeneratedConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 70e2881'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main b55c3bc'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 757cd1f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 578d314'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 92f682e'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main b55c3bc'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 757cd1f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 578d314'));
private function __construct()
{
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/rector/rector-doctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"doctrine\/doctrine-bundle": "^2.13",
"doctrine\/orm": "^2.20",
"phpstan\/extension-installer": "^1.4",
"phpstan\/phpstan": "^2.0",
"phpstan\/phpstan": "^2.1.8",
"phpstan\/phpstan-deprecation-rules": "^2.0",
"phpstan\/phpstan-webmozart-assert": "^2.0",
"phpunit\/phpunit": "^11.5",
Expand Down

0 comments on commit ef2fdc9

Please sign in to comment.