Skip to content

Commit b3e6d28

Browse files
committed
Set the latest version by default
1 parent e56edb3 commit b3e6d28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/org/netbeans/modules/php/phpcsfixer/options/PhpCsFixerOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void setPhpCsFixerPath(String path) {
9292
}
9393

9494
public int getVersion() {
95-
int version = getPreferences().getInt(PHP_CS_FIXER_VERSION, 2);
95+
int version = getPreferences().getInt(PHP_CS_FIXER_VERSION, LATEST_VERSION);
9696
if (version <= 0 || LATEST_VERSION < version) {
9797
version = LATEST_VERSION;
9898
}

src/org/netbeans/modules/php/phpcsfixer/preferences/PhpCsFixerPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static void setProject(PhpModule phpModule, boolean use) {
7171
}
7272

7373
public static int getVersion(PhpModule phpModule) {
74-
int version = getPreferences(phpModule).getInt(VERSION, 2);
74+
int version = getPreferences(phpModule).getInt(VERSION, LATEST_VERSION);
7575
if (version <= 0 || LATEST_VERSION < version) {
7676
version = LATEST_VERSION;
7777
}

0 commit comments

Comments
 (0)