foroco / php-browser-detection

Ultra fast PHP library to detect browser, OS, platform and device type by User-Agent parsing
MIT License
138 stars 33 forks source link

Warning Traying to access array offset on value of type bool in line 529 #4

Closed MuhammadAdelA closed 3 years ago

MuhammadAdelA commented 3 years ago

Edit line 529 $this->result_os_version = !is_bool($matches) ? (float)$matches[1] : 0;

foroco commented 3 years ago

Fixed. This Warning Notice appears since PHP version 7.4. However, fixed all affected code lines. Thank you for participating!