amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.
Other
358 stars 63 forks source link

v3 not work #116

Closed xpader closed 2 years ago

xpader commented 2 years ago

amphp/mysql:v3 not work.

Fatal error: Declaration of Amp\Mysql\Link::beginTransaction(int $isolation = Amp\Mysql\Transaction::ISOLATION_COMMITTED): Amp\Mysql\Transaction must be compatible with Amp\Sql\Link::beginTransaction(Amp\Sql\TransactionIsolation $isolation = Amp\Sql\TransactionIsolation::COMMITTED): Amp\Sql\Transaction in /home/pader/apps/wind-framework-new/example/vendor/amphp/mysql/src/Link.php on line 14
trowski commented 2 years ago

The v3 branch has been updated and should work again.

Please be aware this is under active development and is not tagged, so there may be unexpected BC breaks.

xpader commented 2 years ago

I can't install amphp/mysql:3.x-dev with other components, because it fixed revolt/event-loop to dev-main as 0.2.3..

trowski commented 2 years ago

Oops, didn't mean to commit that line. Fixed. You should be able to install it now.