Skip to content

Commit 5e718fc

Browse files
authored
Merge branch 'main' into rector/php81/FirstClassCallableRector
2 parents 87577d4 + 1119385 commit 5e718fc

File tree

1,008 files changed

+8880
-9360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,008 files changed

+8880
-9360
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,15 @@
17161716
"contributions": [
17171717
"code"
17181718
]
1719+
},
1720+
{
1721+
"login": "vernad",
1722+
"name": "vernad",
1723+
"avatar_url": "https://avatars.githubusercontent.com/u/51973447?v=4",
1724+
"profile": "https://github.com/vernad",
1725+
"contributions": [
1726+
"code"
1727+
]
17191728
}
17201729
],
17211730
"commitType": "docs"

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v5
1515
- name: Check Spelling
16-
uses: rojopolis/spellcheck-github-actions@0.53.0
16+
uses: rojopolis/spellcheck-github-actions@0.54.0
1717
with:
1818
config_path: .github/spellcheck.yml
1919
task_name: Markdown

.php-cs-fixer.dist.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
// Docblocks should have the same indentation as the documented subject.
2828
'phpdoc_indent' => true,
2929
// Annotations in PHPDoc should be ordered in defined sequence.
30-
'phpdoc_order' => true,
30+
'phpdoc_order' => ['order' => ['param', 'return', 'throws', 'deprecated', 'see', 'SuppressWarnings', 'phpstan-ignore']],
31+
// Order PHPDoc tags by value.
32+
'phpdoc_order_by_value' => ['annotations' => ['author', 'covers', 'group', 'method', 'throws', 'uses']],
3133
// Orders all @param annotations in DocBlocks according to method signature.
3234
'phpdoc_param_order' => true,
3335
// PHPDoc should start and end with content, excluding the very first and last line of the docblocks.

.phpstan.dist.baseline.neon

Lines changed: 134 additions & 2912 deletions
Large diffs are not rendered by default.

.phpstan.dist.neon

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -96,37 +96,18 @@ parameters:
9696
- app/design/adminhtml/default/default/template/tax/class/page/edit.phtml
9797
- app/design/adminhtml/default/default/template/tax/toolbar/class/save.phtml
9898
- app/design/adminhtml/default/default/template/tax/toolbar/rule/save.phtml
99-
- app/design/frontend/base/default/template/bundle/catalog/product/list/partof.phtml
100-
- app/design/frontend/base/default/template/bundle/catalog/product/view/options/notice.phtml
101-
- app/design/frontend/base/default/template/catalog/category/page.phtml
102-
- app/design/frontend/base/default/template/catalog/category/widget/link/link_block.phtml
103-
- app/design/frontend/base/default/template/catalog/category/widget/link/link_inline.phtml
104-
- app/design/frontend/base/default/template/catalog/product/view/price.phtml
105-
- app/design/frontend/base/default/template/catalog/product/widget/link/link_block.phtml
106-
- app/design/frontend/base/default/template/catalog/product/widget/link/link_inline.phtml
107-
- app/design/frontend/base/default/template/checkout/cart/render/default.phtml
108-
- app/design/frontend/base/default/template/checkout/cart/render/simple.phtml
109-
- app/design/frontend/base/default/template/cms/widget/link/link_block.phtml
110-
- app/design/frontend/base/default/template/cms/widget/link/link_inline.phtml
111-
- app/design/frontend/base/default/template/cms/widget/static_block/default.phtml
112-
- app/design/frontend/base/default/template/core/messages.phtml
113-
- app/design/frontend/base/default/template/customer/address.phtml
114-
- app/design/frontend/base/default/template/customer/balance.phtml
115-
- app/design/frontend/base/default/template/customer/form/address.phtml
116-
- app/design/frontend/base/default/template/customer/form/changepassword.phtml
117-
- app/design/frontend/base/default/template/customer/orders.phtml
118-
- app/design/frontend/base/default/template/customer/wishlist.phtml
119-
- app/design/frontend/base/default/template/directory/currency/switch.phtml
120-
- app/design/frontend/base/default/template/page/redirect.phtml
121-
- app/design/frontend/base/default/template/paypal/hss/review/button.phtml
122-
- app/design/frontend/rwd/default/template/checkout/cart/render/default.phtml
123-
- app/design/frontend/rwd/default/template/checkout/cart/render/simple.phtml
124-
- app/design/frontend/rwd/default/template/customer/form/address.phtml
125-
- app/design/frontend/rwd/default/template/customer/form/changepassword.phtml
126-
- app/design/frontend/rwd/default/template/paypal/express/review/address.phtml
127-
- app/design/install/default/default/template/page.phtml
99+
-
100+
# update phpstan plugin
101+
identifier: method.protected
102+
paths:
103+
- app/design/*/*/template/*
128104
-
129105
identifier: phpunit.coversMethod
106+
-
107+
# update phpstan plugin
108+
identifier: property.protected
109+
paths:
110+
- app/design/*/*/template/*
130111
-
131112
identifier: variable.undefined
132113
paths:

.phpunit.dist.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
<testsuite name="Mage_Core">
5656
<directory>tests/unit/Mage/Core</directory>
5757
</testsuite>
58+
<testsuite name="Mage_Csp">
59+
<directory>tests/unit/Mage/Csp</directory>
60+
</testsuite>
5861
<testsuite name="Mage_Customer">
5962
<directory>tests/unit/Mage/Customer</directory>
6063
</testsuite>

.vendor-patches/PHPSTAN-ZF1F.patch

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
--- /dev/null
2+
+++ ../library/Zend/Cache/Backend.php
3+
@@ -137,7 +137,7 @@
4+
* if $specificLifetime is not false, the given specific life time is used
5+
* else, the global lifetime is used
6+
*
7+
- * @param int $specificLifetime
8+
+ * @param false|int $specificLifetime
9+
* @return int Cache life time
10+
*/
11+
public function getLifetime($specificLifetime)
12+
13+
--- /dev/null
14+
+++ ../library/Zend/Controller/Response/Abstract.php
15+
@@ -454,7 +454,7 @@
16+
* $spec is a string and matches a named segment, returns the contents of
17+
* that segment; otherwise, returns null.
18+
*
19+
- * @param boolean $spec
20+
+ * @param bool|string $spec
21+
* @return string|array|null
22+
*/
23+
public function getBody($spec = false)
24+
25+
--- /dev/null
26+
+++ ../library/Zend/Currency.php
27+
@@ -138,8 +138,8 @@
28+
/**
29+
* Returns a localized currency string
30+
*
31+
- * @param integer|float $value OPTIONAL Currency value
32+
- * @param array $options OPTIONAL options to set temporary
33+
+ * @param array|int|float|string $value OPTIONAL Currency value
34+
+ * @param array $options OPTIONAL options to set temporary
35+
* @throws Zend_Currency_Exception When the value is not a number
36+
* @return string
37+
*/
38+
39+
--- /dev/null
40+
+++ ../library/Zend/Db/Select.php
41+
@@ -486,7 +486,7 @@
42+
* @param string $cond Join on this condition.
43+
* @param array|string $cols The columns to select from the joined table.
44+
* @param string $schema The database name to specify, if any.
45+
- * @return Zend_Db_Select This Zend_Db_Select object.
46+
+ * @return $this This Zend_Db_Select object.
47+
*/
48+
public function joinStraight($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
49+
{
50+
51+
--- /dev/null
52+
+++ ../library/Zend/Measure/Abstract.php
53+
@@ -75,7 +75,7 @@
54+
* Zend_Measure_Abstract is an abstract class for the different measurement types
55+
*
56+
* @param mixed $value Value as string, integer, real or float
57+
- * @param int $type OPTIONAL a measure type f.e. Zend_Measure_Length::METER
58+
+ * @param string $type OPTIONAL a measure type f.e. Zend_Measure_Length::METER
59+
* @param Zend_Locale $locale OPTIONAL a Zend_Locale Type
60+
* @throws Zend_Measure_Exception
61+
*/
62+
63+
--- /dev/null
64+
+++ ../library/Zend/Cache/Backend/Memcached.php
65+
@@ -205,10 +205,10 @@
66+
* Note : $data is always "string" (serialization is done by the
67+
* core not by the backend)
68+
*
69+
- * @param string $data Datas to cache
70+
- * @param string $id Cache id
71+
- * @param array $tags Array of strings, the cache record will be tagged by each string entry
72+
- * @param int $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
73+
+ * @param string $data Datas to cache
74+
+ * @param string $id Cache id
75+
+ * @param array $tags Array of strings, the cache record will be tagged by each string entry
76+
+ * @param false|int $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
77+
* @return boolean True if no problem
78+
*/
79+
public function save($data, $id, $tags = [], $specificLifetime = false)
80+
81+
--- /dev/null
82+
+++ ../library/Zend/Translate.php
83+
@@ -63,7 +63,7 @@
84+
/**
85+
* Generates the standard translation object
86+
*
87+
- * @param array|Zend_Config|Zend_Translate_Adapter $options Options to use
88+
+ * @param array|string|Zend_Config|Zend_Translate_Adapter $options Options to use
89+
* @param string|array [$content] Path to content, or content itself
90+
* @param string|Zend_Locale [$locale]
91+
* @throws Zend_Translate_Exception

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
277277
<td align="center" valign="top" width="14.28%"><a href="http://www.denisahac.xyz"><img src="https://avatars.githubusercontent.com/u/6700576?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>Den Isahac</b></sub></a></td>
278278
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lc-excell"><img src="https://avatars.githubusercontent.com/u/158118232?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>lc-excell</b></sub></a></td>
279279
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/warley-elias-531a4116/"><img src="https://avatars.githubusercontent.com/u/5356619?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>Warley Elias</b></sub></a></td>
280+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vernard"><img src="https://avatars.githubusercontent.com/u/6733673?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>vernard</b></sub></a></td>
280281
</tr>
281282
</tbody>
282283
</table>

app/code/core/Mage/Admin/Model/Acl/Role.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@
1313
* @package Mage_Admin
1414
*
1515
* @method Mage_Admin_Model_Resource_Acl_Role _getResource()
16-
* @method Mage_Admin_Model_Resource_Acl_Role getResource()
1716
* @method Mage_Admin_Model_Resource_Acl_Role_Collection getCollection()
18-
* @method Mage_Admin_Model_Resource_Acl_Role_Collection getResourceCollection()
19-
*
2017
* @method int getParentId()
21-
* @method $this setParentId(int $value)
22-
* @method int getTreeLevel()
23-
* @method $this setTreeLevel(int $value)
24-
* @method int getSortOrder()
25-
* @method $this setSortOrder(int $value)
18+
* @method Mage_Admin_Model_Resource_Acl_Role getResource()
19+
* @method Mage_Admin_Model_Resource_Acl_Role_Collection getResourceCollection()
20+
* @method string getRoleName()
2621
* @method string getRoleType()
27-
* @method $this setRoleType(string $value)
22+
* @method int getSortOrder()
23+
* @method int getTreeLevel()
2824
* @method int getUserId()
29-
* @method $this setUserId(int $value)
30-
* @method string getRoleName()
25+
* @method $this setParentId(int $value)
3126
* @method $this setRoleName(string $value)
27+
* @method $this setRoleType(string $value)
28+
* @method $this setSortOrder(int $value)
29+
* @method $this setTreeLevel(int $value)
30+
* @method $this setUserId(int $value)
3231
*/
3332
class Mage_Admin_Model_Acl_Role extends Mage_Core_Model_Abstract
3433
{

app/code/core/Mage/Admin/Model/Block.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
* @package Mage_Adminhtml
1414
*
1515
* @method Mage_Admin_Model_Resource_Block _getResource()
16-
* @method Mage_Admin_Model_Resource_Block getResource()
17-
* @method Mage_Admin_Model_Resource_Block_Collection getCollection()
18-
* @method Mage_Admin_Model_Resource_Block_Collection getResourceCollection()
19-
*
2016
* @method string getBlockName()
17+
* @method Mage_Admin_Model_Resource_Block_Collection getCollection()
2118
* @method string getIsAllowed()
19+
* @method Mage_Admin_Model_Resource_Block getResource()
20+
* @method Mage_Admin_Model_Resource_Block_Collection getResourceCollection()
2221
*/
2322
class Mage_Admin_Model_Block extends Mage_Core_Model_Abstract
2423
{
@@ -31,9 +30,9 @@ protected function _construct()
3130
}
3231

3332
/**
33+
* @return array|true
3434
* @throws Exception
3535
* @throws Zend_Validate_Exception
36-
* @return array|true
3736
*/
3837
public function validate()
3938
{

0 commit comments

Comments
 (0)