Fetching related content for mail

I am facing error given below: It is a log
[Tue Jun 19 17:49:27.652318 2018] [php7:error] [pid 16983] [client 27.255.6.164:65152] PHP Fatal error: Uncaught TypeError: Argument 1 passed to CaseUpdatesHook::sendCaseUpdate1() must be an instance of AOP_Case_Updates, instance of aCase given, called in /var/www/html/include/utils/LogicHook.php on line 262 and defined in /var/www/html/modules/AOP_Case_Updates/CaseUpdatesHook.php:692\nStack trace:\n#0 /var/www/html/include/utils/LogicHook.php(262): CaseUpdatesHook->sendCaseUpdate1(Object(aCase), ‘after_save’, ‘’)\n#1 /var/www/html/include/utils/LogicHook.php(199): LogicHook->process_hooks(Array, ‘after_save’, ‘’)\n#2 /var/www/html/data/SugarBean.php(3120): LogicHook->call_custom_logic(‘Cases’, ‘after_save’, ‘’)\n#3 /var/www/html/data/SugarBean.php(2434): SugarBean->call_custom_logic(‘after_save’, ‘’)\n#4 /var/www/html/include/MVC/Controller/SugarController.php(683): SugarBean->save(false)\n#5 /var/www/html/include/MVC/Controller/SugarController.php(523): SugarController->action_save()\n#6 /var/www/html/include/MVC/Controller/SugarController.php(491): SugarController->do_action()\n#7 /var/www/html/include/MVC/Controller in /var/www/html/modules/AOP_Case_Updates/CaseUpdatesHook.php on line 692, referer: https://173.239.37.178/index.php?module=Cases&action=DetailView&record=f18abdb5-dc60-42b9-bd6e-5b295ba7a3ad

I want to know how to fetch data for adding info in to the message , subject.

That seems to be an error in your own code, in a logic hook, am I right?

You need to share your entire code: the hook definition, the hook file, and the exact locations where you are putting them.