Argument add to addRecord upstream
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3284825. -->
Reported by: [rlmumford](https://www.drupal.org/user/794682)
Related to !7
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In <a href="https://github.com/Seldaek/monolog/commit/24e414c99378c227fff95a6483c85dfff2e79779">https://github.com/Seldaek/monolog/commit/24e414c99378c227fff95a6483c85dfff2e79779</a> Monolog added an argument to addRecord/</p>
<p>This means you now get the following error when using the monolog module (2.0.1 - Monolog 2.7.0):<br>
"Declaration of Drupal\monolog\Logger\Logger::addRecord(int $level, string $message, array $context = Array): bool should be compatible with Monolog\Logger::addRecord(int $level, string $message, array $context = Array, ?Monolog\DateTimeImmutable $datetime = NULL): bool"</p>
<h3 id="summary-api-changes">API changes</h3>
<p>Add the argument to addRecord.</p>
issue