Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

NoColor v1.1.0: Initial PHP 8 support

Latest
Compare
Choose a tag to compare
@i582 i582 released this 20 Aug 16:26
bc3c4de

Due to the addition of PHP 8 support, now by default all projects will be parsed as PHP 8. If your project uses the real cast, the is_real function, comments like #[... or match and enum keywords, then use the --php7 flag to make the analyzer parse the project like PHP 7.4.

Previously, in order to take into account the vendor folder for better type inference, it was necessary to use the --index-only-files flag, now the vendor folder is added to this flag by default if it exists, so you no longer need to explicitly pass it.

Added

  • #19: Added initial support of PHP 8
  • #19: Added flag --php7 for analyze as PHP 7

Changed

  • #19: Moved to new version of NoVerify:
    • PHP 8 and 8.1 initial support
    • Improvements in type inference (instanceof, callable in PHPDoc, array{})
    • Help now has grouping for flags
    • vendor folder is now added by default if it exists