amazonwebservices/aws-sdk-for-php — pull request #40 by jswift (2012-09-19 23:10:15+00:00)
Title: Fixed E_NOTICE being raised by AmazonDynamoDB->attributes()

AmazonDynamoDB->attributes() caused an E_NOTICE "array to string conversion" when a value was an array. The following test case fails with SDK 1.5.14 and PHP 5.4.7 (obviously with E_NOTICE level reporting) and passes with this patch.

```php
/**
* Description of DynamoDBTestCase
*
* @author jarrodswift
*/
class DynamoDBTestCase extends PHPUnit_Framework_TestCase {
/**
* Test fails with error (E_NOTICE level)
*/
public function testAttributesWithSets() {
$dynamo = new AmazonDynamoDB();

$attributes = array(
'stringSet' => array('one', 'two', 'three',),
'numberSet' => array(1.0, 2.0, 3.0,),
);

$expected = array(
'stringSet' => array(
'SS' => array('one', 'two', 'three',),
),
'numberSet' => array(
'NS' => array(1.0, 2.0, 3.0,),
),
);

$this->assertEquals( $expected, $dynamo->attributes($attributes));
}
}
```