Skip to content

Commit f32111e

Browse files
committed
Build fix
1 parent c149c24 commit f32111e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/UserAgentParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ private function validateVersion()
137137
if (
138138
!empty($this->version) &&
139139
(
140-
str_replace('+', '', filter_var($this->version, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION)) ||
140+
str_replace('+', '', filter_var($this->version, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION)) !== $this->version ||
141141
version_compare($this->version, '0.0.1', '>=') === false
142142
)
143143
) {
144-
throw new VersionException("Invalid version format (` $this->version `). See http://semver.org/ for guidelines. In addition, dev/alpha/beta/rc tags is disallowed. See also " . self::RFC_README);
144+
throw new VersionException("Invalid version format (`$this->version`). See http://semver.org/ for guidelines. In addition, dev/alpha/beta/rc tags is disallowed. See also " . self::RFC_README);
145145
}
146146
$new = trim($this->version, '.0');
147147
$this->version = empty($new) ? null : $new;

0 commit comments

Comments
 (0)