mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -38,11 +38,8 @@ use Symfony\Component\Security\Core\Security;
|
|||
|
||||
class ProjectBuildType extends AbstractType implements DataMapperInterface
|
||||
{
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security)
|
||||
public function __construct(private readonly \Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->security = $security;
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
|
@ -79,10 +76,10 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
$form->add('addBuildsToBuildsPart', CheckboxType::class, [
|
||||
'label' => 'project.build.add_builds_to_builds_part',
|
||||
'required' => false,
|
||||
'disabled' => $build_request->getProject()->getBuildPart() === null,
|
||||
'disabled' => !$build_request->getProject()->getBuildPart() instanceof \App\Entity\Parts\Part,
|
||||
]);
|
||||
|
||||
if ($build_request->getProject()->getBuildPart()) {
|
||||
if ($build_request->getProject()->getBuildPart() instanceof \App\Entity\Parts\Part) {
|
||||
$form->add('buildsPartLot', PartLotSelectType::class, [
|
||||
'label' => 'project.build.builds_part_lot',
|
||||
'required' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue