comparison vendor/symfony/http-kernel/DataCollector/ExceptionDataCollector.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
26 * {@inheritdoc} 26 * {@inheritdoc}
27 */ 27 */
28 public function collect(Request $request, Response $response, \Exception $exception = null) 28 public function collect(Request $request, Response $response, \Exception $exception = null)
29 { 29 {
30 if (null !== $exception) { 30 if (null !== $exception) {
31 $this->data = array( 31 $this->data = [
32 'exception' => FlattenException::create($exception), 32 'exception' => FlattenException::create($exception),
33 ); 33 ];
34 } 34 }
35 } 35 }
36 36
37 /** 37 /**
38 * {@inheritdoc} 38 * {@inheritdoc}
39 */ 39 */
40 public function reset() 40 public function reset()
41 { 41 {
42 $this->data = array(); 42 $this->data = [];
43 } 43 }
44 44
45 /** 45 /**
46 * Checks if the exception is not null. 46 * Checks if the exception is not null.
47 * 47 *