Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function run() |
||
20 | { |
||
21 | ini_set('memory_limit', '1024M'); |
||
22 | /** @var IntegerNet_Anonymizer_Model_Anonymizer $anonymizer */ |
||
23 | $anonymizer = Mage::getModel('integernet_anonymizer/anonymizer'); |
||
24 | $anonymizer->setOutputStream(STDOUT); |
||
|
|||
25 | $anonymizer->setShowProgress((bool) $this->getArg('progress')); |
||
26 | $anonymizer->setProgressSteps((int) $this->getArg('progress')); |
||
27 | $anonymizer->anonymizeAll(); |
||
28 | } |
||
29 | |||
43 | $shell->run(); |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: