Differential D25099 Diff 427 src/applications/metamta/exception/PhabricatorMetaMTAReceivedMailProcessingException.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/exception/PhabricatorMetaMTAReceivedMailProcessingException.php
<?php | <?php | ||||
final class PhabricatorMetaMTAReceivedMailProcessingException | final class PhabricatorMetaMTAReceivedMailProcessingException | ||||
extends Exception { | extends Exception { | ||||
private $statusCode; | private $statusCode; | ||||
public function getStatusCode() { | public function getStatusCode() { | ||||
return $this->statusCode; | return $this->statusCode; | ||||
} | } | ||||
public function __construct($status_code /* ... */) { | public function __construct($status_code /* ... */) { | ||||
$args = func_get_args(); | $args = func_get_args(); | ||||
$this->statusCode = $args[0]; | $this->statusCode = $args[0]; | ||||
$args = array_slice($args, 1); | $args = array_slice($args, 1); | ||||
call_user_func_array(array('parent', '__construct'), $args); | $parent = get_parent_class($this); | ||||
valerio.bozzolan: The above line means that if you do this somewhere:
```
new… | |||||
call_user_func_array(array($parent, '__construct'), $args); | |||||
Done Inline ActionsIn short using the string 'parent' is deprecated. It was replaced with get_parent_class($this) that at runtime gives the parent, and it's the exact replacement. valerio.bozzolan: In short using the string `'parent'` is deprecated.
It was replaced with `get_parent_class… | |||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
The above line means that if you do this somewhere:
The above lines do this:
That for my case is:
Note that get_parent_class($this) returns the word Exception.