Skip to content

Commit

Permalink
Bump php-cs-fixer to version 3.60 (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jul 30, 2024
1 parent f8265aa commit 0bf623a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Enable compiler optimization for the `sprintf` function.

## 1.2.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/CloudWatchLogsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private function flushBuffer(): void
private function formatRecords($record): array
{
if (!$record instanceof LogRecord && !\is_array($record)) {
throw new InvalidArgument(sprintf('Argument 1 passed to %s must be of the type array or LogRecord, %s given', __METHOD__, \gettype($record)));
throw new InvalidArgument(\sprintf('Argument 1 passed to %s must be of the type array or LogRecord, %s given', __METHOD__, \gettype($record)));
}

$entries = str_split($record['formatted'], self::EVENT_SIZE_LIMIT);
Expand Down
2 changes: 1 addition & 1 deletion tests/CloudWatchLogsHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function getRecord(int $level = Logger::WARNING, string $message = 'test
'context' => $context,
'level' => $level,
'channel' => 'test',
'datetime' => $datetime ?? \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
'datetime' => $datetime ?? \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', microtime(true))),
'extra' => [],
];

Expand Down

0 comments on commit 0bf623a

Please sign in to comment.