- π³πΏNew Zealand jweowu
composer.json should specify that 9.3 is the minimum supported version, no?
After this update I've got an error 500 as the service doesn't exist pre 9.3.
There should be some check before the service call, something like:if ((float) \Drupal::VERSION < 9.3) { $file = file_save_data('', $destination, FileSystemInterface::EXISTS_REPLACE); } else { $file = \Drupal::service('file.repository')->writeData('', $destination, FileSystemInterface::EXISTS_REPLACE); }
or atleast as @jweowu mentioned, the minimum supported version specified.