celtic-project / Rating-PHP

Example LTI tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase\JWT\JWT as JWT because the name is already in use

drewbie24 opened this issue · comments

Having difficulty with making use of firebase and the jwt class from the php library having conflicting names. Particulary found in the FirebaseClient.php file

How do i resolve the issues of this?

As with any other namespace in PHP you can always refer to a class using a fully-qualified reference (e.g. \ceLTIc\LTI\Jwt\Jwt and \Firebase\JWT\JWT), or a partially qualified name in conjunction with a use statement, or use an as reference. See https://www.php.net/manual/en/language.namespaces.importing.php for more details.