PHP extended classes Recently, I discovered that Datetime::createFromImmutable is now returning a static type : it returns an object of the type that called the method. This is only useful when the class has been extended by another class. This means that the Datetime class is extended enough for PHP to acknowledge it and adapts […]
From PHP code to static analysis Static analysis is the review of the PHP code, without executing it. In a word, it means reading the code, and understanding it, just like developers do when they modify a piece of PHP. It is the same process, with different tools. Here is the path from PHP code […]