We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1e92c8 + 38aad67 commit 3aff24cCopy full SHA for 3aff24c
lib/internal/Magento/Framework/Filter/Money.php
@@ -5,6 +5,10 @@
5
*/
6
namespace Magento\Framework\Filter;
7
8
+/**
9
+ * @deprecated As money_format() was removed in PHP 8.0
10
+ * @see https://www.php.net/manual/en/function.money-format.php
11
+ */
12
class Money implements \Zend_Filter_Interface
13
{
14
/**
@@ -21,11 +25,17 @@ public function __construct($format)
21
25
}
22
26
23
27
28
+ * Returns the result of filtering $value
29
+ *
24
30
* @param float $value
31
32
* @return string
33
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
34
+ * @deprecated
35
36
public function filter($value)
37
- return money_format($this->_format, $value);
38
+ trigger_error('Class is deprecated', E_USER_DEPRECATED);
39
+ return '';
40
41
0 commit comments