Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3460 branch 'hotfix/stdClass-name'
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Jan 17, 2013
2 parents 28367e5 + 252467d commit bc4b326
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions library/Zend/Json/Decoder.php
Expand Up @@ -119,12 +119,12 @@ protected function __construct($source, $decodeType)
* - float
* - boolean
* - null
* - StdClass
* - stdClass
* - array
* - array of one or more of the above types
*
* By default, decoded objects will be returned as associative arrays; to
* return a StdClass object instead, pass {@link Zend_Json::TYPE_OBJECT} to
* return a stdClass object instead, pass {@link Zend_Json::TYPE_OBJECT} to
* the $objectDecodeType parameter.
*
* @static
Expand Down Expand Up @@ -174,7 +174,7 @@ protected function _decodeValue()
* a special attribute called __className which specifies a class
* name that should wrap the data contained within the encoded source.
*
* Decodes to either an array or StdClass object, based on the value of
* Decodes to either an array or stdClass object, based on the value of
* {@link $decodeType}. If invalid $decodeType present, returns as an
* array.
*
Expand Down Expand Up @@ -215,7 +215,7 @@ protected function _decodeObject()

switch ($this->decodeType) {
case Json::TYPE_OBJECT:
// Create new StdClass and populate with $members
// Create new stdClass and populate with $members
$result = new stdClass();
foreach ($members as $key => $value) {
if ($key === '') {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Json/Json.php
Expand Up @@ -23,7 +23,7 @@
class Json
{
/**
* How objects should be encoded -- arrays or as StdClass. TYPE_ARRAY is 1
* How objects should be encoded -- arrays or as stdClass. TYPE_ARRAY is 1
* so that it is a boolean true value, allowing it to be used with
* ext/json's functions.
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Barcode/Renderer/ImageTest.php
Expand Up @@ -49,7 +49,7 @@ public function testGoodImageResource()
public function testObjectImageResource()
{
$this->setExpectedException('\Zend\Barcode\Renderer\Exception\ExceptionInterface');
$imageResource = new \StdClass();
$imageResource = new \stdClass();
$this->renderer->setResource($imageResource);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Json/JsonTest.php
Expand Up @@ -250,7 +250,7 @@ public function testObjectAsObject()
$encoded = Json\Encoder::encode($value);
$decoded = Json\Decoder::decode($encoded, Json\Json::TYPE_OBJECT);
$this->assertTrue(is_object($decoded), 'Not decoded as an object');
$this->assertTrue($decoded instanceof \StdClass, 'Not a StdClass object');
$this->assertTrue($decoded instanceof \stdClass, 'Not a stdClass object');
$this->assertTrue(isset($decoded->one), 'Expected property not set');
$this->assertEquals($value->one, $decoded->one, 'Unexpected value');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Log/Writer/AbstractTest.php
Expand Up @@ -35,7 +35,7 @@ public function testAddFilter()
$this->_writer->addFilter(1);
$this->_writer->addFilter(new RegexFilter('/mess/'));
$this->setExpectedException('Zend\Log\Exception\InvalidArgumentException');
$this->_writer->addFilter(new \StdClass());
$this->_writer->addFilter(new \stdClass());
}

public function testAddMockFilterByName()
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/ModuleManager/ModuleEventTest.php
Expand Up @@ -47,7 +47,7 @@ public function testCanRetrieveModuleNameViaGetter()
public function testPassingNonStringToSetModuleNameRaisesException()
{
$this->setExpectedException('Zend\ModuleManager\Exception\InvalidArgumentException');
$this->event->setModuleName(new StdClass);
$this->event->setModuleName(new stdClass);
}

public function testSettingConfigListenerProxiesToParameters()
Expand Down
Expand Up @@ -164,7 +164,7 @@ public function testSerializeArrayDict()

public function testSerializeObject()
{
$value = new \StdClass();
$value = new \stdClass();
$value->test = 'test';
$value->test2 = 2;
$expected = "(dp0\r\n"
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Soap/TestAsset/commontypes.php
Expand Up @@ -84,7 +84,7 @@ function TestFunc7()
/**
* Return Object
*
* @return StdClass
* @return stdClass
*/
function TestFunc8()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Soap/_files/commontypes.php
Expand Up @@ -82,7 +82,7 @@ function Zend_Soap_AutoDiscover_TestFunc7()
/**
* Return Object
*
* @return StdClass
* @return stdClass
*/
function Zend_Soap_AutoDiscover_TestFunc8()
{
Expand Down

0 comments on commit bc4b326

Please sign in to comment.