Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,14 @@
# @link https://github.com/JBZoo/Less
#

/.phan export-ignore
/build export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/Makefile export-ignore

* text eol=lf
2 changes: 2 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

$default = include __DIR__ . '/../vendor/jbzoo/codestyle/src/phan/default.php';

return array_merge($default, [
Expand Down
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0
- nightly

jobs:
fast_finish: true
allow_failures:
- php: 8.0
- php: nightly

env:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JBZoo / Less

[![Build Status](https://travis-ci.org/JBZoo/Less.svg)](https://travis-ci.org/JBZoo/Less) [![Coverage Status](https://coveralls.io/repos/JBZoo/Less/badge.svg)](https://coveralls.io/github/JBZoo/Less) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Less/coverage.svg)](https://shepherd.dev/github/JBZoo/Less)
[![Build Status](https://travis-ci.org/JBZoo/Less.svg)](https://travis-ci.org/JBZoo/Less) [![Coverage Status](https://coveralls.io/repos/JBZoo/Less/badge.svg)](https://coveralls.io/github/JBZoo/Less) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Less/coverage.svg)](https://shepherd.dev/github/JBZoo/Less) [![PHP Strict Types](https://img.shields.io/badge/strict__types-%3D1-brightgreen)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)
[![Stable Version](https://poser.pugx.org/jbzoo/less/version)](https://packagist.org/packages/jbzoo/less) [![Latest Unstable Version](https://poser.pugx.org/jbzoo/less/v/unstable)](https://packagist.org/packages/jbzoo/less) [![Dependents](https://poser.pugx.org/jbzoo/less/dependents)](https://packagist.org/packages/jbzoo/less/dependents?order_by=downloads) [![GitHub Issues](https://img.shields.io/github/issues/jbzoo/less)](https://github.com/JBZoo/Less/issues) [![Total Downloads](https://poser.pugx.org/jbzoo/less/downloads)](https://packagist.org/packages/jbzoo/less/stats) [![GitHub License](https://img.shields.io/github/license/jbzoo/less)](https://github.com/JBZoo/Less/blob/master/LICENSE)


Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"require" : {
"php" : ">=7.2",

"jbzoo/data" : "^4.1.3",
"jbzoo/utils" : "^4.2.3",
"jbzoo/data" : "^4.2.0",
"jbzoo/utils" : "^4.3.0",
"wikimedia/less.php" : "^3.1.0"
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^2.6.2"
"jbzoo/toolbox-dev" : "^2.10.0"
},

"autoload" : {
Expand Down
4 changes: 3 additions & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\Less;

use JBZoo\Data\Data;
Expand All @@ -27,7 +29,7 @@
* Class Cache
* @package JBZoo\Less
*/
class Cache
final class Cache
{
/**
* @var int
Expand Down
2 changes: 2 additions & 0 deletions src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\Less;

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Gpeasy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\Less;

use JBZoo\Data\Data;
Expand All @@ -24,7 +26,7 @@
* Class Gpeasy
* @package JBZoo\Less
*/
class Gpeasy
final class Gpeasy
{
/**
* @var Less_Parser|null
Expand Down
4 changes: 3 additions & 1 deletion src/Less.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\Less;

use JBZoo\Data\Data;
Expand All @@ -25,7 +27,7 @@
* Class Less
* @package JBZoo\Less
*/
class Less
final class Less
{
/**
* @var array
Expand Down
2 changes: 2 additions & 0 deletions tests/AbstractLessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

use JBZoo\Less\Less;
Expand Down
2 changes: 2 additions & 0 deletions tests/DriverGpeasyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

/**
Expand Down
7 changes: 5 additions & 2 deletions tests/LessCodestyleTest.php → tests/LessCodestyleTest1.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

/**
* Class LessCodestyleTest
* @package JBZoo\PHPUnit
*/
class LessCodestyleTest extends AbstractCopyrightTest
class LessCopyrightTest extends AbstractCopyrightTest
{
protected $packageName = "Less";
protected $packageName = "Less";
protected $isPhpStrictType = true;

protected function setUp(): void
{
Expand Down
2 changes: 2 additions & 0 deletions tests/LessComposerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

/**
Expand Down
6 changes: 4 additions & 2 deletions tests/LessCopyrightsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

/**
* Class LessCopyrightsTest
* Class LessCodestyleTest
* @package JBZoo\PHPUnit
*/
class LessCopyrightsTest extends AbstractCodestyleTest
class LessCodestyleTest extends AbstractCodestyleTest
{

}
8 changes: 8 additions & 0 deletions tests/LessReadmeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

namespace JBZoo\PHPUnit;

/**
Expand All @@ -23,4 +25,10 @@
class LessReadmeTest extends AbstractReadmeTest
{
protected $packageName = 'Less';

protected function setUp(): void
{
parent::setUp();
$this->params['strict_types'] = true;
}
}
2 changes: 2 additions & 0 deletions tests/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @link https://github.com/JBZoo/Less
*/

declare(strict_types=1);

if (!defined('ROOT_PATH')) { // for PHPUnit process isolation
define('ROOT_PATH', realpath('.'));
}
Expand Down