public function leaveNode($node)
{
/**
* {Description}
* The Salsa10 and Salsa20 hash algorithms have been removed.
*
* {Reference}
* http://php.net/manual/en/migration54.incompatible.php
*/
if ($node instanceof Expr\FuncCall && $this->funcTable->has($node->name)) {
$affected = true;
$certain = false;
if (!isset($node->args[0])) {
return;
}
$param = $node->args[0]->value;
if ($param instanceof Scalar\String_) {
$certain = $affected = strcasecmp($param->value, 'salsa10') === 0 || strcasecmp($param->value, 'salsa20') === 0;
}
if ($affected) {
$this->addSpot('WARNING', $certain, 'Salsa10 and Salsa20 hash algorithms have been removed');
}
}
}