Zend certified PHP/Magento developer

Error after data-migration-tool update

After updating data-migration-tool I get this error every time I try to run the command:

  Warning: Could not check compatibility between MigrationLoggerLogger::addRecord(int $level, string $message, array $context = Array, ?MigrationLoggerDateTimeImmutable $datetime = NULL): bool and MonologLogger::addRecord(int $level, string $message, array $context = Array,   
  ?MonologDateTimeImmutable $datetime = NULL): bool, because class MigrationLoggerDateTimeImmutable is not available in public_html/vendor/magento/data-migration-tool/src/Migration/Logger/Logger.php on line 34 

How can I come back to the earlier version of data-migration-tool? Is it possible or should I made changes in Logger file?