Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More phpstan fixes #4291

Merged
merged 39 commits into from
Nov 12, 2024
Merged

More phpstan fixes #4291

merged 39 commits into from
Nov 12, 2024

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Oct 18, 2024

Some fixes and merged #4290

@github-actions github-actions bot added Component: Core Relates to Mage_Core Component: Catalog Relates to Mage_Catalog Template : admin Relates to admin template Component: Reports Relates to Mage_Reports Component: CatalogInventory Relates to Mage_CatalogInventory 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: Adminhtml Relates to Mage_Adminhtml Component: Page Relates to Mage_Page Component: CatalogRule Relates to Mage_CatalogRule Component: SalesRule Relates to Mage_SalesRule Component: Weee Relates to Mage_Weee Component: Tax Relates to Mage_Tax Component: Shipping Relates to Mage_Shipping Component: Index Relates to Mage_Index Component: Bundle Relates to Mage_Bundle Component: Api2 Relates to Mage_Api2 phpstan labels Oct 18, 2024
@sreichel sreichel mentioned this pull request Oct 18, 2024
# Conflicts:
#	.phpstan.dist.baseline.neon
@github-actions github-actions bot added Component: PayPal Relates to Mage_Paypal Component: Checkout Relates to Mage_Checkout Component: lib/Varien Relates to lib/Varien Mage.php Relates to app/Mage.php labels Oct 18, 2024
kiatng
kiatng previously approved these changes Nov 11, 2024
@addison74
Copy link
Contributor

@sreichel - The conflict needs to be fixed.

# Conflicts:
#	.phpstan.dist.baseline.neon
#	app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php
#	app/code/core/Mage/Tax/Model/Resource/Calculation.php
@github-actions github-actions bot removed Component: Customer Relates to Mage_Customer Component: lib/Mage Relates to lib/Mage Component: Wishlist Relates to Mage_Wishlist Component: Uploader Relates to Mage_Uploader labels Nov 11, 2024
@kiatng kiatng merged commit 4a3b6fa into OpenMage:main Nov 12, 2024
21 checks passed
@fballiano
Copy link
Contributor

fballiano commented Nov 12, 2024

I think these massive PRs should be accepted only if they don't add new lines to the baseline. we know nobody is testing these modifications and there are hundreds of changed files every day. not having new lines is at least a basic indicator that maybe the PR itself is not introducing problems.

@kiatng @colinmollenhour

fballiano added a commit to MahoCommerce/maho that referenced this pull request Nov 12, 2024
@sreichel sreichel deleted the phpstan-3 branch November 12, 2024 10:39
sreichel added a commit to sreichel/magento-lts that referenced this pull request Nov 12, 2024
@sreichel
Copy link
Contributor Author

sreichel commented Nov 12, 2024

@fballiano i alredy wrote it somewhere else ... fixing one error may reveal more errors. Fixing one may lead to have to touch other files. There are no problems introduced, just baselined them to them later.

#4346 is to fix that 4 new lines added in this PR + some issues in that files.

@fballiano
Copy link
Contributor

@fballiano i alredy wrote it somewhere else ... fixing one error may reveal more errors. Fixing one may lead to have to touch other files. There are no problems introduced, just baselined them to them later.

Instead of changing 100 files per day, if a change is introducing new baseline lines than it should be in a separate small PRs.

Changing 100+ files per day means nobody is testing anything.

@sreichel
Copy link
Contributor Author

Normally no new lines are added!

Normally there is nothing to test, b/c its mostly doc-block-only changes.

I dont know what you are complaining about. 4 (!) errors have been added - in trade for 150 fixed.

kiatng added a commit that referenced this pull request Nov 26, 2024
* some fixes

- #4291 (comment)

* some fixes

* rector

* Update app/code/core/Mage/Paypal/Model/Payflowlink.php

Co-authored-by: Ng Kiat Siong <[email protected]>

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Api2 Relates to Mage_Api2 Component: Bundle Relates to Mage_Bundle Component: Catalog Relates to Mage_Catalog Component: CatalogIndex Relates to Mage_CatalogIndex Component: CatalogInventory Relates to Mage_CatalogInventory Component: CatalogRule Relates to Mage_CatalogRule Component: Checkout Relates to Mage_Checkout Component: Core Relates to Mage_Core Component: Eav Relates to Mage_Eav Component: ImportExport Relates to Mage_ImportExport Component: Index Relates to Mage_Index Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* Component: Page Relates to Mage_Page Component: PayPal Relates to Mage_Paypal Component: Reports Relates to Mage_Reports Component: Sales Relates to Mage_Sales Component: SalesRule Relates to Mage_SalesRule Component: Shipping Relates to Mage_Shipping Component: Tax Relates to Mage_Tax Component: Usa Relates to Mage_Usa Component: Weee Relates to Mage_Weee environment phpstan Template : admin Relates to admin template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants