Skip to content

Commit

Permalink
Update InvalidParticleMethodException.php
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored Nov 13, 2018
1 parent a2c179b commit 462f4a5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ class InvalidParticleMethodException extends \Exception
*
* @param string $class_name Class name of the particle
* @param string $method Invalid method
* @param string $id ID of the particle
*/
public function __construct(string $class_name, string $method)
public function __construct(string $class_name, string $method, string $id = "unknown")
{
parent::__construct();
$this->message = sprintf(
"The particle %s was called with the invalid method: %s",
"The particle %s with ID %s was called with the invalid method: %s",
$class_name,
$id,
$method
);
}

}
}

0 comments on commit 462f4a5

Please sign in to comment.