Skip to content

Commit

Permalink
fix: to solve php versions like: 9.0 / 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal authored and dunglas committed Oct 9, 2023
1 parent e193a37 commit 52caf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frankenphp.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func Init(options ...Option) error {

config := Config()

if config.Version.MajorVersion < 8 || config.Version.MinorVersion < 2 {
if config.Version.MajorVersion < 8 || (config.Version.MajorVersion == 8 && config.Version.MinorVersion < 2) {
return InvalidPHPVersionError
}

Expand Down

0 comments on commit 52caf17

Please sign in to comment.