database icon indicating copy to clipboard operation
database copied to clipboard

Deprecation warning - PHP 8.1

Open carlosjac opened this issue 2 years ago • 8 comments

Opis database generates this warning

Deprecated: Opis\Database\Connection implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /app/modular/vendor/opis/database/src/Connection.php on line 24

https://www.php.net/manual/en/class.serializable.php stats that "As of PHP 8.1.0, a class which implements Serializable without also implementing __serialize() and __unserialize() will generate a deprecation warning."

carlosjac avatar Apr 29 '22 03:04 carlosjac

Hi. Did you fix?

falahidev avatar Aug 19 '22 12:08 falahidev

i have the same problem

elvispdosreis avatar Dec 27 '22 17:12 elvispdosreis

I encountered the same error, please let me know how to fix it.

CasperHK avatar Mar 16 '23 02:03 CasperHK

I made a fork of this project, and with changing src/Connection.php, everything is working fine. Yo could also write a patch for src/Connection.php.

ekomurz avatar Mar 25 '23 12:03 ekomurz

Fiz um fork desse projeto, e com a alteração de src/Connection.php, tudo está funcionando bem. Você também pode escrever um patch para src/Connection.php.

Play me please the link of your fork

elvispdosreis avatar Mar 27 '23 12:03 elvispdosreis

@elvispdosreis provide me a bitbucket user, and I can forward you the code/link to my fork.

ekomurz avatar Mar 27 '23 13:03 ekomurz

https://bitbucket.org/elvisdosreis/opis-database

Em seg., 27 de mar. de 2023 às 10:15, Wim De Nocker < @.***> escreveu:

@elvispdosreis https://github.com/elvispdosreis provide me a bitbucket user, and I can forward you the code/link to my fork.

— Reply to this email directly, view it on GitHub https://github.com/opis/database/issues/95#issuecomment-1485076775, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUPOJ47LE23DWFKG7UBHEDW6GHHFANCNFSM5UUQU3IA . You are receiving this because you were mentioned.Message ID: @.***>

elvispdosreis avatar Mar 27 '23 13:03 elvispdosreis

you should be able to fork bitbucket.org:ekomurz/database now

ekomurz avatar Mar 27 '23 13:03 ekomurz