videlalvaro/php-amqplib — pull request #52 by arnaud-lb (2012-12-04 14:54:54+00:00)
Title: Fixed AMQPWriter::write_table() unexpectedly defaulting to array type

This fixes a typo in AMQPWriter::write_table() causing the method to default to the array type:

https://github.com/arnaud-lb/php-amqplib/blob/f24260aff0551abd928c397407f3c1a728595788/PhpAmqpLib/Wire/AMQPWriter.php#L261

The PR replaces this unexpected assignment by an equality test; and throws an exception if the type is not handled.