web/ckfinder/core/connector/php/vendor/symfony/debug/ErrorHandler.php 1 location
|
@@ 265-274 (lines=10) @@
|
262 |
|
* |
263 |
|
* @throws \InvalidArgumentException |
264 |
|
*/ |
265 |
|
public function setExceptionHandler($handler) |
266 |
|
{ |
267 |
|
if (null !== $handler && !is_callable($handler)) { |
268 |
|
throw new \LogicException('The exception handler must be a valid PHP callable.'); |
269 |
|
} |
270 |
|
$prev = $this->exceptionHandler; |
271 |
|
$this->exceptionHandler = $handler; |
272 |
|
|
273 |
|
return $prev; |
274 |
|
} |
275 |
|
|
276 |
|
/** |
277 |
|
* Sets the PHP error levels that throw an exception when a PHP error occurs. |
web/ckfinder/core/connector/php/vendor/symfony/debug/ExceptionHandler.php 1 location
|
@@ 83-92 (lines=10) @@
|
80 |
|
* |
81 |
|
* @return callable|null The previous exception handler if any |
82 |
|
*/ |
83 |
|
public function setHandler($handler) |
84 |
|
{ |
85 |
|
if (null !== $handler && !is_callable($handler)) { |
86 |
|
throw new \LogicException('The exception handler must be a valid PHP callable.'); |
87 |
|
} |
88 |
|
$old = $this->handler; |
89 |
|
$this->handler = $handler; |
90 |
|
|
91 |
|
return $old; |
92 |
|
} |
93 |
|
|
94 |
|
/** |
95 |
|
* Sets the format for links to source files. |