| @@ -215,9 +215,12 @@ | ||
| 215 | 215 | public $PLATFORM_ANDROID = 'Android'; |
| 216 | 216 | |
| 217 | 217 | public $OPERATING_SYSTEM_UNKNOWN = 'unknown'; |
| 218 | 218 | |
| 219 | - function Browser( $useragent = "" ) { | |
| 219 | + /** | |
| 220 | + * @since 4.9.0 rename function - PHP 8 compatibility | |
| 221 | + */ | |
| 222 | + public function __construct( $useragent = "" ) { | |
| 220 | 223 | $this->reset(); |
| 221 | 224 | if ( $useragent != "" ) { |
| 222 | 225 | $this->setUserAgent( $useragent ); |
| 223 | 226 | } else { |
| @@ -1174,5 +1177,5 @@ | ||
| 1174 | 1177 | $this->_platform = $this->PLATFORM_WINDOWS; |
| 1175 | 1178 | } |
| 1176 | 1179 | |
| 1177 | 1180 | } |
| 1178 | -} | |
| 1181 | +} | |