I’m trying to resolve “Field ‘stdout’ not found in …” and “Method … not found in array” warning using PHPDocumentor notations @property and @method on PhpStorm I was able to resolve the warning for stdout using: But now how do you resolve the Method ‘styles’ not found in array warning? (See screenshot above) I made up this code to demonstrate
Tag: phpstorm
PhpStorm Deployment menu missing on Mac OS X
I’m working in PhpStorm 2016.1, on Mac OS X. Colleagues who are on Windows have in Tools tab a Deployment menu. I’ve got nothing… Same in Preferences > Build, Execution & Deployment — all I’ve got is Debugger and Coverage. Answer Make sure that “Remote Hosts Access” plugin is enabled in Settings/Preferences | Plugins. That’s the only reason why “Deployment”
PhpStorm built-in server: Debug incoming requests
I am (locally) hosting a PHP script with PhpStorms built-in Server. Is there a way to debug an incoming HTTP request? I know that there is the “PHP HTTP Request” run-configuration, which allows you to perform a request and debug it, but somehow my problem only occurs when the requests is coming from an other application. I have no clue
PHPDoc – Function exits
Is there a way to document that a particular function calls exit()? The use case is that we have a function that is responsible for handling redirects (checks for already sent headers, set the response code, etc…) and then crucially calls exit(). Unfortunately, PHPStorm has no idea that this particular function terminates execution and thus suggests further warnings as if
Connection between phpstorm and xdebug
I configured phpstorm-xdebug and I was able to debug my code with breakpoints. These days I updated php (through brew) and xdebug and now I have php 5.5.26 with xdebug 2.3.3. When I try to debug tests …
How to tell phpDoc a string is a class name?
I often give objects static methods and properties that do not require the object to be initialized. For example: Now we subclass these objects and have some sort of controller that returns an object class string under certain circumstances where the object should not yet be initialized. For example: At times I might want to call the static function SomeObject::getSomeStaticString()
Shortcut key in PhpStorm to move to HTML end tag
Having a section of HTML tag: Suppose the caret is at the begin of the tag <div>, is there any key to move the caret to the closing </div>? There is a similar concept on CSS (doesn’t work on HTML) that works fine: in this case, Ctrl + ]/[ moves to the code block end/start. Here is the PhpStorm Default
How to debug in PHPStorm with built in webserver using Symfony command line tool
I was able to set up a php web app debugger in PHPStorm by simply tying it to my localhost at a specific port and everything works fine. However for that to work I need to first run this command on the shell: This works just fine if I set up breakpoints for browsing the site itself or testing api
Error running script.php: Port 9000 is busy
I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with: end of php.ini: Debug port in pStorm is also set on 9000. netstat -na outputs with: What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly.
How to remove the light bulb in PHPStorm?
Every time I try to select a line (for copying it, for example) a wild light bulb appears and blocks the mouse pointer. How can I remove this feature?