-------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2019-f48876515c 2019-05-31 13:58:31.502603 --------------------------------------------------------------------------------
Name : phan Product : Fedora 29 Version : 2.0.0 Release : 1.fc29 URL : https://github.com/phan/phan Summary : A static analyzer for PHP Description : Phan is a static analyzer that looks for common issues and will verify type compatibility on various operations when type information is available or can be deduced. Phan does not make any serious attempt to understand flow control and narrow types based on conditionals.
-------------------------------------------------------------------------------- Update Information:
20 May 2019, **Phan 2.0.0** **New features (Analysis):** + Add early support for PHP 7.4's typed properties. (#2314) (This is incomplete, and does not support inheritance, assignment, impossible conditions, etc.) + Change warnings about undeclared `$this` into a critical `PhanUndeclaredThis` issue. (#2751) + Fix the check for `PhanUnusedVariableGlobal` (#2768) + Start work on supporting analyzing PHP 7.4's unpacking inside arrays. (e.g. `[1, 2, ...$arr1, 5]`) (#2779) NOTE: This does not yet check all types of errors, some code is unmigrated, and the polyfill does not yet support this. + Improve the check for invalid array unpacking in function calls with iterable/Traversable parameters. (#2779) **Plugins:** + Improve help messages for `internal/dump_fallback_ast.php` (this tool may be of use when developing plugins) **Bug fixes:** + Work around issues parsing binary operators in PHP 7.4-dev. Note that the latest version of php-ast (currently 1.0.2-dev) should be installed if you are testing Phan with PHP 7.4-dev. ---- 13 May 2019, **Phan 2.0.0-RC2** **New features (Analysis):** + Support analysis of PHP 7.4's short arrow function syntax (`fn ($arg) => expr`) (#2714) (requires php- ast 1.0.2dev or newer) Note that the polyfill does not yet support this syntax. + Infer the return types of PHP 7.4's magic methods `__serialize()` and `__unserialize()`. (#2755) Improve analysis of return types of other magic methods such as `__sleep()`. + Support more of PHP 7.4's function signatures (e.g. `WeakReference`) (#2756) + Improve detection of unused variables inside of loops/branches. **Plugins:** + Detect some new php 7.3 functions (`array_key_first`, etc.) in `UseReturnValuePlugin`. + Don't emit a `PhanNativePHPSyntaxCheckPlugin` error in `InvokePHPNativeSyntaxCheckPlugin` due to a shebang before `declare(strict_types=1)` + Fix edge cases running `PhanNativePHPSyntaxCheckPlugin` on Windows (in language server/daemon mode) **Bug fixes:** + Analyze the remaining expressions in a statement after emitting `PhanTraitParentReference` (#2750) + Don't emit `PhanUndeclaredVariable` within a closure if a `use` variable was undefined outside of it. (#2716) ---- 09 May 2019, **Phan 2.0.0-RC1** **New features (CLI, Configs):** + Enable language server features by default. (#2358) `--language-server-disable-go-to-definition`, `--language-server-disable-hover`, and `--language-server-disable-completion` can be used to disable those features. **Backwards Incompatible Changes:** + Drop support for running Phan with PHP 7.0. (PHP 7.0 reached its end of life in December 2018) Analyzing codebases with `--target-php-version 7.0` continues to be supported. + Require php-ast 1.0.1 or newer (or the absence of php-ast with `--allow-polyfill- parser`) Phan switched from using [AST version 50 to version 70](https://github.com/nikic/php-ast#ast-versioning). **Plugins:** + Change `PluginV2` to `PluginV3` `PluginV2` and its capabilities will continue to work to make migrating to Phan 2.x easier, but `PluginV2` is deprecated and will be removed in Phan 3. `PluginV3` has the same APIs and capabilities as PluginV2, but uses PHP 7.1 signatures (`void`, `?MyClass`, etc.) + Third party plugins may need to be upgraded to support changes in AST version 70, e.g. the new node kinds `AST_PROP_GROUP` and `AST_CLASS_NAME` + Add `PHPDocToRealTypesPlugin` to suggest real types to replace (or use alongside) phpdoc return types. This does not check that the phpdoc types are correct. `--automatic-fix` can be used to automate making these changes for issues that are not suppressed. + Add `PHPDocRedundantPlugin` to detect functions/methods/closures where the doc comment just repeats the types in the signature. (or when other parts don't just repeat information, but the `@return void` at the end is redundant) + Add a `BeforeAnalyzePhaseCapability`. Unlike `BeforeAnalyzeCapability`, this will run after methods are analyzed, not before. -------------------------------------------------------------------------------- ChangeLog:
* Mon May 20 2019 Remi Collet remi@remirepo.net - 2.0.0-1 - update to 2.0.0 - raise dependency on PHP 7.1.0 - raise dependency on ast 1.0.1 - switch to phpunit7 * Fri May 10 2019 Remi Collet remi@remirepo.net - 1.3.4-1 - update to 1.3.4 * Mon Apr 29 2019 Remi Collet remi@remirepo.net - 1.3.2-1 - update to 1.3.2 * Tue Apr 23 2019 Remi Collet remi@remirepo.net - 1.3.1-1 - update to 1.3.1 * Mon Apr 8 2019 Remi Collet remi@remirepo.net - 1.2.8-1 - update to 1.2.8 * Sat Mar 23 2019 Remi Collet remi@remirepo.net - 1.2.7-1 - update to 1.2.7 - raise dependency on microsoft/tolerant-php-parser 0.0.17 * Sun Mar 10 2019 Remi Collet remi@remirepo.net - 1.2.6-1 - update to 1.2.6 * Wed Feb 27 2019 Remi Collet remi@remirepo.net - 1.2.5-1 - update to 1.2.5 - add dependecy on mbstring - add weak dependecy on igbinary * Tue Feb 19 2019 Remi Collet remi@remirepo.net - 1.2.4-1 - update to 1.2.4 - raise dependency on composer/xdebug-handler 1.3.2 * Mon Feb 11 2019 Remi Collet remi@remirepo.net - 1.2.3-1 - update to 1.2.3 * Mon Feb 4 2019 Remi Collet remi@remirepo.net - 1.2.2-1 - update to 1.2.2 * Sat Jan 19 2019 Remi Collet remi@remirepo.net - 1.2.1-1 - update to 1.2.1 - raise dependency on microsoft/tolerant-php-parser 0.0.16 * Sun Jan 6 2019 Remi Collet remi@remirepo.net - 1.2.0-1 - update to 1.2.0 * Mon Dec 31 2018 Remi Collet remi@remirepo.net - 1.1.10-1 - update to 1.1.10 * Sun Dec 16 2018 Remi Collet remi@remirepo.net - 1.1.8-1 - update to 1.1.8 * Sun Dec 9 2018 Remi Collet remi@remirepo.net - 1.1.7-1 - update to 1.1.7 * Fri Nov 30 2018 Remi Collet remi@remirepo.net - 1.1.5-1 - update to 1.1.5 * Wed Nov 28 2018 Remi Collet remi@remirepo.net - 1.1.4-1 - update to 1.1.4 * Wed Nov 21 2018 Remi Collet remi@remirepo.net - 1.1.3-1 - update to 1.1.3 * Tue Nov 6 2018 Remi Collet remi@remirepo.net - 1.1.2-1 - update to 1.1.2 * Tue Oct 23 2018 Remi Collet remi@remirepo.net - 1.1.1-1 - update to 1.1.1 * Tue Oct 9 2018 Remi Collet remi@remirepo.net - 1.1.0-1 - update to 1.1.0 * Wed Oct 3 2018 Remi Collet remi@remirepo.net - 1.0.7-1 - update to 1.0.7 - raise dependency on microsoft/tolerant-php-parser 0.0.13 - php-ast is optional * Wed Sep 26 2018 Remi Collet remi@remirepo.net - 1.0.6-1 - update to 1.0.6 - sources from git snapshot * Sat Sep 22 2018 Remi Collet remi@remirepo.net - 1.0.5-1 - update to 1.0.5 - open https://github.com/phan/phan/issues/1986 keep the tests - keep ast mandatory despite it is now optional --------------------------------------------------------------------------------
This update can be installed with the "dnf" update program. Use su -c 'dnf upgrade --advisory FEDORA-2019-f48876515c' at the command line. For more information, refer to the dnf documentation available at http://dnf.readthedocs.io/en/latest/command_ref.html#upgrade-command-label
All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/keys --------------------------------------------------------------------------------
package-announce@lists.fedoraproject.org