Skip to content

Commit cc214e6

Browse files
committed
change "callback" to "callable"
1 parent 5d563f3 commit cc214e6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

app/Mage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public static function getConfig()
491491
* Add observer to events object
492492
*
493493
* @param string $eventName
494-
* @param callback $callback
494+
* @param callable $callback
495495
* @param array $data
496496
* @param string $observerName
497497
* @param class-string|'' $observerClass

app/code/core/Mage/Customer/Model/Session.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* @method array getCustomerFormData()
3737
* @method $this setCustomerFormData(array $value)
3838
* @method bool hasDisplayOutOfStockProducts()
39-
* @method string getDisplayOutOfStockProducts(string $value)
40-
* @method $this setDisplayOutOfStockProducts()
39+
* @method string getDisplayOutOfStockProducts()
40+
* @method $this setDisplayOutOfStockProducts(string $value)
4141
* @method string getForgottenEmail()
4242
* @method $this setForgottenEmail(string $value)
4343
* @method $this unsForgottenEmail()

app/code/core/Mage/Paypal/Block/Adminhtml/System/Config/Fieldset/Payment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function _getFrontendClass($element)
3838
* Check whether current payment method is enabled
3939
*
4040
* @param Varien_Data_Form_Element_Abstract $element
41-
* @param callback|null $configCallback
41+
* @param callable|null $configCallback
4242
* @return bool
4343
*/
4444
protected function _isPaymentEnabled($element, $configCallback = null)

lib/Varien/Data/Collection/Filesystem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ protected function _generateRow($filename)
386386
* @param string $field
387387
* @param mixed $value
388388
* @param string $type 'and'|'or'
389-
* @param callback $callback
389+
* @param callable $callback
390390
* @param bool $isInverted
391391
* @return $this
392392
*/
@@ -440,7 +440,7 @@ protected function _filterRow($row)
440440
* Invokes specified callback
441441
* Skips, if there is no filtered key in the row
442442
*
443-
* @param callback $callback
443+
* @param callable $callback
444444
* @param array $callbackParams
445445
* @return bool
446446
*/

lib/Varien/Object/Mapper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class Varien_Object_Mapper
4040
* <Varien_Object> => $from->setData($key, <from>)
4141
* array(<Varien_Object>, <method>) => $from->$method($key, <from>)
4242
*
43-
* @param array|Varien_Object|callback $from
44-
* @param array|Varien_Object|callback $to
43+
* @param array|Varien_Object|callable $from
44+
* @param array|Varien_Object|callable $to
4545
* @return array|Varien_Object
4646
*/
4747
public static function &accumulateByMap($from, $to, array $map, array $defaults = [])

0 commit comments

Comments
 (0)