Skip to content

Commit

Permalink
StdClass -> stdClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Ritter committed Mar 31, 2018
1 parent f705b59 commit 1b36a9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Database/Statement/StatementDecorator.php
Expand Up @@ -48,7 +48,7 @@ class StatementDecorator implements StatementInterface, Countable, IteratorAggre
*/
const FETCH_TYPE_ASSOC = 'assoc';
/**
* Used to designate that objects of \StdClass be returned in a result when calling fetch methods
* Used to designate that objects of \stdClass be returned in a result when calling fetch methods
*
* @var string
*/
Expand Down Expand Up @@ -216,7 +216,7 @@ public function fetch($type = 'num')
}

/**
* Returns the next row as a StdClass object
* Returns the next row as a stdClass object
*
* @return array|false Result array containing columns and values in an anonymous object or false if no results
*/
Expand Down Expand Up @@ -269,9 +269,9 @@ public function fetchAll($type = 'num')
}

/**
* Returns an array of \StdClass objects or false
* Returns an array of \stdClass objects or false
*
* @return \StdClass[]|false
* @return \stdClass[]|false
*/
public function fetchAllObjects()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Database/QueryTest.php
Expand Up @@ -4720,7 +4720,7 @@ public function testFetchAssoc()
}

/**
* Test that calling fetchObject returns a \StdClass object
* Test that calling fetchObject returns a \stdClass object
* @return void
*/
public function testFetchObject()
Expand All @@ -4737,7 +4737,7 @@ public function testFetchObject()
->limit(1)
->execute()
->fetchObject();
$this->assertInstanceOf(\StdClass::class, $results);
$this->assertInstanceOf(\stdClass::class, $results);
$this->assertObjectHasAttribute('id', $results);
$this->assertObjectHasAttribute('user_id', $results);
$this->assertObjectHasAttribute('is_active', $results);
Expand Down Expand Up @@ -4812,7 +4812,7 @@ public function testFetchAllObjects()
->from('profiles');
$statement = $query->execute();
$results = $statement->fetchAllObjects();
$this->assertInstanceOf(\StdClass::class, $results[0]);
$this->assertInstanceOf(\stdClass::class, $results[0]);
$this->assertEquals('2', $results[1]->id);
}
}

0 comments on commit 1b36a9a

Please sign in to comment.