Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Use ReflectionObject instead of ReflectionClass.

  • Loading branch information...
commit 72563d8992dc72b8e600a9f98b34e9bc37cc1975 1 parent 10b059f
@sebastianbergmann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  PHPUnit/Framework/Assert.php
View
2  PHPUnit/Framework/Assert.php
@@ -979,7 +979,7 @@ public static function getAttribute($object, $attributeName)
self::assertObjectHasAttribute($attributeName, $object);
- $class = new ReflectionClass($object);
+ $class = new ReflectionObject($object);
$attribute = $class->getProperty($attributeName);
if ($attribute->isPublic()) {
Please sign in to comment.
Something went wrong with that request. Please try again.