"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Log/LogTrait.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

LogTrait.php  (cakephp-4.0.1):LogTrait.php  (cakephp-4.0.2)
skipping to change at line 30 skipping to change at line 30
/** /**
* A trait providing an object short-cut method * A trait providing an object short-cut method
* to logging. * to logging.
*/ */
trait LogTrait trait LogTrait
{ {
/** /**
* Convenience method to write a message to Log. See Log::write() * Convenience method to write a message to Log. See Log::write()
* for more information on writing to logs. * for more information on writing to logs.
* *
* @param mixed $msg Log message. * @param string $message Log message.
* @param int|string $level Error level. * @param int|string $level Error level.
* @param string|array $context Additional log data relevant to this message . * @param string|array $context Additional log data relevant to this message .
* @return bool Success of log write. * @return bool Success of log write.
*/ */
public function log($msg, $level = LogLevel::ERROR, $context = []): bool public function log(string $message, $level = LogLevel::ERROR, $context = [] ): bool
{ {
return Log::write($level, $msg, $context); return Log::write($level, $message, $context);
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)