PHPStan

@phpstan@phpc.social
879 Followers
1 Following
639 Posts
Find bugs in your code without writing tests! Created by @OndrejMirtes
Websitehttps://phpstan.org/
GitHubhttps://github.com/phpstan

🥳 PHP 8.5 Released!

In this new release, we have:

🌐 URI Extension
▶️ Pipe Operator
📑 Clone With
⚠️ A New #[\NoDiscard] Attribute
🆕 Closures and First-Class Callables in Constant Expressions
🌀 Persistent cURL Share Handles

👓 Read all about it on: https://www.php.net/releases/8.5/

🔗 https://php.net/ChangeLog-8#8.5.0
📦 https://php.net/downloads

#PHP #PHP85 #Release

PHP: PHP 8.5 Release Announcement

PHP 8.5 is a major update of the PHP language, with new features including the URI Extension, Pipe Operator, and support for modifying properties while cloning.

I just put togehter a brief article which describes everthing new and noteworthy we shipped with the recent #phpstan #phpunit 1st party integration package

https://staabm.github.io/2025/11/15/phpstan-validates-phpunit-data-provider.html

New and noteworthy: PHPStan and PHPUnit integration

In this article we will have a brief look into the latest update to phpstan/phpstan-phpunit 2.0.8.

My developer experience
And thanks to the awesome work by @markusstaab, phpstan-phpunit now typechecks data providers as if they were traditional method calls:
PHPStan 2.1.32, still hot out of the oven, brings full support for the remaining PHP 8.5 features 🚀
Release 2.1.32 · phpstan/phpstan

Improvements 🔧 [PHP 8.5] Pipe operator support (phpstan/phpstan-src@e9df52e) [PHP 8.5] Report deprecated casts (phpstan/phpstan-src@d0a77d1) [PHP 8.5] Report deprecated backtick operator (phpstan/...

GitHub
PHPStan 2.0 along with a PHPStan elephpant was released exactly a year ago! How the time flies...
The future of PHPStan's analysis engine is about generators, coroutines and Fibers. This is not your grandpa's PHP:

Still busy over here adding support for PHP 8.5 to PHPStan. This year there are many new features and changes for the better.

Like Closure::getCurrent() 👇

In the near future #phpstan will error about your invalid #phpunit dataproviders data 🥰