Update
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Update
- Since
- 3.5.15
Update helper
View source (opens new window)
# 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.
View source (opens new window)
Arguments
$constraint
(string (opens new window)) – The PHP version constraint$error
(string (opens new window), null (opens new window)) – The error message$withLink
(boolean (opens new window)) – Whether the error message should include a “Learn more” link
Returns
boolean (opens new window) – Whether the environment passes the PHP constraint