Skip to content

Commit 890ac6a

Browse files
committed
Fixed show version warning
1 parent b61d10d commit 890ac6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Docs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ public function behind(): ?int
335335
}
336336

337337
/**
338-
* @return string
338+
* @return bool
339339
*/
340-
public function isOlderVersion()
340+
public function isOlderVersion():bool
341341
{
342-
return $this->version !== static::DEFAULT_VERSION;
342+
return version_compare($this->version, static::DEFAULT_VERSION) < 0;
343343
}
344344

345345
/**

0 commit comments

Comments
 (0)