Skip to content

Deprecated stuff under PHP 8.1 #660

Open

Description

@ca-dsgn

I just updated my local environment to PHP 8.1 and checked that there are several issues:

Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /lessphp/lessc.inc.php on line 3608
Deprecated: Implicit conversion from float 19789.30078125 to int loses precision in /lessphp/lessc.inc.php on line 1672

Any plans on updating the existing code to support 8.1? Is there anybody who already forked the current code and updated it?

Activity

  1. ca-dsgn commented on Aug 23, 2022

    @ca-dsgn
    Author

    I forked the current code from https://github.com/mjphaynes/lessphp and updated it to run under PHP 8.1. You can install it via composer:

    composer require ca-dsgn/lessphp

    The code under packagist will also be auto-updated to support future releases of PHP.

  2. Klap-in commented on Sep 1, 2022

    @Klap-in

    This PR contains also a few others. The isset is not included there yet, maybe that PR can be updated too?
    #657

  3. labylo commented on May 31, 2023

    @labylo

    Juste replace
    if (preg_match($r, $this->buffer, $out, null, $this->count)) {
    by
    if (preg_match($r, $this->buffer, $out, PREG_UNMATCHED_AS_NULL, $this->count)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions