spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Support for php 8.1? #298

Open nemanjaljuba opened 2 years ago

nemanjaljuba commented 2 years ago

After upgrade php version to 8.1 I am getting errors such as Return type of Spot\Query::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

mmethner commented 1 year ago

Hi nemanjaljuba. You may check this fork, where I added basic support for php8.1. Because this is just tested in one project, be careful to deploy it directly to production: https://github.com/mmethner/spot2