Fixed False positive about multiple classes declared in the same file with phpstorm & extension_hint.php

Xon

Well-known member
Affected version
2.3.3
The generated extension_hint.php file is used to create developer aliases for IDE autocompletion. However if phpstorm analyzes this file it generates warnings/errors for multiple classes being defined in the same file.

This can be supressed by emitting the following at the top of the file:
Code:
<?php
...
/**
 * @noinspection PhpMultipleClassesDeclarationsInOneFile
 * @noinspection PhpIllegalPsrClassPathInspection
 */
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.5).

Change log:
Suppress PhpStorm warnings in class extension hint files
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom