Static functions/variables in D8 code
I see code like this in modules:
return new static(
$container->get(‘entity.manager’)->getStorage(‘node’)
);
How is this node...
I see code like this in modules:
return new static(
$container->get(‘entity.manager’)->getStorage(‘node’)
);
How is this node...
The latest imagick release in pecl repositories is not yet compatible with 8.3.
The workaround is to compile it manually by...
PHP constants for setting error levels.
Calculate PHP error level.
The latest imagick release in pecl repositories is not yet compatible with 8.3.
The workaround is to compile it manually by cloning the repo and running make commands inside the docker container.
Here's how to do it in lando:
.lando.yml
services:
appserver:
build_as_root:
- /app/scripts/imagick.sh
scripts/imagick.sh
Imagemagick is a graphics manipulation library.
Imagick is the PHP extension.
The version of Debian used in DDEV does not have php8.3 libraries available in the package manager yet.
https://packages.debian.org/stable/php/php-imagick
However, there is a way to install the latest php libraries.