Skip to content

Commit

Permalink
Change: This package now requires Monolog v2 or later
Browse files Browse the repository at this point in the history
Change: Minimum required PHP version is 7.1 because of the same constraint in Monolog v2
  • Loading branch information
Grapestain committed Apr 11, 2020
1 parent a4de802 commit 9fd5afe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
22 changes: 16 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Monolog v2 compatibility
## [Unreleased v2]

## [1.6.4] - 2020-04-11
## [2.0.0] - 2020-04-11
### Changed
- This package now requires Monolog v2 or later
- Minimum required PHP version is 7.1 because of the same constraint in Monolog v2


## [Unreleased v1]


## [1.6.4] - 2020-04-11
### Fixed
- Previous Fix in v.1.6.3 broke compatibility with Monolog v1 and PHP versions before 7.1. Monolog v2 compatibility will be reintroduced in v2 of this package.

Expand All @@ -19,15 +27,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- CHANGELOG.md

## [1.6.3] - 2019-11-12
## [1.6.3] - 2019-11-12
### Fixed
- Added ` quotes around additional and extra fields. This fixes issue when an extra/additional field is tried to be defined using a reserved SQL keyword as name. Example: "procedure" will cause "WordPress database error" written directly to the admin UI, and indeed failure to create logging table.
- Fixed Fatal error: Declaration of WordPressHandler\WordPressHandler->write(array $record) must be compatible with that of Monolog\Handler\AbstractProcessingHandler->write(array $record): void

### Reverted
- It was a mistake taking out extra fields, added back in

## [1.6.2] - 2017-05-26
## [1.6.2] - 2017-05-26
### Reverted
- It was a mistake taking out extra fields, added back in

Expand All @@ -39,7 +47,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
No changelog had been maintained up to this point. Refer to the GIT commit history for more details.


[Unreleased]: https://github.com/bradmkjr/monolog-wordpress/compare/1.6.0...HEAD
[Unreleased v2]: https://github.com/bradmkjr/monolog-wordpress/compare/2.0.0...HEAD
[2.0.0]: https://github.com/bradmkjr/monolog-wordpress/tree/2.0.0
[Unreleased v1]: https://github.com/bradmkjr/monolog-wordpress/compare/1.6.4...v1
[1.6.4]: https://github.com/bradmkjr/monolog-wordpress/tree/1.6.4
[1.6.3]: https://github.com/bradmkjr/monolog-wordpress/tree/1.6.3
[1.6.2]: https://github.com/bradmkjr/monolog-wordpress/tree/1.6.2
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["wordpress", "log", "logging", "monolog", "mysql", "database"],
"homepage": "https://github.com/bradmkjr/monolog-wordpress",
"license": "MIT",
"version": "1.6.4",
"version": "2.0.0",
"authors": [
{
"name": "Bradford Knowlton",
Expand All @@ -22,8 +22,8 @@
}
],
"require": {
"php": ">=5.3.0",
"monolog/monolog": "^1.4.0"
"php": ">=7.1.0",
"monolog/monolog": "^2.0.0"
},
"require-dev": {
"wordpress/wordpress": "4 - 5",
Expand Down
2 changes: 1 addition & 1 deletion src/WordPressHandler/WordPressHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function uninitialize()
* @param $record[]
* @return void
*/
protected function write(array $record)
protected function write(array $record): void
{
if (!$this->initialized) {
$this->initialize($record);
Expand Down

0 comments on commit 9fd5afe

Please sign in to comment.