mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Add type hints and some other tweaks to satisfy PHPStan
This commit is contained in:
parent
caa623bd0b
commit
bef5aea7ad
11 changed files with 72 additions and 28 deletions
|
@ -5,7 +5,7 @@ use function Safe\fclose;
|
|||
use function Safe\error_log;
|
||||
|
||||
class Logger{
|
||||
public static function WriteGithubWebhookLogEntry(string $requestId, string $text){
|
||||
public static function WriteGithubWebhookLogEntry(string $requestId, string $text): void{
|
||||
try{
|
||||
$fp = fopen(GITHUB_WEBHOOK_LOG_FILE_PATH, 'a+');
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class Logger{
|
|||
fclose($fp);
|
||||
}
|
||||
|
||||
public static function WriteErrorLogEntry(string $text){
|
||||
public static function WriteErrorLogEntry(string $text): void{
|
||||
error_log($text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue