Skip to content

Commit

Permalink
Merge branch '1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Nov 8, 2023
2 parents 0616eda + ad2c171 commit 967a4ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Data/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ final class Log implements LogDataInterface {
* @var array
*/
private static $filters = [
self::MESSAGE => FILTER_SANITIZE_STRING,
self::MESSAGE => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
self::LEVEL => FILTER_SANITIZE_NUMBER_INT,
self::CHANNEL => FILTER_SANITIZE_STRING,
self::CHANNEL => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
self::CONTEXT => [ 'filter' => FILTER_UNSAFE_RAW, 'flags' => FILTER_REQUIRE_ARRAY ],
];

Expand Down
1 change: 1 addition & 0 deletions src/Handler/HandlersRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function find( $name ) {
/**
* @return int
*/
#[\ReturnTypeWillChange]
public function count() {

return count( $this->handlers );
Expand Down
2 changes: 1 addition & 1 deletion src/HookListener/WpDieHandlerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function filter( array $args ) {

return function ( $message, $title = '', $args = [] ) use ( $handler ) {

$msg = filter_var( $message, FILTER_SANITIZE_STRING );
$msg = filter_var( $message, FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$context = $args;
$context[ 'title' ] = $title;

Expand Down
1 change: 1 addition & 0 deletions src/Processor/ProcessorsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public function find( $name ) {
/**
* @return int
*/
#[\ReturnTypeWillChange]
public function count() {

return count( $this->processors );
Expand Down

0 comments on commit 967a4ce

Please sign in to comment.