Closed Orkuncakilkaya closed 2 months ago
There is one more thing that you need to fix.
Sealed
is not working actually. Maybe it was broken before, maybe stronger types highlighted the problem and finally broke it.
What you need to do:
sealed_results_example.php
.
1.1. getEnv
will not work, you'll need to add
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
1.2 you will get error PHP Fatal error: Uncaught TypeError: Fingerprint\ServerAPI\Model\EventResponse::getProducts(): Return value must be of type Fingerprint\ServerAPI\Model\ProductsResponse, array returned
new EventResponse($data)
) to the correct one (check how it done for API request) (I made it for python here)SerializationException
getModel
I made the changes based on your comments. Please resolve all previous unresolved comments if you think they are resolved @TheUnderScorer.