Following things are changed: (in order of class names)
[shipsimu.git] / application / ship-simu / exceptions / class_ToMuchEmployeesException.php
index 69e76c836b59d4c23260fb58a300c05d42f133ad..ca07ecf051bac7378ae4a14128517ebef9cecfa2 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 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("<u>%d</u> Leute nicht einstellbar, da nur <u>%d</u> arbeitslos sind!",
                        $amountArray[0],