Skip to content

Commit 774363e

Browse files
authored
Merge pull request #110 from j0k3r/fix/psr-monolog
[1.x] Allow new psr/log & monolog
2 parents b9dde0f + e6ca6f1 commit 774363e

File tree

3 files changed

+5
-51
lines changed

3 files changed

+5
-51
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
strategy:
2222
matrix:
2323
php:
24-
- "5.6"
25-
- "7.0"
26-
- "7.1"
2724
- "7.2"
2825
- "7.3"
2926
- "7.4"
@@ -122,7 +119,7 @@ jobs:
122119
strategy:
123120
matrix:
124121
php:
125-
- "7.2"
122+
- "7.4"
126123

127124
steps:
128125
- name: "Checkout"
@@ -155,43 +152,3 @@ jobs:
155152

156153
- name: "Run PHPUnit"
157154
run: "php vendor/bin/simple-phpunit -v"
158-
159-
phpunit-composerv2:
160-
name: "PHPUnit with Composer v1 (PHP ${{ matrix.php }})"
161-
runs-on: "ubuntu-latest"
162-
163-
strategy:
164-
matrix:
165-
php:
166-
- "7.4"
167-
168-
steps:
169-
- name: "Checkout"
170-
uses: "actions/checkout@v2"
171-
with:
172-
fetch-depth: 2
173-
174-
- name: "Install PHP"
175-
uses: "shivammathur/setup-php@v2"
176-
with:
177-
php-version: "${{ matrix.php }}"
178-
coverage: "none"
179-
tools: composer:v1
180-
extensions: tidy
181-
ini-values: "date.timezone=Europe/Paris"
182-
env:
183-
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184-
185-
- name: "Remove useless deps"
186-
run: "composer remove friendsofphp/php-cs-fixer --dev --no-progress --no-update"
187-
188-
- name: "Install dependencies with Composer"
189-
uses: "ramsey/composer-install@v1"
190-
with:
191-
composer-options: "--optimize-autoloader --prefer-dist"
192-
193-
- name: "Setup logs"
194-
run: "mkdir -p build/logs"
195-
196-
- name: "Run PHPUnit"
197-
run: "php vendor/bin/simple-phpunit -v"

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"role": "Developer (original JS version)"
2525
}],
2626
"require": {
27-
"php": ">=5.6.0",
27+
"php": ">=7.2",
2828
"ext-mbstring": "*",
29-
"psr/log": "^1.0",
29+
"psr/log": "^1.0.1 || ^2.0 || ^3.0",
3030
"masterminds/html5": "^2.7"
3131
},
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "^2.14",
34-
"monolog/monolog": "^1.24|^2.1",
34+
"monolog/monolog": "^1.24|^2.1|^3.0",
3535
"symfony/phpunit-bridge": "^4.4|^5.3|^6.0|^7.0"
3636
},
3737
"suggest": {

src/Readability.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ public function __construct($html, $url = null, $parser = 'libxml', $use_tidy =
183183
$this->loadHtml();
184184
}
185185

186-
/**
187-
* @return void
188-
*/
189-
public function setLogger(LoggerInterface $logger)
186+
public function setLogger(LoggerInterface $logger): void
190187
{
191188
$this->logger = $logger;
192189
}

0 commit comments

Comments
 (0)