Skip to content

Commit

Permalink
check() function is improved using version_compare.
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocinaglia committed Jul 11, 2018
1 parent 2174735 commit 3e54bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaraUpdaterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function getCurrentVersion(){
public function check()
{
$lastVersionInfo = $this->getLastVersion();
if ( $lastVersionInfo['version'] > $this->getCurrentVersion() )
if( version_compare($lastVersionInfo['version'], $this->getCurrentVersion(), ">") )
return $lastVersionInfo['version'];

return '';
Expand Down

0 comments on commit 3e54bd2

Please sign in to comment.