Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
3.5.17, 3.8.8, 3.9.6, 3.10.3, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE
-
MDL-71462-MOODLE_39_STABLE -
MDL-71462-MOODLE_311_STABLE -
MDL-71462-master -
- create .phpstorm.meta.php in moodle project
- run git status from the cli
- verifiy that the git repo is clean and there is nothing to commit or changed
Description
In PHPStorm IDE there is files .phpstorm.meta.php that help the IDE to figure out some project contexts for example moodle table prefix when there is in the code {table_name} it's automaticaly interpter it's as mdl_table_name and if you connect your database to the IDE it will verifiy your queries and autocompletes it if needed.
may be we can add this file as development file or at least put it in git ignore for the PHPStorm developer users to not commit it by mistake
.phpstorm.meta.php
<?php
|
namespace PHPSTORM_META {
|
override(
|
// Virtual function to indicate that all SQL |
// injections will have the following replacement rules. |
sql_injection_subst(),
|
map([
|
'{' => "mdl_", // all `{` in injected SQL strings will be replaced with a prefix |
'}' => '', // all `}` will be replaced with an empty string |
]));
|
}
|