magento / magento-semver

Magento Semantic Versioning Checker. Join #svc in our Community Slack: https://opensource.magento.com/slack. Static tests that identify required module version changes based on code diff, and look for backward incompatible changes.
Other
32 stars 25 forks source link

Update Less Analyzer to be able to handle imports of files #75

Closed furan917 closed 4 months ago

furan917 commented 1 year ago

Related to https://github.com/magento/magento-semver/issues/73 - option 2, if you wish to see a more indepth writeup

The Less Analyzer class cannot handle Less files that import css as the object they convert into mean the $node->path->value is a Link_Tree_Quoted object and not a string castable value, so we add an additional check for if we are a CSS quoted file or if value is an object which contains another value and use that instead (In the off chance similar future issues may arise with new objects)