I see this included in places and wonder which version it actually is. Just dropping the version up top would be a major help, rather than me staring at it/diffing/etc...
/**
* Parses a user agent string into its important parts
*
* @version 306.2.97 or whatever...
* @author Jesse G. Donat <donatj@gmail.com>
* @link https://github.com/donatj/PhpUserAgent
* @link http://donatstudios.com/PHP-Parser-HTTP_USER_AGENT
* @param string|null $u_agent User agent string to parse or null. Uses $_SERVER['HTTP_USER_AGENT'] on NULL
* @throws \InvalidArgumentException on not having a proper user agent to parse.
* @return string[] an array with browser, version and platform keys
*/
I see this included in places and wonder which version it actually is. Just dropping the version up top would be a major help, rather than me staring at it/diffing/etc...