It seems pretty clear that the type of CrawlerDetect::userAgent is string|null throughout this file. However, in some places it is typed as just null and in others it is typed as just string, when in fact, both are possible in all contexts. Moreover, the type initialization to null is redundant because all fields are null by default.
It seems pretty clear that the type of
CrawlerDetect::userAgent
isstring|null
throughout this file. However, in some places it is typed as justnull
and in others it is typed as juststring
, when in fact, both are possible in all contexts. Moreover, the type initialization tonull
is redundant because all fields are null by default.