Closed AJenbo closed 1 year ago
In some cases the previous implementation would generate the following code:
foreach ($__currentLoopData as $productGroup) { /** @var \TomasVotruba\Bladestan\ValueObject\Loop $loop */ if ($loop->first) { ?> class="active" <?php } unset($loop); }
The new solution instead does the following:
foreach ($__currentLoopData as $productGroup) { $loop = \TomasVotruba\Bladestan\ValueObject\Loop(); if ($loop->first) { ?> class="active" <?php } unset($loop); }
This looks to probably have been related to some bad assumptions about the actual code structure.
Thanks 🙏
In some cases the previous implementation would generate the following code:
The new solution instead does the following:
This looks to probably have been related to some bad assumptions about the actual code structure.