mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Fixed static analyis issue
This commit is contained in:
parent
80c7680d17
commit
0eea7f8d4d
2 changed files with 6 additions and 4 deletions
|
@ -24,6 +24,7 @@ namespace App\Form\AdminPages;
|
|||
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Form\Type\BigDecimalMoneyType;
|
||||
use App\Services\LogSystem\EventCommentNeededHelper;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CurrencyType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
@ -33,9 +34,9 @@ class CurrencyAdminForm extends BaseEntityAdminForm
|
|||
{
|
||||
private string $default_currency;
|
||||
|
||||
public function __construct(Security $security, string $default_currency)
|
||||
public function __construct(Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
{
|
||||
parent::__construct($security);
|
||||
parent::__construct($security, $eventCommentNeededHelper);
|
||||
$this->default_currency = $default_currency;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ use App\Entity\Base\AbstractNamedDBElement;
|
|||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Form\Type\BigDecimalMoneyType;
|
||||
use App\Form\Type\StructuralEntityType;
|
||||
use App\Services\LogSystem\EventCommentNeededHelper;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
|
@ -33,9 +34,9 @@ class SupplierForm extends CompanyForm
|
|||
{
|
||||
protected string $default_currency;
|
||||
|
||||
public function __construct(Security $security, string $default_currency)
|
||||
public function __construct(Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
{
|
||||
parent::__construct($security);
|
||||
parent::__construct($security, $eventCommentNeededHelper);
|
||||
$this->default_currency = $default_currency;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue