Merge branch '172-missing-exports' into 'master'

Fix some issues with exports

Closes #172

See merge request Chill-Projet/chill-bundles!601
This commit is contained in:
2023-10-24 13:47:30 +00:00
9 changed files with 26 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ final readonly class DurationAggregator implements AggregatorInterface
match ($data['precision']) {
'day' => $qb->addSelect('(COALESCE(acp.closingDate, :now) - acp.openingDate) AS duration_aggregator'),
'week' => $qb->addSelect('(COALESCE(acp.closingDate, :now) - acp.openingDate) / 7 AS duration_aggregator'),
'month' => $qb->addSelect('(EXTRACT (MONTH FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate)) * 12 +
'month' => $qb->addSelect('(EXTRACT (YEAR FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate)) * 12 +
EXTRACT (MONTH FROM AGE(COALESCE(acp.closingDate, :now), acp.openingDate))) AS duration_aggregator'),
default => throw new \LogicException('precision not supported: '.$data['precision']),
};

View File

@@ -28,7 +28,7 @@ use Symfony\Component\Form\FormBuilderInterface;
*
* Makes use of AccompanyingPeriodInfo
*/
readonly class UserWorkingOnCourseFilter implements FilterInterface
final readonly class UserWorkingOnCourseFilter implements FilterInterface
{
public function __construct(
private UserRender $userRender,