Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of deprecated behaviours and methods in SCSS PHP filter #25

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

bennothommo
Copy link
Member

  • Adds additional argument for registerFunction method to define argument declarations (fixes Custom functions in ScssphpFilter are not exposing the full upstream API #11)
  • Uses compileString() method for compilation as opposed to deprecated compile() method
  • Uses addVariables() method for defining variables as opposed to deprecated setVariables() method
  • Parses variables provided in the setVariables() filter method and converts to Scss values, avoiding the deprecated behavior of allowing raw variables

This should also hopefully fix the PHPUnit tests.

- Adds additional argument for registerFunction method to define argument declarations (fixes #11)
- Uses compileString() method for compilation as opposed to deprecated compile() method
- Uses addVariables() method for defining variables as opposed to deprecated setVariables() method
- Parses variables provided in the setVariables() filter method and converts to Scss values, avoiding the deprecated behavior of allowing raw variables
@LukeTowers LukeTowers merged commit f5b7bed into master Dec 9, 2021
@LukeTowers LukeTowers deleted the fix/scssphp-deprecations branch December 9, 2021 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom functions in ScssphpFilter are not exposing the full upstream API
3 participants