RSS Feed/News False positive about multiple classes declared in the same file with phpstorm & extension_hint.php

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,813
Points
823

Reputation:

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:

Code:
<?php
...
/**
 * @noinspection PhpMultipleClassesDeclarationsInOneFile
 * @noinspection PhpIllegalPsrClassPathInspection
 */

Continue reading...
 
Status
Not open for further replies.
Top