In a PHP-project (IntelliJ+PHP-plugin) I am trying to use a class from an include path. The include path and its content are listed in the Exernal Library section and I have added it as described here.
IntelliJ itself tells me to include that class in the following form (header of my php class that tries to use the included class later):
When I hover over the path listed after "use", the correct location on my hard drive is shown (the include path). I can also Ctrl+click on the included class and it is opened as expected.
However, when I run the project, I always get a fatal error that that MStr class was not found:
Fatal error: Uncaught Error: Class 'php_libraries\common\MStr' not found in [...]\IdeaProjects\php_weather_models\src\php_libraries\models\WeatherModelData.php:266
thrown in [...]\php_weather_models\src\php_libraries\models\WeatherModelData.php on line 266
Yes, certainly is it not found in that location, because it is located in the include path. I have tried various things by now (require etc), but, nothing has worked so far.
As I am new to using PHP in IntelliJ, I am probably missing something important.