don't depend on phpstan 0.12.4 phpdoc inheriting

this causes build failure because the parameter names are different to
the base class.
This commit is contained in:
Dylan K. Taylor 2020-01-11 22:08:08 +00:00
parent 8f7d8347ee
commit 5816ff85ba
2 changed files with 12 additions and 0 deletions

View File

@ -151,6 +151,12 @@ class Perlin extends Noise{
*/
}
/**
* @param float $x
* @param float $y
*
* @return float
*/
public function getNoise2D($x, $y){
return $this->getNoise3D($x, $y, 0);
}

View File

@ -266,6 +266,12 @@ class Simplex extends Perlin{
return 32.0 * $n;
}
/**
* @param float $x
* @param float $y
*
* @return float
*/
public function getNoise2D($x, $y){
$x += $this->offsetX;
$y += $this->offsetY;