Update
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Update
- Since
- 3.5.15
Update helper
Public Methods
Method | Description |
---|---|
checkPhpConstraint() | Compares the given PHP version constraint with the environment, and returns any issues with it. |
checkPhpConstraint()
Compares the given PHP version constraint with the environment, and returns any issues with it.
Arguments
$constraint
(string) – The PHP version constraint$error
(string, null) – The error message$withLink
(boolean) – Whether the error message should include a “Learn more” link
Returns
boolean – Whether the environment passes the PHP constraint