Setting an environment is a method not a property.