{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/scssphp/issues/322","labels_url":"https://api.github.com/repos/leafo/scssphp/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/leafo/scssphp/issues/322/comments","events_url":"https://api.github.com/repos/leafo/scssphp/issues/322/events","html_url":"https://github.com/leafo/scssphp/issues/322","id":105115326,"number":322,"title":"@extend with :before causes exception","user":{"login":"Zxurian","id":573371,"avatar_url":"https://avatars.githubusercontent.com/u/573371?v=3","gravatar_id":"","url":"https://api.github.com/users/Zxurian","html_url":"https://github.com/Zxurian","followers_url":"https://api.github.com/users/Zxurian/followers","following_url":"https://api.github.com/users/Zxurian/following{/other_user}","gists_url":"https://api.github.com/users/Zxurian/gists{/gist_id}","starred_url":"https://api.github.com/users/Zxurian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zxurian/subscriptions","organizations_url":"https://api.github.com/users/Zxurian/orgs","repos_url":"https://api.github.com/users/Zxurian/repos","events_url":"https://api.github.com/users/Zxurian/events{/privacy}","received_events_url":"https://api.github.com/users/Zxurian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T20:21:29Z","updated_at":"2015-09-06T20:50:55Z","closed_at":"2015-09-06T20:50:55Z","body":"input\r\n```scss\r\n.icon-spinner3:before {\r\n\tcontent: \"\\eb21\";\r\n}\r\n\r\n.icon-ajax {\r\n  @extend .icon-spinner3;\r\n}\r\n```\r\n\r\nexpected output\r\n```css\r\n.icon-spinner3:before, .icon-ajax:before {\r\n  content: \"\\eb21\";\r\n}\r\n```\r\n\r\nactual output\r\n```\r\nWarning: preg_match() expects parameter 2 to be string, array given in /var/www/dev.hub/vendor/leafo/scssphp/src/Compiler.php on line 390\r\n19\t0.1065\t3438080\tLeafo\\ScssPhp\\Compiler->compile( )\t.../ScssphpFilter.php:104\r\n20\t0.1074\t3493656\tLeafo\\ScssPhp\\Compiler->compileRoot( )\t.../Compiler.php:166\r\n21\t0.1942\t4415312\tLeafo\\ScssPhp\\Compiler->flattenSelectors( )\t.../Compiler.php:250\r\n22\t0.1967\t4370920\tLeafo\\ScssPhp\\Compiler->flattenSelectors( )\t.../Compiler.php:306\r\n23\t0.1968\t4371320\tLeafo\\ScssPhp\\Compiler->flattenSelectors( )\t.../Compiler.php:306\r\n24\t0.1968\t4371624\tLeafo\\ScssPhp\\Compiler->matchExtends( )\t.../Compiler.php:273\r\n25\t0.1968\t4372120\tLeafo\\ScssPhp\\Compiler->matchExtendsSingle( )\t.../Compiler.php:325\r\n26\t0.1968\t4372792\tpreg_match ( )\t.../Compiler.php:390\r\n```\r\n\r\nfor reference the dumped $rawSingle from `matchExtendsSingle` function\r\n```\r\narray (size=1)\r\n  0 => \r\n    array (size=3)\r\n      0 => string 'number' (length=6)\r\n      1 => string '0' (length=1)\r\n      2 => string '%' (length=1)\r\n```"},"comment":{"url":"https://api.github.com/repos/leafo/scssphp/issues/comments/138124653","html_url":"https://github.com/leafo/scssphp/issues/322#issuecomment-138124653","issue_url":"https://api.github.com/repos/leafo/scssphp/issues/322","id":138124653,"user":{"login":"Zxurian","id":573371,"avatar_url":"https://avatars.githubusercontent.com/u/573371?v=3","gravatar_id":"","url":"https://api.github.com/users/Zxurian","html_url":"https://github.com/Zxurian","followers_url":"https://api.github.com/users/Zxurian/followers","following_url":"https://api.github.com/users/Zxurian/following{/other_user}","gists_url":"https://api.github.com/users/Zxurian/gists{/gist_id}","starred_url":"https://api.github.com/users/Zxurian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zxurian/subscriptions","organizations_url":"https://api.github.com/users/Zxurian/orgs","repos_url":"https://api.github.com/users/Zxurian/repos","events_url":"https://api.github.com/users/Zxurian/events{/privacy}","received_events_url":"https://api.github.com/users/Zxurian/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T20:50:55Z","updated_at":"2015-09-06T20:50:55Z","body":"closing as it's actually caused by a different issue, just triggering on this particular extend."}}