Commit 0bbbece
authored
fix(ehi-export): initialize variables in createExportTasksFromJobWith… (openemr#10830)
Fixes openemr#10808
#### Short description of what this resolves:
This PR fixes "Undefined variable" notices in the EHI Export service.
Previously, $tasks and $currentDocumentSize were used/returned before
being initialized, which could trigger PHP errors if the patient loops
were skipped or upon the first iteration of a document size calculation.
#### Changes proposed in this pull request:
Define the variables
#### Does your code include anything generated by an AI Engine?
No
Testing performed:
Ran devtools php-parserror (Passed).
Ran devtools phpstan and confirmed the "Ignored error pattern" warnings
for these variables are now appearing as "not matched," confirming the
fix.1 parent 76a172a commit 0bbbece
2 files changed
Lines changed: 2 additions & 10 deletions
File tree
- .phpstan/baseline
- interface/modules/custom_modules/oe-module-ehi-exporter/src/Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12226 | 12226 | | |
12227 | 12227 | | |
12228 | 12228 | | |
12229 | | - | |
12230 | | - | |
12231 | | - | |
12232 | | - | |
12233 | | - | |
12234 | 12229 | | |
12235 | 12230 | | |
12236 | 12231 | | |
| |||
12241 | 12236 | | |
12242 | 12237 | | |
12243 | 12238 | | |
12244 | | - | |
12245 | | - | |
12246 | | - | |
12247 | | - | |
12248 | | - | |
12249 | 12239 | | |
12250 | 12240 | | |
12251 | 12241 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
758 | 760 | | |
759 | 761 | | |
760 | 762 | | |
| |||
0 commit comments