Eliminate deprecation warnings about assigning a scalar to an array property