Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Better version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Nov 26, 2019
1 parent 3f89b8a commit 04bb713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
'computed' => [
'isSupported' => function () {
if (version_compare($this->kirby()->version(), '3.3.0')) {
if (version_compare('3.3.0', $this->kirby()->version(), '>=')) {
throw new Exception('The editor requires Kirby version 3.3.0 or higher');
}
},
Expand Down

0 comments on commit 04bb713

Please sign in to comment.