You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use bernard with PHP 8.1, and it works, however there are some deprecation issues:
PHP Deprecated: Return type of Bernard\QueueFactory\PersistentFactory::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /webapps/vendor/bernard/bernard/src/Bernard/QueueFactory/PersistentFactory.php on line 68
Deprecated: Return type of Bernard\QueueFactory\PersistentFactory::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /webapps/vendor/bernard/bernard/src/Bernard/QueueFactory/PersistentFactory.php on line 68
PHP Deprecated: Return type of Bernard\Queue\PersistentQueue::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /webapps/vendor/bernard/bernard/src/Bernard/Queue/PersistentQueue.php on line 49
Deprecated: Return type of Bernard\Queue\PersistentQueue::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /webapps/vendor/bernard/bernard/src/Bernard/Queue/PersistentQueue.php on line 49
The text was updated successfully, but these errors were encountered:
I see the #[ReturnTypeWillChange] attribute on Bernard\QueueFactory\PersistentFactory::count and it seems to predate your issue? Are you using dev-master?
No, I was using official release as advised "to not depend on master at all".
This is the last alpha release, somewhat maintaining backwards compatibility. Major breaks are coming (mostly related to drivers). Please lock your dependencies or even better, do not depend on master at all.
Are there any breaking changes when switching to master branch from 0.13?
// edit:
I checked master branch and see that there are indeed breaking changes:
SQS and PHP Redis drivers are missing
FlatFileDriver relocated
So maybe it's worth considering to backport PHP 8.1 changes to last stable release?
I use bernard with PHP 8.1, and it works, however there are some deprecation issues:
The text was updated successfully, but these errors were encountered: