All Versions
52
Latest Version
Avg Release Cycle
5 days
Latest Release
1273 days ago

Changelog History
Page 3

  • v0.12.39 Changes

    August 24, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    • ๐Ÿ‘Œ Support for prefixed PHPDoc @method tags (#302), thanks @yosatak!

    ๐Ÿฑ 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.

    ๐Ÿ›  Bugfixes ๐Ÿ›

  • v0.12.38 Changes

    August 19, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    ๐Ÿ›  Bugfixes ๐Ÿ›

    ๐Ÿฑ Function signature fixes ๐Ÿค–

    • ๐Ÿ›  Fix nullables in DOMXPath (#299), thanks @xPaw!
  • v0.12.37 Changes

    August 09, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    • โž• Added TeamCity error formatter (#295), thanks @MaximilianKresse!
    • โšก๏ธ Updated nikic/php-parser to 4.8.0 (phpstan/phpstan-src@65a74c6)
    • โšก๏ธ Updated LexerFactory to take advantage of the new Emulative lexer capabilities (phpstan/phpstan-src@71013bc) - some of the new syntax from PHP 7.3, 7.4, and 8.0 will now be marked as parse error on lower PHP versions

    ๐Ÿ›  Bugfixes ๐Ÿ›

  • v0.12.36 Changes

    August 05, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    • Introduced NodeConnectingVisitor to be able to look around the current node in rules (phpstan/phpstan-src@e72ef39)
    • โž• Add support for @phpstan-throws (#292), thanks @VincentLanglet!
    • Generics: disallow variance definition other than in class or interface (#278), thanks @hrach!

    ๐Ÿ›  Bugfixes ๐Ÿ›

  • v0.12.35 Changes

    August 04, 2020

    ๐Ÿ›  Bugfixes ๐Ÿ›

    ๐Ÿฑ Function signature fixes ๐Ÿค–

    • Correct return types for odbc_connect() and odbc_prepare() (#289), thanks @duncan3dc!
  • v0.12.34 Changes

    July 30, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    ๐Ÿ›  Bugfixes ๐Ÿ›

    ๐Ÿฑ Function signature fixes ๐Ÿค–

    • PDO::exec could also return false (#281), thanks @Slamdunk!
    • ๐Ÿ‘ Allowing null as limit for mb_strcut (#284), thanks @balazscsaba2006!
    • proc_get_status return type: use array shape according to doc; can also return false (#288), thanks @Slamdunk!
  • v0.12.33 Changes

    July 19, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    • ๐ŸŽ‰ Initial PHP 8 support!
    • Set different PHP version than your runtime
      • If you set different phpVersion parameter in your phpstan.neon, you can for example tell PHPStan to analyse source code like it's written for PHP 7.4 even if you're running PHP 8. The phpVersion config parameter is in PHP_VERSION_ID format - for PHP 7.4, use 70400.
      • You can also set a newer PHP version. So you can run PHPStan on 7.4, but already test compatibility with PHP 8 by setting phpVersion to 80000.
    • Check uninitialized typed properties that aren't set in the constructor (phpstan/phpstan-src@a1eb1f5), #2984
      • Off by default, needs checkUninitializedProperties: true.
    • ๐Ÿ‘‰ Show error on unescaped () in ignoreErrors (phpstan/phpstan-src@8479d40), #3602

    ๐Ÿฑ 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.

    ๐Ÿ›  Bugfixes ๐Ÿ›

    • ๐Ÿ—„ Skip not deprecated methods (#267), thanks @malarzm!
    • Type aliases cannot be used internally because they might clash with an existing class name (phpstan/phpstan-src@4d08280), #3569
    • ๐Ÿ›  Fix covariant type check when template has bound (#272), thanks @hrach!

    ๐Ÿฑ Function signature fixes ๐Ÿค–

  • v0.12.32 Changes

    July 01, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    • 0๏ธโƒฃ Make GithubErrorFormatter the default when running in GitHub Actions (phpstan/phpstan-src@6fd85e3)
      • If you're currently running PHPStan with --error-format checkstyle | cs2pr, you can omit this part from your build script!
      • You can override this behaviour by running with --error-format table.
    • Error formatter github for GitHub Actions (#261), thanks @Quetzacoalt91!

    ๐Ÿฑ 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.

    ๐Ÿ›  Bugfixes ๐Ÿ›

  • v0.12.31 Changes

    June 24, 2020

    ๐Ÿ›  Bugfixes ๐Ÿ›

    ๐Ÿฑ Function signature fixes ๐Ÿค–

    • ZipArchive::open() returns true on success, int (error code) on failure (#253), thanks @dktapps!
    • mysqli_stmt_fetch() and mysqli_stmt::fetch() can return NULL (#255), thanks @morozov!
    • openssl_pkey_export() allows null for the passphrase (#256), thanks @ConradSollitt!
    • Fix enchant_broker_list_dicts() return type (#257), #3530, thanks @villfa!
    • correct return value for PHP internal functions on failure (#258), thanks @peter-gribanov!
    • ๐Ÿ›  Fix return type & callback type hints for Redis::subscribe() (#259), thanks @hollodotme!
  • v0.12.30 Changes

    June 21, 2020

    ๐Ÿ‘Œ Improvements ๐Ÿ”ง

    ๐Ÿ›  Bugfixes ๐Ÿ›

    ๐Ÿฑ Function signature fixes ๐Ÿค–

    • โšก๏ธ Update jetbrains/phpstorm-stubs (solves #3492, #3482, #3480)
    • dbase-ext: DB-handle changed from int to resource (#246), thanks @swen100!
    • dbase_open and dbase_create can also return false (#246), thanks @swen100!
    • functionMap: narrow possible return values of openssl_verify() (#250), thanks @dktapps!
    • Loosen the requirements for the $function parameter of the register_shutdown_function function (#240), thanks @ste93cry!