Skip to content

Releases: phpstan/phpstan

1.11.2

24 May 13:23
0d5d429
Compare
Choose a tag to compare

Improvements 🔧

Function signature fixes 🤖

  • More concrete return types for some database functions (#3078), thanks @devnix!

Internals 🔍

1.11.1

15 May 08:02
e524358
Compare
Choose a tag to compare

Improvements 🔧

  • Support integer ranges in sprintf() constant result inference (#3075), thanks @staabm!

Bugfixes 🐛

Function signature fixes 🤖

1.11.0

13 May 06:05
666cb17
Compare
Choose a tag to compare

Read the article about PHPStan 1.11 on phpstan.org »

Major new features 🚀

  • Error identifiers
  • PHPStan Pro Reboot
    • A new migration wizard will effortlessly migrate all your @phpstan-ignore-line and @phpstan-ignore-next-line to the new @phpstan-ignore comment style with error identifiers. The old comment style is dangerous because it ignores all errors, current and future, on that line.
    • Revamped UI for much more comfortable viewing and browsing of reported errors
    • The new UI also lets you browse ignored errors, from ignoreErrors, from your baseline and also ignored locally in source code using comments
    • Streaming errors during launch: You don't have to wait for the analysis to complete, you can see errors as they come in during the analysis
    • Support for mapping file paths to the host filesystem when running in Docker or remotely
    • Try it out by running PHPStan with --pro CLI option
  • PHPDoc tags describing callable lifecycle: @param-immediately-invoked-callable, @param-later-invoked-callable
  • PHPDoc tag @param-closure-this to describe what $this is bound to in a passed closure
  • Two new config options around stricter offset checks in arrays (#3028), #7553, thanks @ttomdewit!

Bleeding edge 🔪

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Read more

1.10.67

16 Apr 07:27
16ddbe7
Compare
Choose a tag to compare

This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

  • More precise gc_status() signature for PHP8.3+ (#2996), thanks @staabm!
  • Add object shape for mysqli_result::fetch_fields (#3005), thanks @schlndh!

Internals 🔍

  • composer-dependency-analyser: update to 1.5.0 (support functions) (#3011), thanks @janedbal!

1.10.66

28 Mar 16:18
94779c9
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • Prevent unnecessary calls into reflection from JSON extensions (#2994), thanks @staabm!

1.10.65

23 Mar 10:34
3c657d0
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

1.10.64

21 Mar 10:11
fb9f270
Compare
Choose a tag to compare

Bleeding edge 🔪

  • Fail build when project config uses custom extensions outside of analysed paths
    • This will only occur after a run that uses already present and valid result cache

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
	- vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

1.10.63

18 Mar 16:55
ad12836
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • Cleanup AnalyserIntegrationTest->runAnalyse() (#2960), thanks @staabm!
  • ReflectionProvider::hasClass() narrows $className arg (#2976), thanks @staabm!

1.10.62

13 Mar 12:31
cd5c8a1
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

1.10.61

13 Mar 11:12
30049da
Compare
Choose a tag to compare

Improvements 🔧

Bugfixes 🐛

Internals 🔍