Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Exception/ErrorException.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
30 */ | 30 */ |
31 public function __construct($message = '', $code = 0, $severity = 1, $filename = null, $lineno = null, $previous = null) | 31 public function __construct($message = '', $code = 0, $severity = 1, $filename = null, $lineno = null, $previous = null) |
32 { | 32 { |
33 $this->rawMessage = $message; | 33 $this->rawMessage = $message; |
34 | 34 |
35 if (!empty($filename) && preg_match('{Psy[/\\\\]ExecutionLoop}', $filename)) { | 35 if (!empty($filename) && \preg_match('{Psy[/\\\\]ExecutionLoop}', $filename)) { |
36 $filename = ''; | 36 $filename = ''; |
37 } | 37 } |
38 | 38 |
39 switch ($severity) { | 39 switch ($severity) { |
40 case E_STRICT: | 40 case E_STRICT: |
65 default: | 65 default: |
66 $type = 'Error'; | 66 $type = 'Error'; |
67 break; | 67 break; |
68 } | 68 } |
69 | 69 |
70 $message = sprintf('PHP %s: %s%s on line %d', $type, $message, $filename ? ' in ' . $filename : '', $lineno); | 70 $message = \sprintf('PHP %s: %s%s on line %d', $type, $message, $filename ? ' in ' . $filename : '', $lineno); |
71 parent::__construct($message, $code, $severity, $filename, $lineno, $previous); | 71 parent::__construct($message, $code, $severity, $filename, $lineno, $previous); |
72 } | 72 } |
73 | 73 |
74 /** | 74 /** |
75 * Get the raw (unformatted) message for this error. | 75 * Get the raw (unformatted) message for this error. |