The method get_public_key returns openssl_pkey_get_details(JWK::parseKey($key)), but we encountered an error saying openssl_pkey_get_details() expects parameter 1 to be resource, object given.
After investigation, we discovered that firebase has changed the return type for JWK methods in January 2022.
The lti-1-3-php-library library doesn't require firebase/php-jwt but fproject/php-jwt that doesn't show these changes.
The problems start when the project using the lti-1-3-php-library library requires the firebase/php-jwt library as both of firebase/php-jwt and fproject/php-jwt libraries use the same namespace.
The method
get_public_keyreturnsopenssl_pkey_get_details(JWK::parseKey($key)), but we encountered an error sayingopenssl_pkey_get_details() expects parameter 1 to be resource, object given.After investigation, we discovered that firebase has changed the return type for
JWKmethods in January 2022.The lti-1-3-php-library library doesn't require
firebase/php-jwtbutfproject/php-jwtthat doesn't show these changes.The problems start when the project using the lti-1-3-php-library library requires the
firebase/php-jwtlibrary as both offirebase/php-jwtandfproject/php-jwtlibraries use the same namespace.