- Affected version
- 2.3.9
I was recently updating a test site running on php 8.4.16, and some css pages started causing the following error:
It looks like the
This should be
Code:
Deprecated: Less_Functions::__construct(): Implicitly marking parameter $currentFileInfo as nullable is deprecated, the explicit nullable type must be used instead in .../src/vendor/oyejorge/less.php/lib/Less/Functions.php on line 12
It looks like the
oyejorge/less.php library requires some patching:
Code:
class Less_Functions {
public $env;
public $currentFileInfo;
function __construct( $env, array $currentFileInfo = null ) {
$this->env = $env;
$this->currentFileInfo = $currentFileInfo;
}
This should be
?array $currentFileInfo = null
Last edited: