mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -242,7 +242,7 @@ class ProjectBOMEntry extends AbstractDBElement
|
|||
}
|
||||
|
||||
//Check that the number of mountnames is the same as the (rounded) quantity
|
||||
if (!empty($this->mountnames) && count($uniq_mountnames) !== (int) round ($this->quantity)) {
|
||||
if ($this->mountnames !== '' && count($uniq_mountnames) !== (int) round ($this->quantity)) {
|
||||
$context->buildViolation('project.bom_entry.mountnames_quantity_mismatch')
|
||||
->atPath('mountnames')
|
||||
->addViolation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue