The method requires Website
object, but annotation said it could be null
|
* @param Website|null $website |
|
protected function getPriceListByAnonymousCustomerGroup(Website $website) |
Couse TypeError exception from the getPriceList
method when it's both attributes nullable.