"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Bridge/Monolog/Logger.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

Logger.php  (symfony-4.4.14):Logger.php  (symfony-4.4.15)
skipping to change at line 32 skipping to change at line 32
*/ */
class Logger extends BaseLogger implements DebugLoggerInterface, ResetInterface class Logger extends BaseLogger implements DebugLoggerInterface, ResetInterface
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* @param Request|null $request * @param Request|null $request
*/ */
public function getLogs(/* Request $request = null */) public function getLogs(/* Request $request = null */)
{ {
if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "Request $ request = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "Request $ request = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED);
} }
if ($logger = $this->getDebugLogger()) { if ($logger = $this->getDebugLogger()) {
return $logger->getLogs(...\func_get_args()); return $logger->getLogs(...\func_get_args());
} }
return []; return [];
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* @param Request|null $request * @param Request|null $request
*/ */
public function countErrors(/* Request $request = null */) public function countErrors(/* Request $request = null */)
{ {
if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 1 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "Request $ request = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "Request $ request = null" argument in version 5.0, not defining it is deprecated since Sym fony 4.2.', __METHOD__), \E_USER_DEPRECATED);
} }
if ($logger = $this->getDebugLogger()) { if ($logger = $this->getDebugLogger()) {
return $logger->countErrors(...\func_get_args()); return $logger->countErrors(...\func_get_args());
} }
return 0; return 0;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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