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

Corrige les alerts PHPStan.

parent 43262d9d
......@@ -64,6 +64,11 @@ class BaseArrow implements ArrowInterface
*/
private $targetCardinality;
/**
* @var mixed|null
*/
private $label;
public function __construct(
NodeInterface $source,
NodeInterface $target,
......
......@@ -49,6 +49,11 @@ class ClassVisitor implements ClassVisitorInterface
*/
protected $decorator;
/**
* @var array<string, NodeInterface>
*/
private $nodes;
public function __construct(
DecoratorInterface $decorator = null,
ClassFilterInterface $filter = null,
......
......@@ -23,6 +23,7 @@ namespace Irstea\PlantUmlBundle\Model\Decorator;
use Irstea\PlantUmlBundle\Model\ClassVisitorInterface;
use Irstea\PlantUmlBundle\Model\DecoratorInterface;
use Irstea\PlantUmlBundle\Model\NodeInterface;
use Irstea\PlantUmlBundle\Utils\Singleton;
use ReflectionClass;
/**
......@@ -30,7 +31,7 @@ use ReflectionClass;
*/
class NullDecorator implements DecoratorInterface
{
use \Irstea\PlantUmlBundle\Utils\Singleton;
use Singleton;
public function decorate(ReflectionClass $class, NodeInterface $node, ClassVisitorInterface $visitor)
{
......
......@@ -28,6 +28,11 @@ use ReflectionClass;
*/
abstract class AbstractListFilter implements ClassFilterInterface
{
/**
* string.
*/
protected const CONF_TYPE = 'UNDEFINED';
/**
* @var string[]
*/
......
......@@ -30,6 +30,11 @@ use Irstea\PlantUmlBundle\Writer\WriterInterface;
*/
abstract class AbstractNamespace implements WritableInterface, NamespaceInterface
{
/**
* string.
*/
protected const CONF_TYPE = 'UNDEFINED';
/**
* @var NodeInterface[]
*/
......
......@@ -30,8 +30,12 @@ trait Singleton
*/
private static $instance;
final protected function __construct()
{
}
/**
* @return self
* @return static
*/
public static function instance()
{
......
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