Skip to content

Commit

Permalink
fix warnings with syslog checkconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Mar 21, 2024
1 parent 53ba5c9 commit 520399c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/modules/syslog/logHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public function configure()
* It will be called after setting the configuration.
* The function returns an array with error messages
*
* @return array
* @return bool
*/
public function checkConfiguration()
{
return array();
return true;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion htdocs/core/modules/syslog/logHandlerInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
/* Copyright (C) 2024 Frédéric France <[email protected]>
*/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -79,7 +81,7 @@ public function isActive();
/**
* Output log content
*
* @param string $content Content to log
* @param array $content Content to log
* @return void
*/
public function export($content);
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
# minimumNumberOfJobsPerProcess: 2 # default is 2
# buffer: 134217728 # 128 MB # Not documented
customRulesetUsed: true
level: 2
level: 3
fileExtensions:
- php
paths:
Expand Down

0 comments on commit 520399c

Please sign in to comment.