diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index c1b81b904..0543c8795 100644 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -403,10 +403,12 @@ class Graph continue; } + /** @var int $diameter */ $diameter = \max($diameter, $this->getFloydWarshallShortestPath()); } } + /** @var int $diameter */ return $diameter; } diff --git a/Utils/Barcode/HIBCC.php b/Utils/Barcode/HIBCC.php index baf9ee9a5..2c6d465ed 100644 --- a/Utils/Barcode/HIBCC.php +++ b/Utils/Barcode/HIBCC.php @@ -82,7 +82,7 @@ class HIBCC public function getDateFormat() : string { - return $this->dateFormat(); + return $this->dateFormat; } public function setExpirationDate(\DateTime $date) : void