Browse Source

Fix phpstan errors

Ishan Vyas 5 years ago
parent
commit
f93c316c94
2 changed files with 2 additions and 3 deletions
  1. 2 2
      src/Utility/FileLog.php
  2. 0 1
      tests/bootstrap.php

+ 2 - 2
src/Utility/FileLog.php

@@ -20,7 +20,7 @@ class FileLog {
 	/**
 	 * Initialize configurations.
 	 *
-	 * @param string $filename Filename to log.
+	 * @param string|null $filename Filename to log.
 	 * @return void
 	 */
 	protected static function _init($filename): void {
@@ -44,7 +44,7 @@ class FileLog {
 	/**
 	 * Log data into custom file
 	 *
-	 * @param array|string $data Data to store
+	 * @param array|string|object $data Data to store
 	 * @param string|null $filename Filename of log file
 	 * @param bool $traceKey Add trace string key into log data
 	 * @return bool Success

+ 0 - 1
tests/bootstrap.php

@@ -102,7 +102,6 @@ Cake\Log\Log::setConfig('error', [
 	'url' => env('LOG_ERROR_URL', null),
 ]);
 
-
 Cake\Utility\Security::setSalt('foo');
 
 // Why is this required?