add missing new keyword

This commit is contained in:
Nicolas Le Goff 2012-06-06 11:11:28 +02:00
commit 175502e9f7

View file

@ -33,7 +33,7 @@ class Dimension
public function __construct($width, $height)
{
if ($width <= 0 || $height <= 0) {
throw InvalidArgumentException('Width and height should be positive integer');
throw new InvalidArgumentException('Width and height should be positive integer');
}
$this->width = (int) $width;