Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/debug/Exception/ContextErrorException.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
13 | 13 |
14 /** | 14 /** |
15 * Error Exception with Variable Context. | 15 * Error Exception with Variable Context. |
16 * | 16 * |
17 * @author Christian Sciberras <uuf6429@gmail.com> | 17 * @author Christian Sciberras <uuf6429@gmail.com> |
18 * | |
19 * @deprecated since version 3.3. Instead, \ErrorException will be used directly in 4.0. | |
18 */ | 20 */ |
19 class ContextErrorException extends \ErrorException | 21 class ContextErrorException extends \ErrorException |
20 { | 22 { |
21 private $context = array(); | 23 private $context = array(); |
22 | 24 |
29 /** | 31 /** |
30 * @return array Array of variables that existed when the exception occurred | 32 * @return array Array of variables that existed when the exception occurred |
31 */ | 33 */ |
32 public function getContext() | 34 public function getContext() |
33 { | 35 { |
36 @trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED); | |
37 | |
34 return $this->context; | 38 return $this->context; |
35 } | 39 } |
36 } | 40 } |