@@ -1749,7 +1749,7 @@ public function cacherCheckNewVersion(ItemInterface $item): array|false {
17491749 * Returns either the next strictly higher version or false when nothing is found/requested.
17501750 */
17511751 public function checkNewVersion (): string |false {
1752- if ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::Strategy_none ) {
1752+ if ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::NONE ) {
17531753 return false ;
17541754 }
17551755 // The local version is something like "x.y.z / commit hash", e.g. "8.4.0DEV/4e25adb13" for development
@@ -1775,7 +1775,7 @@ public function checkNewVersion(): string|false {
17751775
17761776 preg_match ("/\d.\d.\d/ " , $ this ->domjudgeVersion , $ matches );
17771777 $ extractedLocalVersionString = $ matches [0 ];
1778- if ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::Strategy_incremental ) {
1778+ if ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::INCREMENTAL ) {
17791779 /* Steer towards the nearest highest patch release first
17801780 * So the expected path would be:
17811781 * DJ6.0.0 -> DJ6.0.6 -> DJ6.6.0 -> DJ9.1.2 instead of
@@ -1801,7 +1801,7 @@ public function checkNewVersion(): string|false {
18011801 }
18021802 }
18031803 }
1804- } elseif ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::Strategy_major_release ) {
1804+ } elseif ($ this ->config ->get ('check_new_version ' , false ) === UpdateStrategy::MAJOR_RELEASE ) {
18051805 /* Steer towards the latest version directly
18061806 * So the expected path would be:
18071807 * DJ6.0.0 -> DJ9.1.2
0 commit comments