protected function ExceptionComparator::toArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/src/ExceptionComparator.php \SebastianBergmann\Comparator\ExceptionComparator::toArray()
Converts an object to an array containing all of its private, protected and public properties.
Parameters
object $object:
Return value
array
Overrides ObjectComparator::toArray
File
- vendor/
sebastian/ comparator/ src/ ExceptionComparator.php, line 37
Class
- ExceptionComparator
- Compares Exception instances for equality.
Namespace
SebastianBergmann\ComparatorCode
protected function toArray($object) {
$array = parent::toArray($object);
unset($array['file'], $array['line'], $array['trace'], $array['string'], $array['xdebug_message']);
return $array;
}