1.1 The use statement with non-compound name
1.1.1 phenomenon
After debugging the program, it is found that running the following code will make the program run away:
require_ once __ DIR__ . ‘/ actions/’ . $refectClass . ‘.php’;
1.1.2 reasons
is debugged in PHPStorm. DIR__ Variable, found that it has always been Xdebug, so thought it was this problem, online search a lot of information, there is no solution
Later, I checked the error log and found the following error information:
2014-05-12 16:41:53: < E> [ php ]: The use statement with non-compound name 'CommonUtils' has no effect (D:\ProjectWork\SourceCode\Server\i2goods\protected\components\clientapi\actions\BookEditAction. php:9 )
Open the bookeditaction.php file and look at line 9 of the code
use CommonUtils
Looking for information on the Internet, we found that this use syntax error
1.1.3 solution
Consult the relevant developers, this code is garbage code, forget to delete, delete it
Similar Posts:
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- c# – the calling thread must be STA, because ma…
- [Solved] MySQL ERROR 1054 (42S22): Unknown column ‘i2goods.t_ebook_data.fbookid’ in ‘field list’
- The use of try… Catch in MATLAB
- Error reporting of require occurs during webpack packaging
- [Solved] MYSQL add foreign key error: Referencing column ‘xx’ and referenced column ‘xx’ in foreign key constraint ‘xxx’ are incompatible.
- InvalidSelectorError: Compound class names not permitted [How to Solve]
- [Solved] UnboundLocalError: local variable x referenced before assignment
- [Solved] UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x89 in position 0: invalid start byte
- The solution of JPS process information unavailable