"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Bridge/Monolog/Processor/DebugProcessor.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).

DebugProcessor.php  (symfony-4.4.14):DebugProcessor.php  (symfony-4.4.15)
skipping to change at line 66 skipping to change at line 66
return $record; return $record;
} }
/** /**
* {@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 (1 <= \func_num_args() && null !== $request = func_get_arg(0)) { if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
return $this->records[spl_object_hash($request)] ?? []; return $this->records[spl_object_hash($request)] ?? [];
} }
if (0 === \count($this->records)) { if (0 === \count($this->records)) {
return []; return [];
} }
skipping to change at line 88 skipping to change at line 88
return array_merge(...array_values($this->records)); return array_merge(...array_values($this->records));
} }
/** /**
* {@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 (1 <= \func_num_args() && null !== $request = func_get_arg(0)) { if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
return $this->errorCount[spl_object_hash($request)] ?? 0; return $this->errorCount[spl_object_hash($request)] ?? 0;
} }
return array_sum($this->errorCount); return array_sum($this->errorCount);
} }
 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)