Commit 1221cb30 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

PHP8.2

parent 9fdfabf9
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Filter/FloatFromString.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ class FloatFromString extends AbstractFilter

    public function filter($value)
    {
        if ($value === '') return null;
        if ($value === '' || $value === null) return null;

        if (false !== strpos($value, '/')) {
            [$f1, $f2] = explode('/', $value);
+1 −1
Changes for module/Application/src/Filter/StringFromFloat.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class StringFromFloat extends AbstractFilter

        $res = Util::formattedFloat($value);
        if (!$show0Digits) {
            $res = str_replace(',00', '', $res);
            $res = str_replace(',00', '', $res ?? '');
        }

        return $res;
−1
Changes for module/PieceJointe/src/Service/PieceJointeService.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -200,7 +200,6 @@ class PieceJointeService extends AbstractEntityService
        $result = [];
        foreach ($lpjf as $pjf) {
            $pj        = $pjf->getPieceJointe();
            $pj->annee = $pjf->getAnnee();
            //Gérer les cas où plusieurs PJ sont éligible mais sans date d'archive, on prend la première uniquement.
            if (!array_key_exists($pj->getType()->getId(), $result)) {
                $result[$pj->getType()->getId()] = $pj;