Menu

Optional $expected in putAttributes()

Help
2010-03-26
2013-04-29
  • Jordan Snodgrass

    Another issue with 0.7.0:

    The $expected param in putAttributes() and deleteAttributes() should be optional.  Otherwise you get a warning:

    Warning: Missing argument 4 for SimpleDB::putAttributes()

    To fix,

    public function putAttributes($domain, $item, $attributes, $expected) {
    
    public function deleteAttributes($domain, $item, $attributes = null, $expected) {
    

    Should be:

    public function putAttributes($domain, $item, $attributes, $expected = null) {
    
    public function deleteAttributes($domain, $item, $attributes = null, $expected = null) {
    
     
  • Dan Myers

    Dan Myers - 2010-03-26

    Updated in subversion :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.