Skip to content

Commit

Permalink
[TASK] Update bundled scssphp to v1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Jun 1, 2023
1 parent e75e83e commit 344fef8
Show file tree
Hide file tree
Showing 37 changed files with 1,549 additions and 471 deletions.
4 changes: 2 additions & 2 deletions Contrib/scssphp/bin/pscss 100644 → 100755
Expand Up @@ -38,8 +38,8 @@ $embedSourceMap = false;
/**
* Parse argument
*
* @param integer $i
* @param array $options
* @param int $i
* @param string[] $options
*
* @return string|null
*/
Expand Down
29 changes: 19 additions & 10 deletions Contrib/scssphp/composer.json
Expand Up @@ -42,24 +42,24 @@
"symfony/phpunit-bridge": "^5.1",
"thoughtbot/bourbon": "^7.0",
"twbs/bootstrap": "~5.0",
"twbs/bootstrap4": "4.6.0",
"twbs/bootstrap4": "4.6.1",
"zurb/foundation": "~6.5"
},
"repositories": [
{
"type": "package",
"package": {
"name": "sass/sass-spec",
"version": "2021.09.15",
"version": "2022.08.19",
"source": {
"type": "git",
"url": "https://github.com/sass/sass-spec.git",
"reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955"
"reference": "2bdc199723a3445d5badac3ac774105698f08861"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sass/sass-spec/zipball/eb2d7a0865c1faf0b55a39ff962b24aca9b4c955",
"reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955",
"url": "https://api.github.com/repos/sass/sass-spec/zipball/2bdc199723a3445d5badac3ac774105698f08861",
"reference": "2bdc199723a3445d5badac3ac774105698f08861",
"shasum": ""
}
}
Expand All @@ -86,23 +86,32 @@
"type": "package",
"package": {
"name": "twbs/bootstrap4",
"version": "v4.6.0",
"version": "v4.6.1",
"source": {
"type": "git",
"url": "https://github.com/twbs/bootstrap.git",
"reference": "6ffb0b48e455430f8a5359ed689ad64c1143fac2"
"reference": "043a03c95a2ad6738f85b65e53b9dbdfb03b8d10"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/6ffb0b48e455430f8a5359ed689ad64c1143fac2",
"reference": "6ffb0b48e455430f8a5359ed689ad64c1143fac2",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/043a03c95a2ad6738f85b65e53b9dbdfb03b8d10",
"reference": "043a03c95a2ad6738f85b65e53b9dbdfb03b8d10",
"shasum": ""
}
}
}
],
"bin": ["bin/pscss"],
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"forward-command": false,
"bin-links": false
}
}
}
12 changes: 0 additions & 12 deletions Contrib/scssphp/phpcs.xml.dist

This file was deleted.

8 changes: 4 additions & 4 deletions Contrib/scssphp/src/Base/Range.php
Expand Up @@ -34,8 +34,8 @@ class Range
/**
* Initialize range
*
* @param integer|float $first
* @param integer|float $last
* @param int|float $first
* @param int|float $last
*/
public function __construct($first, $last)
{
Expand All @@ -46,9 +46,9 @@ public function __construct($first, $last)
/**
* Test for inclusion in range
*
* @param integer|float $value
* @param int|float $value
*
* @return boolean
* @return bool
*/
public function includes($value)
{
Expand Down
12 changes: 6 additions & 6 deletions Contrib/scssphp/src/Block.php
Expand Up @@ -22,12 +22,12 @@
class Block
{
/**
* @var string
* @var string|null
*/
public $type;

/**
* @var \ScssPhp\ScssPhp\Block
* @var Block|null
*/
public $parent;

Expand All @@ -37,17 +37,17 @@ class Block
public $sourceName;

/**
* @var integer
* @var int
*/
public $sourceIndex;

/**
* @var integer
* @var int
*/
public $sourceLine;

/**
* @var integer
* @var int
*/
public $sourceColumn;

Expand All @@ -67,7 +67,7 @@ class Block
public $children;

/**
* @var \ScssPhp\ScssPhp\Block|null
* @var Block|null
*/
public $selfParent;
}
37 changes: 37 additions & 0 deletions Contrib/scssphp/src/Block/AtRootBlock.php
@@ -0,0 +1,37 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Type;

/**
* @internal
*/
class AtRootBlock extends Block
{
/**
* @var array|null
*/
public $selector;

/**
* @var array|null
*/
public $with;

public function __construct()
{
$this->type = Type::T_AT_ROOT;
}
}
45 changes: 45 additions & 0 deletions Contrib/scssphp/src/Block/CallableBlock.php
@@ -0,0 +1,45 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Compiler\Environment;

/**
* @internal
*/
class CallableBlock extends Block
{
/**
* @var string
*/
public $name;

/**
* @var array|null
*/
public $args;

/**
* @var Environment|null
*/
public $parentEnv;

/**
* @param string $type
*/
public function __construct($type)
{
$this->type = $type;
}
}
38 changes: 38 additions & 0 deletions Contrib/scssphp/src/Block/ContentBlock.php
@@ -0,0 +1,38 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Compiler\Environment;
use ScssPhp\ScssPhp\Type;

/**
* @internal
*/
class ContentBlock extends Block
{
/**
* @var array|null
*/
public $child;

/**
* @var Environment|null
*/
public $scope;

public function __construct()
{
$this->type = Type::T_INCLUDE;
}
}
37 changes: 37 additions & 0 deletions Contrib/scssphp/src/Block/DirectiveBlock.php
@@ -0,0 +1,37 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Type;

/**
* @internal
*/
class DirectiveBlock extends Block
{
/**
* @var string|array
*/
public $name;

/**
* @var string|array|null
*/
public $value;

public function __construct()
{
$this->type = Type::T_DIRECTIVE;
}
}
37 changes: 37 additions & 0 deletions Contrib/scssphp/src/Block/EachBlock.php
@@ -0,0 +1,37 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Type;

/**
* @internal
*/
class EachBlock extends Block
{
/**
* @var string[]
*/
public $vars = [];

/**
* @var array
*/
public $list;

public function __construct()
{
$this->type = Type::T_EACH;
}
}
27 changes: 27 additions & 0 deletions Contrib/scssphp/src/Block/ElseBlock.php
@@ -0,0 +1,27 @@
<?php

/**
* SCSSPHP
*
* @copyright 2012-2020 Leaf Corcoran
*
* @license http://opensource.org/licenses/MIT MIT
*
* @link http://scssphp.github.io/scssphp
*/

namespace ScssPhp\ScssPhp\Block;

use ScssPhp\ScssPhp\Block;
use ScssPhp\ScssPhp\Type;

/**
* @internal
*/
class ElseBlock extends Block
{
public function __construct()
{
$this->type = Type::T_ELSE;
}
}

0 comments on commit 344fef8

Please sign in to comment.