@@ -51,7 +51,7 @@ class ByPropertyIdArray extends ArrayObject {
5151 /**
5252 * @see ArrayObject::__construct
5353 *
54- * @param array|object $input
54+ * @param array|object|null $input
5555 */
5656 public function __construct ( $ input = null ) {
5757 parent ::__construct ( (array )$ input );
@@ -121,7 +121,7 @@ public function getByPropertyId( PropertyId $propertyId ) {
121121 $ this ->assertIndexIsBuild ();
122122
123123 if ( !( array_key_exists ( $ propertyId ->getSerialization (), $ this ->byId ) ) ) {
124- throw new OutOfBoundsException ( ' Object with propertyId " ' . $ propertyId-> getSerialization () . ' " not found ' );
124+ throw new OutOfBoundsException ( " Object with propertyId \" $ propertyId\ " not found " );
125125 }
126126
127127 return $ this ->byId [$ propertyId ->getSerialization ()];
@@ -407,7 +407,7 @@ public function moveObjectToIndex( $object, $toIndex ) {
407407 * @since 0.5
408408 *
409409 * @param object $object
410- * @param int $index Absolute index where to place the new object.
410+ * @param int|null $index Absolute index where to place the new object.
411411 *
412412 * @throws RuntimeException
413413 */
@@ -441,7 +441,7 @@ public function addObjectAtIndex( $object, $index = null ) {
441441 * Adds an object to an existing property group at the specified absolute index.
442442 *
443443 * @param object $object
444- * @param int $index
444+ * @param int|null $index
445445 *
446446 * @throws OutOfBoundsException
447447 */
0 commit comments