Liquid: mark getSmallestFlowDecay() as impure

this fixes two bogus PHPStan warnings.
This commit is contained in:
Dylan K. Taylor
2021-02-25 22:41:07 +00:00
parent fcfd51dfc7
commit fac2bd3379
2 changed files with 3 additions and 10 deletions

View File

@ -418,6 +418,9 @@ abstract class Liquid extends Transparent{
return $isOptimalFlowDirection;
}
/**
* @phpstan-impure This function modifies the adjacent sources count (premature optimisation)
*/
private function getSmallestFlowDecay(Block $block, int $decay) : int{
$blockDecay = $this->getFlowDecay($block);