phalcon / phalcon-devtools

Phalcon Developer Tools
https://docs.phalcon.io/latest/en/devtools
Other
1.33k stars 630 forks source link

v4 shows phalcon version instead of devtools version #1508

Closed Ultimater closed 3 years ago

Ultimater commented 3 years ago

I tried this with PHP 7.4.21, and Phalcon 4.1.0 in combination with: Devtools: v4.0.7, v4.1.0, and various others. Ubuntu 20

The cause appears to be phalcon-devtools/src/Version.php using the method _getVersion() instead of getVersion() which then inherits from Phalcon itself, and thus the devtools code confuses the two versions with each other.

Merely typing: phalcon or phalcon i will incorrectly show the phalcon version instead of the devtools version.

Ultimater commented 3 years ago

This is fixed in v4.0.8 and v4.1.1