Sync with https://github.com/sebastianbergmann/environment/commit/6424f8bfcd941012129da7ee318b39ba84f1026b