Skip to content

Replaced Mysql4 classes in comments #2777

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

Closed
wants to merge 14 commits into from
Closed

Replaced Mysql4 classes in comments #2777

wants to merge 14 commits into from

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Dec 3, 2022

Description (*)

  • Replaced Mysql4 classes in comments
  • moved Mage_Core_Model_Mysql4_Design_Theme_Collection (only one mysql4 class w/o resource class?)

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

- in comments
- moved Mage_Core_Model_Mysql4_Design_Theme_Collection
@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml Component: Bundle Relates to Mage_Bundle Component: Catalog Relates to Mage_Catalog Component: Core Relates to Mage_Core Component: Downloadable Relates to Mage_Downloadable Component: Log Relates to Mage_Log labels Dec 3, 2022
@github-actions github-actions bot added Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* phpstan labels Dec 3, 2022
@sreichel
Copy link
Contributor Author

sreichel commented Dec 3, 2022

Mhhh. dont know why this error shows up only here. These files are ignored per default and cant reproduce it locally.

@kiatng
Copy link
Contributor

kiatng commented Dec 4, 2022

Mhhh. dont know why this error shows up only here. These files are ignored per default and cant reproduce it locally.

Why not skip this lib/Varien/Directory/Collection.php and see if the error goes away. That file contains a few more issues that need fixing.

@sreichel
Copy link
Contributor Author

sreichel commented Dec 4, 2022

I already ignored this error ... https://github.com/OpenMage/magento-lts/blob/1.9.4.x/phpstan.dist.neon#L30-L32

But it does not work (only for this PR!)

@kiatng
Copy link
Contributor

kiatng commented Dec 4, 2022

How about remove the file from this PR and fix it later? Would that work?

@sreichel
Copy link
Contributor Author

sreichel commented Dec 4, 2022

It could work, but then i prefer to fix it and wait with this PR.

kiatng
kiatng previously approved these changes Dec 5, 2022
@sreichel sreichel marked this pull request as draft December 5, 2022 01:21
@fballiano
Copy link

auch, conflict

@addison74
Copy link
Contributor

I am not a specialist in using PHPStan. If we take a look in browser to any PR in "Files changed" section we will see errors generated by PHPStan used by GitHub. If anyone will check them with better knowledge it will be great to fix them.

@sreichel
Copy link
Contributor Author

sreichel commented Dec 9, 2022

@addison74 please ignore this as long it is marked as draft.

Short explain. Some Varien classes have/had had incompatible interfaces so PHPstan was not able to check them. For this reason i've ignored them PHPstan config, but this does not work for this PR for some unknown reason (autoloader ...). I'd tried to fix the incompatible interfaces and now the files are processed. The errors will be fixed in next commits.

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: Bundle Relates to Mage_Bundle Component: Catalog Relates to Mage_Catalog Component: Core Relates to Mage_Core Component: Downloadable Relates to Mage_Downloadable Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* Component: Log Relates to Mage_Log Don't forget this PR phpstan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants