3

PHP 8.3 support in Dotkernel Admin

 3 months ago
source link: https://www.dotkernel.com/dotkernel3/php-8-3-support-in-dotkernel-admin/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PHP 8.3 support in Dotkernel Admin

With the release of PHP 8.3, the DotKernel team has been working on updating the dependencies in our packages. Eventually, this allowed us to update our Applications as well, starting with the Admin, in release 4.3.1

There were some issues and backward incompatibilities that we will list below.

The full list of file changes is here.

  • Supports only PHP 8.2 and PHP 8.3
    • Removed support for PHP 8.1
    • Updated workflows – removed PHP 8.1
    • Commits #1 and #2
  • Added “laminas/laminas-http”: “^2.19.0” to composer.json require-dev (required for tests)
  • Updated src/Admin/src/Service/AdminService.php, function logAdminVisit
    • Note: No longer returns AddressNotFoundException
    • Commit#1
  • Removed parameter from local.php.dist configuration => orm_default (required by cache)
    • Commit #1
  • Updated dotkernel/dot-twigrenderer dependencies
    • Removed doctrine/doctrine-module because of conflict
    • Other packages that don’t get installed because of removing doctrine/doctrine-module – make sure to check if their functionality is used in your project
      • doctrine/doctrine-laminas-hydrator
      • laminas/laminas-cache-storage-adapter-filesystem
      • laminas/laminas-cache-storage-adapter-memory
      • laminas/laminas-mvc
      • laminas/laminas-paginator

Updating to PHP 8.3 has not been as streamlined as in previous updates, but the advantages of doing so outweigh the extra work on the custom code to remove potential incompatibilities.

The DotKernel team is focused on the cache that has been removed in the current version because doctrine/cache deleted their cache implementation classes. We are also updating our existing projects to PHP 8.3 and testing the changes on live environments to iron out any other issues.


Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program , Apidemia offers the expert technical support and services for: Modernise Legacy Applications Migrations from any version of Zend Framework to Laminas Mezzio and Laminas Consulting and Technical Audits


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK