gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.3k stars 280 forks source link

Deprecation Warnings PHP 8.2 #907

Closed Zenger closed 1 year ago

Zenger commented 1 year ago
Deprecated: Creation of dynamic property RedBeanPHP\QueryWriter\MySQL::$sqltype_typeno is deprecated in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/QueryWriter/MySQL.php on line 169

Deprecated: Creation of dynamic property RedBeanPHP\QueryWriter\MySQL::$encoding is deprecated in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/QueryWriter/MySQL.php on line 176

Deprecated: Creation of dynamic property RedBeanPHP\Repository\Fluid::$oodb is deprecated in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Repository.php on line 329

Deprecated: Creation of dynamic property RedBeanPHP\AssociationManager::$toolbox is deprecated in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/AssociationManager.php on line 163
gabordemooij commented 1 year ago

Thanks for reporting.

Does this fix it?

https://github.com/gabordemooij/redbean/commit/b6ab15f85edacf98b40ff8e1a287fcaf56e024c2

Zenger commented 1 year ago

Seems to have fixed it but I've noticed this might not have been an issue to begin with, after upgrading to PHP 8.2 from PHP 8.2RC4 a bunch of other notices vanished as well. In any case thank you.

gabordemooij commented 1 year ago

No problem, you're welcome.

sgdot commented 1 year ago

Hi, problem is not fixed

PHP Deprecated: Creation of dynamic property RedBeanPHP\QueryWriter\MySQL::$svalue is deprecated in gabordemooij/redbean/RedBeanPHP/QueryWriter/MySQL.php on line 263