Updated question : PhpStorm | WebMatrix (IISExpress) | Xdebug.remote_port | — Which Port(s) to put where? I’m running localhost web server on my Windows machine with WebMatrix and IISExpress. I’ve installed PHP and Xdebug in it and they both are working. I have a local WordPress install. I’m now trying to get PhpStorm to debug it using Xdebug. When I
Tag: phpstorm
Can you override interface methods with different, but “compatible”, signatures?
Consider the following PHP interfaces: I’m using PHPStorm, and when I do this, I get an error in the IDE that basically states the definition for add() in SuperCollection is not compatible with the definition in the interface it extends, Collection. In one way, I can see this being a problem, as the signature of the method does not match
PHPStorm: correct PHPDoc for a Collection of Objects?
I’m using the PHPStorm IDE, and run into trouble when I run the code inspection. I have a method which returns a collection of objects. The Collection itself is an object, which has its own methods, and implements the Traversable interface: If I document findByUser() to return a Collection, the code inspection understands the methods on this object, but doesn’t
How can I set the PHP version in PHPStorm?
Is it possible to set the PHP version value, say 4.0+ and have PHPStorm highlight functions that wouldn’t work with the oldest version? For example, for PHP4 this should highlight static function etc. I have a PHP installation on my PC but I don’t want to install an older PHP version for every small script I have to produce. Thanks
JetBrains WebIDE: PHP variable type hinting?
Is there a way to hint WebIDE that a variable has some type? I have to iterate an array of objects, and there’s no auto-completion available. This helps in ZendStudio: I know there’s a feature in JetBrains to declare an array of objects: But this works only with function’s return type. Answer /* @var ClassName $object */ is a non-valid