llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
371 stars 21 forks source link

Typed properties PHP 7.4 feature not displayed by rule reporter #370

Closed llaville closed 6 months ago

llaville commented 6 months ago

Summary

When a source code that contains Typed properties PHP 7.4 feature, the Rule Reporter did not show it !

Example with this repo source code :

When running following command

bin/phpcompatinfo analyser:run --output rule tests/fixtures/sniffs/classes/typed_properties.php

Expected behaviour

Compatibility Analyser (by rule)
================================

Stats
-----

 PHP 74 :   1 rule(s) found

Rules
-----

         code : CA7401
  description : Typed properties are available since PHP 7.4.0
        sniff : TypedPropertySniff
      classes : (1)
 User

 // Produced by rule_reporter

Actual behaviour


Compatibility Analyser (by rule)
================================

Stats
-----

Rules
-----

 // Produced by rule_reporter