Skip to content

Commit

Permalink
support PHP 8.3.1 (#136)
Browse files Browse the repository at this point in the history
* support PHP 8.3.1

* Update PHPFmt.ts
  • Loading branch information
alix1383 authored Jan 13, 2024
1 parent 79250b9 commit 6cb25da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PHPFmt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ export class PHPFmt {
} else {
if (
compare(phpVersion, '5.6.0', '<') ||
compare(phpVersion, '8.3.0', '>')
compare(phpVersion, '8.4.0, '>')

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.3

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.3

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.1

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.1

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.2

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.2

Unterminated string literal.

Check failure on line 225 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 5.6

Unterminated string literal.
) {

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.3

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.3

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.1

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.1

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.2

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 7.2

')' expected.

Check failure on line 226 in src/PHPFmt.ts

View workflow job for this annotation

GitHub Actions / Test on macos-latest & PHP 5.6

')' expected.
throw new PHPFmtError('PHP version < 5.6 or > 8.3');
throw new PHPFmtError('PHP version < 5.6 or > 8.4');
}
}
} catch (err) {
Expand Down

0 comments on commit 6cb25da

Please sign in to comment.