Skip to content

Commit dc98a61

Browse files
Idrinthsebastianbergmann
authored andcommitted
Fixing issues found by php-cs-fixer
1 parent a3992cb commit dc98a61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Framework/Assert.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
use ReflectionClass;
6161
use ReflectionException;
6262
use ReflectionObject;
63-
use ReflectionProperty;
6463
use Traversable;
6564

6665
/**
@@ -2352,9 +2351,11 @@ public static function getObjectAttribute($object, string $attributeName)
23522351

23532352
try {
23542353
$reflector = new ReflectionObject($object);
2354+
23552355
do {
23562356
try {
23572357
$attribute = $reflector->getProperty($attributeName);
2358+
23582359
if (!$attribute || $attribute->isPublic()) {
23592360
return $object->$attributeName;
23602361
}

src/Framework/TestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ protected function runTest()
11481148
if (!$this->checkExceptionExpectations($exception)) {
11491149
throw $exception;
11501150
}
1151+
11511152
if ($this->expectedException !== null) {
11521153
$this->assertThat(
11531154
$exception,

0 commit comments

Comments
 (0)