Tags: shetabit/visitor
Tags
fix: align Agent::__call signature with MobileDetect 4.10 (#77) mobiledetect/mobiledetectlib 4.10.0 added typed parameter and return type declarations to MobileDetect::__call. Agent's untyped override caused a fatal LSP-incompatibility error at class load time on any install resolving 4.10+. Adopt the typed signature on Agent::__call and bump the mobiledetect/mobiledetectlib constraint to ^4.10 so installs pull a compatible parent. Fixes #76
fix: use explicit nullable type for visit() $model (PHP 8.4) (#75) PHP 8.4 deprecates implicitly nullable parameters when the type is non-nullable but the default is null (RFC / migration notes). visit(Model $model = null) triggers: Implicitly marking parameter $model as nullable is deprecated, the explicit nullable type must be used instead. This changes the signature to visit(?Model $model = null), which is equivalent at runtime and removes the deprecation.
Added check $this->request in case of bot (#65) * Added check $this->request in case of bot * Updated the logic * Update src/Drivers/JenssegersAgent.php Co-authored-by: mahdikhanzadi <6291970+khanzadimahdi@users.noreply.github.com> * Reverted the string --------- Co-authored-by: mahdikhanzadi <6291970+khanzadimahdi@users.noreply.github.com>
PreviousNext