LDAP sync_task failing after upgrade to 4.2.2

LDAP sync_task failing after upgrade to 4.2.2

by Dmitry Kharchuk -
Number of replies: 0
After updating, when I try to sync accounts, I get an error

Scheduled task failed: LDAP User Synchronization Task (auth_ldap\task\sync_task),Attempt to assign property "modified" on bool
Backtrace:
* line 50 of /auth/ldap/classes/task/sync_task.php: call to auth_plugin_ldap->sync_users()
* line 405 of /lib/classes/cron.php: call to auth_ldap\task\sync_task->execute()
* line 166 of /admin/cli/scheduled_task.php: call to core\cron::run_inner_scheduled_task()

php -v                                                                                                                                             
PHP 8.0.28 (cli) (built: Feb 14 2023 18:32:25) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.28, Copyright (c) Zend Technologies
with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

Has anyone encountered a similar problem?
Average of ratings: -