PhpDeprecationDetector

Analyzer of PHP code to search issues with deprecated functionality in newer interpreter versions.

BSD-3-CLAUSE License

Downloads
724K
Stars
364
Committers
13
PhpDeprecationDetector - 2.0.33: 8.2 fix and 8.0 rules change Latest Release

Published by wapmorgan over 1 year ago

  • Fixed for 8.2 usage @Axent96
  • Fixed 8.0 rule @NathanGibbs3
PhpDeprecationDetector - 2.0.32: fix for symfony/console 6.2 2

Published by wapmorgan over 1 year ago

another fix for symfony/console 6.2

PhpDeprecationDetector - 2.0.31: fix for symfony/console 6.2

Published by wapmorgan over 1 year ago

Fix for symfony/console 6.2 by @Axent96

PhpDeprecationDetector - 2.0.30: 8.1

Published by wapmorgan over 1 year ago

Merged #68, #70, #72 :

  • Adds PHP 8.1 and Junit Support by @jamessampford
  • add support for symfony/console ^6.0 by @Axent96
  • fixed Deprecated: strtoupper() by @0cool-f
PhpDeprecationDetector - 2.0.29: Disable implode check

Published by wapmorgan over 2 years ago

PhpDeprecationDetector - 2.0.28: Bump version

Published by wapmorgan over 2 years ago

PhpDeprecationDetector - 2.0.27: More checks for 8.0

Published by wapmorgan over 2 years ago

PhpDeprecationDetector - 2.0.26: 8.0 checks

Published by wapmorgan almost 3 years ago

PHP version bumped to 8.0

PhpDeprecationDetector - 2.0.25: Renamed to phpdd

Published by wapmorgan almost 4 years ago

PhpCodeFixer is renamed to PhpDeprecationDetector because this name defines better library's purpose.
phpcf is renamed to phpdd.

PhpDeprecationDetector - 2.0.24: New console and --after option

Published by wapmorgan over 4 years ago

  • Added compatability with symfony/console 5.0 version (#51).
  • Added --after (-a) option to start initial PHP version for checks (#52).
    Usage: phpcf -a 7.0 ... - checks only for >=7.0 issues.
PhpDeprecationDetector - 2.0.23: Smart excluding and bugfix for symfony 4.4

Published by wapmorgan almost 5 years ago

  • Fixed #47: An error occured when test is ok and symfony/console 4.4 is installed.
  • Fixed #48: Make -e more smarter: exclude by absolute path (starting from directory where scanning is started) and by basename of file / directory. (@fwolfsjaeger)
PhpDeprecationDetector - 2.0.22: Fixed 7.4 rules

Published by wapmorgan almost 5 years ago

  • Fixed rules for 7.4
  • Added test for 7.4
PhpDeprecationDetector - 2.0.21: Checks for php 7.4

Published by wapmorgan almost 5 years ago

Added checks for php 7.4

PhpDeprecationDetector - 2.0.20: Support for newer Symfony/console

Published by wapmorgan about 5 years ago

Changed requirement of Symfony/Console. Now it requires ^3.4 or ^4.0.

PhpDeprecationDetector - 2.0.19: Changes in report format and small analyzer updates

Published by wapmorgan over 5 years ago

  • Added option to print report in json to STDOUT instead of file: pass --output-json=-.
  • Changed format of console report:
    • Notes and suggestions injected into report table.
    • Added color highlighting to report.
  • Removed false-positive results for constans and functions with reserved identifiers as names (like int()).
  • Removed false-positive result for passing-by-reference to call_user_func_array().
  • Added messages about problems occured during analyzing.
PhpDeprecationDetector - 2.0.18: Fixed bugs and changed output

Published by wapmorgan over 5 years ago

  • Changed output to tables for each php-interpreter version.
  • Added ability to output result into json file (--output-json file option).
  • Fixed checking used functions with whitespace after function name (dl ('dll'))
  • Fixed #34: usage of PHP5.6-specific feature replaced to 5.4-compatible.
  • Fixed #36: fixed a lot of warnings on functions usage checker.
  • Fixed #38: invokeArgs() does not throw warnings with arguments passed by reference.
  • Fixed #39: skipped files added to result.
  • Fixed #40: checker for used identifiers is not case-insensitive.
  • Fixed #41: ini_get() does not throw warnings now.
PhpDeprecationDetector - 2.0.17: Fix errors

Published by wapmorgan over 5 years ago

Fixed bugs in checks.

PhpDeprecationDetector - 2.0.16: 7.3 support

Published by wapmorgan almost 6 years ago

  • Added checks for PHP 7.3.
PhpDeprecationDetector - 2.0.15: Engine improvements

Published by wapmorgan about 6 years ago

  • Added option --skip-checks to exclude some checks
  • Improved check for PHP4 constructors, fixed preg_replace check and little fixes (@fwolfsjaeger)
PhpDeprecationDetector - 2.0.14: Fix errors and update engine

Published by wapmorgan over 6 years ago

Analyzer:

  • Allow to configure parsable file extensions (--file-extensions).
  • Fixed false-positive alarm when a class has a static method with the same name as class (e.g. Widget::widget). It is mostly used as factory pattern.

Interface:

  • Hide errors when file does not exist.
  • Adjusted file path truncation in output.

Fixed:

  • Fixed getting terminal information on Windows, when printer or something similar is connected to computer.
Package Rankings
Top 1.12% on Packagist.org
Top 6.7% on Proxy.golang.org
Badges
Extracted from project README
Latest Stable Version Total Downloads License
Related Projects