From 629eff9d3ca88c4812f4c0ed47653f355ec9915e Mon Sep 17 00:00:00 2001 From: Dan Hemberger <846186+hemberger@users.noreply.github.com> Date: Wed, 2 Jun 2021 09:26:51 -0700 Subject: [PATCH 1/3] README.md: replace Travis badge Travis is no longer being used, so switch to the GitHub Actions badge. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 00e439a282122352d2e78d884315672be4633ebc Mon Sep 17 00:00:00 2001 From: overtrue Date: Sun, 6 Jun 2021 00:07:38 +0800 Subject: [PATCH 2/3] Fixed #97 --- src/Linter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linter.php b/src/Linter.php index 5e2114be..f42ff0e2 100644 --- a/src/Linter.php +++ b/src/Linter.php @@ -9,7 +9,7 @@ class Linter { - private mixed $processCallback; + private mixed $processCallback = null; private array $files = []; private array $cache = []; private array $paths; From d04fb1a4486b4b2d2f1dcb807947c82614e4987a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Sun, 6 Jun 2021 00:15:09 +0800 Subject: [PATCH 3/3] Update build-phar.yml --- .github/workflows/build-phar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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