You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I PR this? Not sure if that is the best way of doing it but the $rowArray isn't instantiated until after the initial if statement against instanceof SkipsEmptyRows. I can refactor that section a bit more if required?
The text was updated successfully, but these errors were encountered:
This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.44
What version of Laravel are you using?
9.38
What version of PHP are you using?
8.1
Describe your issue
Using SkipsEmptyRows suggests that the method
isEmptyWhen(array $row): bool
will be called for custom empty row validationIt never gets called
How can the issue be reproduced?
implement SkipsEmptyRows, add
isEmptyWhen(array $row): bool
log something and/or return false and the method never gets calledWhat should be the expected behaviour?
isEmptyWhen should be called in the foreach loop on line 60 of Maatwebsite\Excel\Imports\ModelImporter
Can I PR this? Not sure if that is the best way of doing it but the $rowArray isn't instantiated until after the initial if statement against instanceof SkipsEmptyRows. I can refactor that section a bit more if required?
The text was updated successfully, but these errors were encountered: