extcode / cart_events

CartEvents is a TYPO3 extension and provides an own data storage for events. Events can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
GNU General Public License v2.0
4 stars 3 forks source link

TypeError in CategoryRepository.php #83

Open nik09 opened 11 months ago

nik09 commented 11 months ago

Hi there,

i found an issue with the type declaration in the CategoryRepository.

Lines 19 and 77 should have a [] instead of null otherwise this error might occur:

Extcode\CartEvents\Domain\Repository\CategoryRepository::buildSubcategories(): Argument #2 ($parentCategory) must be of type array, null given, called in /var/www/vhosts/gracious-lewin.85-214-17-136.plesk.page/httpdocs/typo3conf/ext/cart_events/Classes/Domain/Repository/CategoryRepository.php on line 19

Used version is 4.1.0

Greetings

Niklas