Changeset View
Changeset View
Standalone View
Standalone View
src/internationalization/PhutilNumber.php
<?php | <?php | ||||
final class PhutilNumber extends Phobject { | final class PhutilNumber extends Phobject { | ||||
private $value; | private $value; | ||||
private $decimals = 0; | private $decimals = 0; | ||||
public function __construct($value) { | public function __construct($value, $decimals = 0) { | ||||
$this->value = $value; | $this->value = $value; | ||||
$this->decimals = $decimals; | |||||
} | } | ||||
epriestley: This doesn't seem like a static analysis error? | |||||
Not Done Inline ActionsIt's called like this from src/daemon/PhutilDaemonHandle.php and src/daemon/PhutilDaemon.php. vrana: It's called like this from `src/daemon/PhutilDaemonHandle.php` and `src/daemon/PhutilDaemon. | |||||
public function getNumber() { | public function getNumber() { | ||||
return $this->value; | return $this->value; | ||||
} | } | ||||
public function setDecimals($decimals) { | public function setDecimals($decimals) { | ||||
$this->decimals = $decimals; | $this->decimals = $decimals; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDecimals() { | public function getDecimals() { | ||||
return $this->decimals; | return $this->decimals; | ||||
} | } | ||||
} | } |
This doesn't seem like a static analysis error?