Skip to content

get/setIndent() does not exists on PHP 8.x  #42

@Sweetchuck

Description

@Sweetchuck

The sass PHP extension can be compiled from source with PHP 8.x (8.0.10), but the \Sass::getIndent() and \Sass::setIndent() methods aren't exist.

Maybe this one is the relevant output:

src/ast_values.cpp: In member function ‘virtual size_t Sass::Number::hash() const’:
src/ast_values.cpp:431:23: warning: loop variable ‘numerator’ creates a copy from type ‘const std::__cxx11::basic_string<char>’ [-Wrange-loop-construct]
  431 |       for (const auto numerator : numerators)
      |                       ^~~~~~~~~
src/ast_values.cpp:431:23: note: use reference type to prevent copying
  431 |       for (const auto numerator : numerators)
      |                       ^~~~~~~~~
      |                       &
src/ast_values.cpp:433:23: warning: loop variable ‘denominator’ creates a copy from type ‘const std::__cxx11::basic_string<char>’ [-Wrange-loop-construct]
  433 |       for (const auto denominator : denominators)
      |                       ^~~~~~~~~~~
src/ast_values.cpp:433:23: note: use reference type to prevent copying
  433 |       for (const auto denominator : denominators)

PHP 7.x (7.4 and 7.3) works fine.
LIBSASS_VERSION="3.6.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions