Skip to content

Update

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Update
Since
3.5.15

Update helper

View source

Public Methods

MethodDescription
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

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