To load the set of stubs that matches the set of loaded extensions for the currently configured CLI interpreter, click the Sync Extensions with Interpreter button. Use the checkboxes next to each item to enable/disable the corresponding stub. PHP stubs are added to IntelliJ IDEA's internal knowledge to enhance coding assistance for all the Standard PHP Library components as well as for common extensions. The area lists the available PHP stubs, which are normal, syntactically correct PHP files containing annotated function, method, and class signatures, constant definitions, and so on. Select a folder and click Exclude to exclude the contents of this folder from indexing. Include paths are used for holding libraries, that is, third-party code that is used for completion and reference resolution in some functions/methods that use file paths as arguments, for example, require() or include(). The area displays the list of configured include paths. Path mappings cannot be set for project files or folders that are marked as excluded. To remove a custom mapping, select it in the list and click. Type the paths manually or click and select the relevant files or folders in the dialog that opens. To add a custom mapping, click and specify the path in the project and the corresponding path on the remote runtime environment in the Local Path and Remote Path fields respectively. To provide the custom mappings, click next to the field and specify them in the Edit Project Path Mappings dialog that opens: When you configure a remote interpreter accessible through SFTP, Vagrant, Docker, or WSL this read-only field shows the path mappings retrieved from the corresponding deployment configuration, Vagrantfile, or Dockerfile. For more information, refer to Configure local PHP interpreters and Configure remote PHP interpreters.Ĭlick this button next to the CLI Interpreter list to create a new IntelliJ IDEA-wide PHP installation configuration in the CLI Interpreters dialog that opens.įor more information, refer to Configure local PHP interpreters and Configure remote PHP interpreters. The list contains all the currently configured local and remote PHP interpreters. In this list, choose the PHP interpreter to use in the current project by default. The list is inactive when the PHP language version is constrained in composer.json and settings synchronization with composer.json is enabled on the Composer page of the Settings dialog ( Control+Alt+S). You can also set the PHP language level directly from the status bar. When you open an existing project, IntelliJ IDEA analyzes it for the language features used and sets the appropriate language level automatically. However, if you attempt to use a code construct that is not supported by the specified language level, IntelliJ IDEA suggests a Switch to PHP quick-fix. Although the language version of each interpreter is detected automatically, you can still tell IntelliJ IDEA to provide you with coding assistance that corresponds to a different language level. There is no enforced correlation between the PHP version used in the project and the PHP language level configured in IntelliJ IDEA. For more information, refer to supported PHP versions. Each functionality scope is associated with the PHP version that supports this functionality. In this list, specify the PHP functionality scope to get coding assistance for.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |