Commit 9dd7820d authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Correction du traitement de "final".

parent 4644e09c
......@@ -20,11 +20,12 @@ class Class_ extends BaseNode
public function __construct(NamespaceInterface $namespace, $name, $isAbstract, $isFinal)
{
$classifiers = [];
$stereotypes = [];
if ($isAbstract) {
$classifiers[] = 'abstract';
} elseif ($isFinal) {
$classifiers[] = 'final';
$stereotypes[] = 'final';
}
parent::__construct($namespace, $name, "class", $classifiers, []);
parent::__construct($namespace, $name, "class", $classifiers, $stereotypes);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment