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

Update from LTS #2

Merged
merged 104 commits into from
Jun 9, 2020
Merged

Update from LTS #2

merged 104 commits into from
Jun 9, 2020

Conversation

Sekiphp
Copy link
Owner

@Sekiphp Sekiphp commented Jun 9, 2020

No description provided.

Flyingmana and others added 30 commits November 23, 2019 20:26
reversed order is deprecated from php 7.4 on
PHP Deprecated:  Array and string offset access syntax with curly braces
is deprecated
* add php 7.4 to travis.yml
* Fix unused variables in Backend Crons

* Update doc

* Replaced deprecated each (PHP 7.2)
correct argument order of implode calls
fix php7.4 syntax deprecated warnings
* This commit only contains copyright updates
app/code/core/Mage/Compiler/controllers/Adminhtml/Compiler/ProcessController.php
app/design/adminhtml/default/default/template/compiler/process.phtml
Added mod_expires headers for common file types.
* Insert whitespace in class name for styling to work. See pull request #594 Remove whitespace in addBodyClass($className)#594

* Fixed typo in data type.
Especially the `$order` which is really really good to have there.  
It allows to custom the success page without loading the order again.
* Suggestion on implementing a proper POST of JSON data using Mage curl client.

* Better solution to solving the JSON POST issue

* Updating php doc comment
* Do not sum columns with undefined total function

This function only supports non-empty total functions (avg, sum, or total with slash)
so we can safely ignore fields which have 'total' undefined (null).
Fixes: #915

* Add mising space between bracket
sreichel and others added 29 commits May 21, 2020 21:31
- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)
- fix: `Cannot use [] for read` in Mage_Directory_Model_Resource_Country_Collection`::addCountryCodeFilter() (tested)

Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
This patch fixes "vsprintf(): Too few arguments" notice, when magento tries to
prepare JS language labels in Mage_Core_Helper_Js
(they are translated without passing arguments, as args are replaced on js side).
This way we avoid  the notice and processing of the notice in the error handler
(which adds some performance penalty to every request).
* Mage_Sales - DOC block update - part 1

- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)

* Mage_Sales - PSR2 update (installer only) - part 2

* Review fixes

* Update app/code/core/Mage/Sales/Model/Order/Total/Config/Base.php

Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
Co-authored-by: Aike Terjung <at@akt-web.de>
* Mage_Customer - DOC block update

* Change variable scope to private

* Some DOC updates, PSR2

* Changed for request

- #681 (comment)

Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)

Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
* cleanup-mage-cataloginventory

* Fixed qty int return types

* Use pipe instead of slash

* Use pipe instead of slash

Co-authored-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
)

Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)
- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)
…936)

The $type variable can be both string or int, so before comparing it to
'TYPE_CONDITION' string it has to be casted to avoid comparing integer zero
with string (0 == 'TYPE_CONDITION') which will wrongly return true,
and remove the information about type.

Pass type provided to where function down the chain to allow automatic
casting of arrays of values e.g. to int.

This fixes following cases:
1)
->where('attr_table.store_id IN (?)', $storeIds, Zend_Db::INT_TYPE);
2)
->where('attr_table.store_id = ?', $storeId, Zend_Db::INT_TYPE);
In both cases now passed value is correctly casted to int
(either single value, or each value from array)

Passing Zend_Db::INT_TYPE to where condition will prevent mysql performance
issues which might occur when mixed types are passed in "in()" condition.

Also fixes type hints along the way.
* Remove this->_debug

Not supposed to be there?

* Remove commented line

Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
- 3k occurrences of "count" and 119 of "sizeof"
- simplified "count(x) > 0"
- simplified "count(x) == 0"
- strict type compare to int
add parameter true to in_array function call to avoid php error Fatal error: Nesting level too deep - recursive dependency?
* Mage_Checkout - DOC block update

- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)

* Fixed mixed return types
* Mage_Core - DOC block update

* Removed new code

* Mage_Core fixes

- changes from reviews
- added some @methods
- reverted some changes in code style for less diffs

* DOC update

* Minor fixes
@Sekiphp Sekiphp merged commit 1a1ef13 into Sekiphp:1.9.4.x Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.