Commit 54ddea6
Added default return type array for getCategories in CampaignCategory
* Update CampaignCategory.php
Removed array typecast on getCategories. If a category has no sub categories we where getting errors like this:
Symfony\Component\Debug\Exception\FatalThrowableError: Return value of Hypeit\TradeTracker\Model\CampaignCategory::getCategories() must be of the type array, null returned
* Update CampaignCategory.php
Make response getCategories backwards compatible
* Update CampaignCategory.php
return type restriction on getCategories1 parent 0f70259 commit 54ddea6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments