Skip to content

Commit 50d1c2d

Browse files
committed
Changed ChartIsAMethodException message
1 parent 2abed8a commit 50d1c2d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Exception/ChartIsAMethodException.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
*/
1010
class ChartIsAMethodException extends FactoryException
1111
{
12-
protected $message = 'The requested chart is not a seperate class, to draw'
13-
. ' it you need to call the "%s" method on the Image object'
14-
. ' after populating it with data!'
15-
. ' Check the documentation on library\'s website for details.'
16-
;
17-
1812
/**
1913
* @param string $method - the method which is supposed to be used
2014
* @param int $code
2115
* @param Exception $previous
2216
*/
2317
public function __construct($method, $code = null, Exception $previous = null)
2418
{
25-
parent::__construct(sprintf($this->message, $method), $code, $previous);
19+
$message = 'The requested chart is not a seperate class, to draw'
20+
. ' it you need to call the "%s" method on the Image object'
21+
. ' after populating it with data!'
22+
. ' Check the documentation on library\'s website for details.'
23+
;
24+
parent::__construct(sprintf($message, $method), $code, $previous);
2625
}
2726
}

0 commit comments

Comments
 (0)