Add pear modules, mail and net_smtp via composer (#93)

Add pear modules, mail and net_smtp via composer, remove php 5.6 build due to phpunit 6
This commit is contained in:
Thilina Hasantha
2018-01-08 23:13:43 +01:00
committed by GitHub
parent 359e3f8382
commit e7792e7d79
2349 changed files with 117270 additions and 83170 deletions

View File

@@ -10,6 +10,7 @@
namespace SebastianBergmann\ObjectEnumerator;
use SebastianBergmann\ObjectReflector\ObjectReflector;
use SebastianBergmann\RecursionContext\Context;
/**
@@ -48,10 +49,11 @@ class Enumerator
return $objects;
}
$array = $variable;
$processed->add($variable);
if (is_array($variable)) {
foreach ($variable as $element) {
foreach ($array as $element) {
if (!is_array($element) && !is_object($element)) {
continue;
}
@@ -63,13 +65,10 @@ class Enumerator
}
} else {
$objects[] = $variable;
$reflector = new \ReflectionObject($variable);
foreach ($reflector->getProperties() as $attribute) {
$attribute->setAccessible(true);
$value = $attribute->getValue($variable);
$reflector = new ObjectReflector;
foreach ($reflector->getAttributes($variable) as $value) {
if (!is_array($value) && !is_object($value)) {
continue;
}