X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fexceptions%2Fclass_ToMuchEmployeesException.php;h=ca07ecf051bac7378ae4a14128517ebef9cecfa2;hb=abb8bf6be9f5238f8a4552707bcb190f0dbf0b7a;hp=13b1ce1cddf4885aed0c7916accbf34df7b7d13f;hpb=55b327a3f5f2fe1d244532e07be7444e94b2a768;p=shipsimu.git diff --git a/application/ship-simu/exceptions/class_ToMuchEmployeesException.php b/application/ship-simu/exceptions/class_ToMuchEmployeesException.php index 13b1ce1..ca07ecf 100644 --- a/application/ship-simu/exceptions/class_ToMuchEmployeesException.php +++ b/application/ship-simu/exceptions/class_ToMuchEmployeesException.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -22,10 +22,7 @@ * along with this program. If not, see . */ class ToMuchEmployeesException extends FrameworkException { - public function __construct ($amountArray, $code) { - // Cast the array - $amountArray = (array) $amountArray; - + public function __construct (array $amountArray, $code) { // Add a message around the missing class $message = sprintf("%d Leute nicht einstellbar, da nur %d arbeitslos sind!", $amountArray[0],