]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_WorksContract.php
Unneccessary sanity checks removed
[shipsimu.git] / application / ship-simu / main / class_WorksContract.php
index b776759bf41d3af5dac2cbfcafc163a3bd7e8778..b25c8ee4aa6e16abf4f301e16262b238c45003e2 100644 (file)
@@ -314,7 +314,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
                        } elseif (!is_object($item)) {
                                // Not an object! ;-(
                                throw new NoObjectException($item, self::EXCEPTION_IS_NO_OBJECT);
-                       } elseif (!method_exists($item, 'getPartInstance')) {
+                       } elseif (!$item instanceof BaseSimulator) {
                                // Does not have the required feature (method)
                                throw new MissingMethodException(array($item, 'getPartInstance'), self::EXCEPTION_MISSING_METHOD);
                        }