Skip to content

Commit abc2545

Browse files
authored
Upload reports to codecov (#110)
* Upload reports to codecov * Fix code style * Update changelog * Add support for ElementFinder 3.0
1 parent 53b7d3e commit abc2545

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
include:
2020
- php-version: '8.2'
2121
composer-flag: '--prefer-lowest'
22+
main: true
2223
- php-version: '8.2'
2324
composer-flag: ''
2425
- php-version: '8.3'

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22
All Notable changes to `Parser` will be documented in this file
3-
## 3.0.0 [Unreleased]
3+
## 3.0.0 [2025-02-08]
44
- Minimum required php version is now php 8.2
55

66
## 2.0.0 [2024-01-11]

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"guzzlehttp/guzzle": "^6.3 || ^7.3",
2424
"guzzlehttp/psr7": "^2.4.5",
2525
"psr/http-message": "^1.0 || ^2.0",
26-
"xparse/element-finder": "^2.0"
26+
"xparse/element-finder": "^2.0 || ^3.0"
2727
},
2828
"require-dev": {
2929
"ext-iconv": "*",

src/Helper/ToUtfConverter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
class ToUtfConverter implements EncodingConverterInterface
1313
{
14-
1514
private const EXCLUDED_ENCODINGS = [
1615
"utf-8",
1716
"utf8",
@@ -50,7 +49,7 @@ private function getSupportedEncodings(): array
5049
$findAliases = function_exists('mb_encoding_aliases');
5150
foreach (mb_list_encodings() as $encoding) {
5251
$encoding = mb_strtolower($encoding);
53-
if (!in_array($encoding, self::EXCLUDED_ENCODINGS)) {
52+
if (! in_array($encoding, self::EXCLUDED_ENCODINGS)) {
5453
$this->supportedEncodings[] = $encoding;
5554
if ($findAliases) {
5655
foreach (mb_encoding_aliases($encoding) as $encodingAlias) {

0 commit comments

Comments
 (0)