Keleo / DeductionTimeBundle

Configure certain activities as deduction time, resulting in negative durations for timesheets.
MIT License
6 stars 4 forks source link

compile error #4

Closed laha83 closed 1 year ago

laha83 commented 1 year ago

while trying to install the plugin in a docker in environment with kimai 1.30.2

I got following message:

PHP Fatal error:  Declaration of KimaiPlugin\DeductionTimeBundle\Timesheet\Calculator\DeductionTimeCalculator::calculate(App\Entity\Timesheet $record, array $changeset): void must be compatible with App\Timesheet\CalculatorInterface::calculate(App\Entity\Timesheet $record) in /opt/kimai/var/plugins/DeductionTimeBundle/Timesheet/Calculator/DeductionTimeCalculator.php on line 19
07:54:25 CRITICAL  [php] Fatal Compile Error: Declaration of KimaiPlugin\DeductionTimeBundle\Timesheet\Calculator\DeductionTimeCalculator::calculate(App\Entity\Timesheet $record, array $changeset): void must be compatible with App\Timesheet\CalculatorInterface::calculate(App\Entity\Timesheet $record) ["exception" => Symfony\Component\ErrorHandler\Error\FatalError { …}]

In DeductionTimeCalculator.php line 19:

  Compile Error: Declaration of KimaiPlugin\DeductionTimeBundle\Timesheet\Cal
  culator\DeductionTimeCalculator::calculate(App\Entity\Timesheet $record, ar
  ray $changeset): void must be compatible with App\Timesheet\CalculatorInter
  face::calculate(App\Entity\Timesheet $record)
kevinpapst commented 1 year ago

https://github.com/Keleo/DeductionTimeBundle/issues/3