nette / tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
https://tracy.nette.org
Other
1.76k stars 218 forks source link

[2.5] Fix compatibility with PHP 8.1 #522

Closed jtojnar closed 2 years ago

jtojnar commented 2 years ago

Fixes a warning on PHP 8.1 (want to start using Tracy for selfoss, which still supports PHP 5.6).

dg commented 2 years ago

I think there will be many more incompatibilities. And it's not necessary to use exactly version 2.5, isn't?

jtojnar commented 2 years ago

2.6 is not compatible with PHP 5.6. But I encountered some more issues that are resolved in 2.9 so I will probably create a 2.9 fork and downgrade its PHP code to support 5.6.

dg commented 2 years ago

Composer will install the version that is appropriate for the PHP you are using.

jtojnar commented 2 years ago

Yes, that is why it installs 2.5.

dg commented 2 years ago

For PHP 5.6 it installs Tracy 2.5 For PHP 8.1 it will install Tracy 2.8

Why would Tracy 2.5 support PHP 8.1?

jtojnar commented 2 years ago

Because composer.lock can only contain a single version AFAIK.