add missing new keyword
This commit is contained in:
parent
1de9390db3
commit
175502e9f7
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class Dimension
|
||||||
public function __construct($width, $height)
|
public function __construct($width, $height)
|
||||||
{
|
{
|
||||||
if ($width <= 0 || $height <= 0) {
|
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;
|
$this->width = (int) $width;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue