Fatal error: Uncaught Error: Call to a member function formatAPIResult() on array in /var/www/www/app/controllers/Book.php:215 Stack trace: #0 /var/www/www/core/Application.php(81): App\Controller\Book->getDetailById(Array) #1 /var/www/www/index.php(196): App\Core\Application->run() #2 {main} thrown in /var/www/www/app/controllers/Book.php on line 215