From ba2b4fd84e37b7a8a514a64704ab4a2c0441b2a2 Mon Sep 17 00:00:00 2001 From: Henrich Date: Fri, 4 Dec 2020 21:49:48 +0100 Subject: [PATCH] Add support of PHP 7.3 and less. --- .github/workflows/tests.yml | 1 - src/TestBroadcaster.php | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ff155f..3c559ac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,7 +56,6 @@ jobs: run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-progress --no-suggest - npm install - name: Run PHPUnit tests run: vendor/bin/phpunit --testdox --colors=always diff --git a/src/TestBroadcaster.php b/src/TestBroadcaster.php index 90fda7f..a7e0bc6 100644 --- a/src/TestBroadcaster.php +++ b/src/TestBroadcaster.php @@ -6,7 +6,10 @@ class TestBroadcaster extends Broadcaster { - private array $broadcasts = []; + /** + * @var array + */ + private $broadcasts = []; /** * {@inheritdoc}