Browse Source

Type Hinting is only for objects and arrays.

Lacey Sanderson 6 years ago
parent
commit
36e3e6a67f
2 changed files with 4 additions and 4 deletions
  1. 2 2
      tripal/api/tripal.entities.api.inc
  2. 2 2
      tripal/includes/TripalBundleController.inc

+ 2 - 2
tripal/api/tripal.entities.api.inc

@@ -1733,8 +1733,8 @@ function hook_bundle_delete_orphans(TripalBundle $bundle, array $ids, TripalJob
  *  If $count == FALSE then an array of all entity IDs that are orphaned. If
  *  $count == TRUE then a single integer count value is returned.
  */
-function hook_bundle_find_orphans(TripalBundle $bundle, bool $count = FALSE, 
-  int $offset = 0, int $limit = 10) {
+function hook_bundle_find_orphans(TripalBundle $bundle, $count = FALSE,
+  $offset = 0, $limit = 10) {
   
     // See the tripal_chado_bundle_find_orphans() function for an example.  
   

+ 2 - 2
tripal/includes/TripalBundleController.inc

@@ -140,7 +140,7 @@ class TripalBundleController extends EntityAPIControllerExportable {
    *  If $count == FALSE then an array of all entity IDs that are orphaned. If
    *  $count == TRUE then a single integer count value is returned.
    */
-  public function findOrphans(int $id, bool $count = FALSE, int $offset = 0, int $limit = 0) {
+  public function findOrphans($id, $count = FALSE, $offset = 0, $limit = 0) {
     
     // Call the hook for modules to find their orphans
     $bundle = tripal_load_bundle_entity(['id' => $id]);
@@ -227,4 +227,4 @@ class TripalBundleController extends EntityAPIControllerExportable {
     return $num_deleted;
     
   }
-}
+}