diff --git a/.github/workflows/build-phar.yml b/.github/workflows/build-phar.yml index 88956e0d..b8bb4d79 100644 --- a/.github/workflows/build-phar.yml +++ b/.github/workflows/build-phar.yml @@ -42,7 +42,7 @@ jobs: composer-${{ runner.os }}- composer- - name: Install dependencies - run: composer config minimum-stability dev && composer require humbug/box@^3.0 --dev + run: composer config minimum-stability dev && composer require humbug/box:^3.13 --dev - name: Build phar run: ./vendor/bin/box compile - uses: actions/upload-artifact@v1 diff --git a/README.md b/README.md index 7fb56681..0d020bdc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ![artboard 1](https://user-images.githubusercontent.com/1472352/38774811-3f780ab6-40a3-11e8-9a0a-a8d06d2c6463.jpg) -[![Build Status](https://travis-ci.org/overtrue/phplint.svg?branch=master)](https://travis-ci.org/overtrue/phplint) +[![Release Status](https://github.com/overtrue/phplint/actions/workflows/build-phar.yml/badge.svg)](https://github.com/overtrue/phplint/actions/workflows/build-phar.yml) [![Latest Stable Version](https://poser.pugx.org/overtrue/phplint/v/stable.svg)](https://packagist.org/packages/overtrue/phplint) [![Total Downloads](https://poser.pugx.org/overtrue/phplint/downloads.svg)](https://packagist.org/packages/overtrue/phplint) [![Latest Unstable Version](https://poser.pugx.org/overtrue/phplint/v/unstable.svg)](https://packagist.org/packages/overtrue/phplint) [![License](https://poser.pugx.org/overtrue/phplint/license.svg)](https://packagist.org/packages/overtrue/phplint) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/overtrue/phplint/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/overtrue/phplint/?branch=master) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fovertrue%2Fphplint.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fovertrue%2Fphplint?ref=badge_shield) @@ -163,4 +163,4 @@ by setting the `warning` to true in the configuration. ## License -MIT \ No newline at end of file +MIT diff --git a/src/Linter.php b/src/Linter.php index b1b0fbad..18596445 100644 --- a/src/Linter.php +++ b/src/Linter.php @@ -9,6 +9,7 @@ class Linter { + private ?\Closure $processCallback = null; private array $files = []; private array $cache = [];