/** Create a new properties object from a string source */ protected function newPropertiesFrom(string $source) : Properties { with($t = new TempFile()); $t->out()->write($source); $t->close(); return (new Properties())->load($t); }