Commit 782b7484 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

toString en erreur

parent 649a2082
Loading
Loading
Loading
Loading
+2 −5
Changes for module/Referentiel/src/Entity/Db/ServiceReferentiel.php: 2 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -82,12 +82,9 @@ class ServiceReferentiel implements HistoriqueAwareInterface, ResourceInterface,

    public function __toString(): string
    {
        $heures = Util::formattedFloat($this->getHeures(), \NumberFormatter::DECIMAL, -1);

        return sprintf("%s%s : %s (%sh)",
        return sprintf("%s : %s",
            $this->getStructure() ? " - " . $this->getStructure() : null,
            $this->getFonctionReferentiel(),
            $heures);
            $this->getFonctionReferentiel());
    }