}
/**
- * Constructor.
* @see ArrayObject::__construct
*
* @since 1.20
if ( !$this->hasValidType( $value ) ) {
throw new InvalidArgumentException(
'Can only add ' . $this->getObjectType() . ' implementing objects to '
- . get_called_class() . '.'
+ . static::class . '.'
);
}