I get error when update to latest version 4.4.15

I tried to install Dompdf library … but it force to update cakephp to latest version then I gt below error …

Deprecated: Use of BaseErrorHandler and subclasses are deprecated. Upgrade to the new ErrorTrap and ExceptionTrap subsystem. See 4.4 Migration Guide - 4.x C:\xampp\htdocs\ptpms\config\bootstrap.php, line: 129 You can disable all deprecation warnings by setting Error.errorLevel to E_ALL & ~E_USER_DEPRECATED. Adding config/bootstrap.php to Error.ignoredDeprecationPaths in your config/app.php config will mute deprecations from that file only. in C:\xampp\htdocs\ptpms\vendor\cakephp\cakephp\src\Core\functions.php on line 328

Fatal error: Cannot use ::class with dynamic class name in C:\xampp\htdocs\ptpms\vendor\laminas\laminas-diactoros\src\Uri.php on line 229

any help please?

thanks in advance

See I get error when update to latest version 4.4.15 · Issue #17205 · cakephp/cakephp · GitHub