Internal: Add __serialize() and __unserialize() to AppKernel.php to improve support for PHP 8.1+

pull/5867/head
DamienLyon 11 months ago committed by GitHub
parent 6482a4741f
commit 8d76d00059
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      app/AppKernel.php

@ -12,6 +12,20 @@ class AppKernel extends Kernel
{
protected $rootDir;
/*
Update for PHP 8 support DamienR : AppKernel implements the Serializable interface, which is deprecated.
Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
*/
public function __serialize(): array
{
return [];
}
public function __unserialize(array $data): void
{
// Implement the logic to unserialize the object
}
public function registerBundles()
{
$bundles = array(

Loading…
Cancel
Save