Skip to content

Conversation

@sreichel
Copy link
Contributor

@sreichel sreichel commented Dec 5, 2025

Description (*)

Use rector to replace native date functions with carbon,

(prepare to replace Zend_Date)

Related Pull Requests

Copilot AI review requested due to automatic review settings December 5, 2025 02:11
@sreichel sreichel added the chore label Dec 5, 2025
@github-actions github-actions bot added Component: PayPal Relates to Mage_Paypal Component: Core Relates to Mage_Core Component: Catalog Relates to Mage_Catalog Template : admin Relates to admin template Component: Cms Relates to Mage_Cms Component: Reports Relates to Mage_Reports Component: Checkout Relates to Mage_Checkout Component: AdminNotification Relates to Mage_AdminNotification Component: lib/Varien Relates to lib/Varien Component: Sales Relates to Mage_Sales Component: Usa Relates to Mage_Usa Component: Customer Relates to Mage_Customer Component: Eav Relates to Mage_Eav Component: lib/Mage Relates to lib/Mage Template : base Relates to base template Component: Adminhtml Relates to Mage_Adminhtml Mage.php Relates to app/Mage.php Component: Api PageRelates to Mage_Api Component: Cron Relates to Mage_Cron Component: Captcha Relates to Mage_Captcha Component: Tag Relates to Mage_Tag Component: CatalogRule Relates to Mage_CatalogRule Component: Widget Relates to Mage_Widget Component: Shipping Relates to Mage_Shipping Component: Rule Relates to Mage_Rule labels Dec 5, 2025
@sreichel sreichel marked this pull request as draft December 5, 2025 02:32
@sreichel sreichel changed the title Peplace php date functios with carbon Replace php date functios with carbon Dec 5, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

Quality Gate Passed Quality Gate passed

Issues
2 New issues
2 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.4% Duplication on New Code

See analysis details on SonarQube Cloud

@sreichel sreichel marked this pull request as ready for review December 6, 2025 00:13
@sreichel sreichel requested a review from Copilot December 6, 2025 00:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 102 out of 102 changed files in this pull request and generated 11 comments.

Comments suppressed due to low confidence (1)

app/code/core/Mage/Index/Model/Observer.php:154

  • Using Carbon::now()->sub() mutates the Carbon instance. This could cause issues if the $now variable is reused later. Consider using Carbon::now()->subSeconds(self::OLD_INDEX_EVENT_THRESHOLD_SECONDS) or calling copy() first to avoid mutation: $now->copy()->sub($dateInterval).

@sreichel sreichel marked this pull request as draft December 6, 2025 00:25
@sreichel sreichel marked this pull request as ready for review December 7, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Component: Adminhtml Relates to Mage_Adminhtml Component: AdminNotification Relates to Mage_AdminNotification Component: Api PageRelates to Mage_Api Component: Authorizenet Relates to Mage_Authorizenet Component: Captcha Relates to Mage_Captcha Component: Catalog Relates to Mage_Catalog Component: CatalogIndex Relates to Mage_CatalogIndex Component: CatalogRule Relates to Mage_CatalogRule Component: Checkout Relates to Mage_Checkout Component: Cms Relates to Mage_Cms Component: Core Relates to Mage_Core Component: Cron Relates to Mage_Cron Component: Customer Relates to Mage_Customer Component: Dataflow Relates to Mage_Dataflow Component: Eav Relates to Mage_Eav Component: ImportExport Relates to Mage_ImportExport Component: Index Relates to Mage_Index Component: Install Relates to Mage_Install Component: lib/Mage Relates to lib/Mage Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* Component: Log Relates to Mage_Log Component: Oauth Relates to Mage_Oauth Component: Payment Relates to Mage_Payment Component: PayPal Relates to Mage_Paypal Component: Reports Relates to Mage_Reports Component: Rss Relates to Mage_Rss Component: Rule Relates to Mage_Rule Component: Sales Relates to Mage_Sales Component: Shipping Relates to Mage_Shipping Component: Tag Relates to Mage_Tag Component: Usa Relates to Mage_Usa Component: Widget Relates to Mage_Widget Mage.php Relates to app/Mage.php phpunit rector Template : admin Relates to admin template Template : base Relates to base template Template : install Relates to install template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant