mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-31 17:55:29 +09:00
Update composer dependencies
This commit is contained in:
parent
49cc39e507
commit
cbd324c35b
428 changed files with 17862 additions and 5885 deletions
7
vendor/leafo/scssphp/src/Util.php
vendored
7
vendor/leafo/scssphp/src/Util.php
vendored
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* SCSSPHP
|
||||
*
|
||||
* @copyright 2012-2015 Leaf Corcoran
|
||||
* @copyright 2012-2017 Leaf Corcoran
|
||||
*
|
||||
* @license http://opensource.org/licenses/MIT MIT
|
||||
*
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
namespace Leafo\ScssPhp;
|
||||
|
||||
use Leafo\ScssPhp\Base\Range;
|
||||
use Leafo\ScssPhp\Exception\RangeException;
|
||||
|
||||
/**
|
||||
* Utilties
|
||||
|
|
@ -31,7 +32,7 @@ class Util
|
|||
*
|
||||
* @return mixed `value` adjusted to fall within range, if it was outside by a floating-point margin.
|
||||
*
|
||||
* @throws \Exception
|
||||
* @throws \Leafo\ScssPhp\Exception\RangeException
|
||||
*/
|
||||
public static function checkRange($name, Range $range, $value, $unit = '')
|
||||
{
|
||||
|
|
@ -50,6 +51,6 @@ class Util
|
|||
return $range->last;
|
||||
}
|
||||
|
||||
throw new \Exception("$name {$val} must be between {$range->first} and {$range->last}$unit");
|
||||
throw new RangeException("$name {$val} must be between {$range->first} and {$range->last}$unit");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue