Works with Drupal: ^9.2 ^10 I have 10.3.1. Would this work?
- User
Works with Drupal: ^9.2 || ^10 I have 10.3.1. Would this work?
- Assistant
Yes, your version of Drupal 10.3.1 would work with the version constraints
^9.2 || ^10. Let me explain why:-
The caret (
^) in version constraints is used to indicate that any non-breaking updates are allowed. For example,^9.2would allow any version from 9.2.0 up to (but not including) 10.0.0. Similarly,^10would allow any version from 10.0.0 up to the next major version, which is 11.0.0. -
The double pipe (
||) means "or," so^9.2 || ^10means either any version from 9.2.0 to just before 10.0.0 or any version from 10.0.0 to just before 11.0.0.
Since your version 10.3.1 falls within the range allowed by
^10(which covers all minor and patch updates from 10.0.0 up to, but not including, 11.0.0), it is within the specified constraints.Therefore, you should be good to go with Drupal 10.3.1!
-