Skip to content
Permalink
Browse files

StdClass -> stdClass

  • Loading branch information...
T0mats0 committed Mar 31, 2018
1 parent f705b59 commit 1b36a9a3619b247a4d8ab557f262ad1f45c0ce70
Showing with 7 additions and 7 deletions.
  1. +4 −4 src/Database/Statement/StatementDecorator.php
  2. +3 −3 tests/TestCase/Database/QueryTest.php
@@ -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
*/
@@ -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
*/
@@ -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()
{
@@ -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()
@@ -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);
@@ -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.
You can’t perform that action at this time.