Skip to content

Commit

Permalink
Fix the return type of version() (#890)
Browse files Browse the repository at this point in the history
This function can also return false when it finds no version.
  • Loading branch information
stof authored Mar 1, 2022
1 parent 0fd6753 commit 34d49ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mobile_Detect.php
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ public function prepareVersionNo($ver)
* is optional and defaults to self::VERSION_TYPE_STRING. Passing an
* invalid parameter will default to the this type as well.
*
* @return string|float The version of the property we are trying to extract.
* @return string|float|false The version of the property we are trying to extract.
*/
public function version($propertyName, $type = self::VERSION_TYPE_STRING)
{
Expand Down

0 comments on commit 34d49ff

Please sign in to comment.