Output\Form\Generate fix for phan check

This commit is contained in:
Clemens Schwaighofer
2023-10-02 12:25:07 +09:00
parent a84a745be2
commit 6218e0a6a8

View File

@@ -1571,6 +1571,7 @@ class Generate
// either one of the post pks is set, or the mandatory // either one of the post pks is set, or the mandatory
foreach ($reference_array['elements'] as $el_name => $data_array) { foreach ($reference_array['elements'] as $el_name => $data_array) {
if ( if (
/** @phan-suppress-next-line PhanTypeMismatchDimAssignment This error makes no sense */
!empty($data_array['mandatory']) !empty($data_array['mandatory'])
) { ) {
$mand_name = $data_array['output_name']; $mand_name = $data_array['output_name'];