Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/php7.3 and other improvements #21

Merged
merged 13 commits into from
Mar 25, 2021

Conversation

mtompset
Copy link
Contributor

Change

  • Update PHP requirements to 7.3 or higher

Fix

  • Update PHPUnit to 9.x
  • Code cleanup with transition to PHP 7.3
  • Refactor Psr3Yii2Logger::interpolate to only return string

Add

  • Psr3Yii2Logger::interpolateArray to only return array
  • Psr3Yii2Logger tests

@mtompset mtompset requested review from forevermatt and briskt March 24, 2021 20:21
@mtompset mtompset self-assigned this Mar 24, 2021
src/LoggerBase.php Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
src/Psr3Yii2Logger.php Outdated Show resolved Hide resolved
- Removed isArraySupported, since only Psr3Yii2Logger supports arrays
- Removed interpolateArray() call in favour of an inline array_merge()
- Strongly type interpolateString()
- Move EMERGENCY log level case
- remove isArraySupported
- replace call to interpolateArray() with array_merge()
'to' => ['[email protected]', '[email protected]'],
'subject' => 'Log message',
'formattedMessage' => ['Do not attempt to follow this example.'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 😁


# Make sure apt has current list/updates
RUN apt-get update -y \
# Fix timezone stuff from hanging.
&& echo "Etc/UTC" > /etc/timezone \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change to UTC here 👍

@mtompset mtompset merged commit 5a977c8 into develop Mar 25, 2021
@mtompset mtompset deleted the feature/PHP7.3-and-other-improvements branch March 25, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants