Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ jobs:
strategy:
matrix:
include:
- php-version: '8.2'
main: true
- php-version: '8.3'
main: true
- php-version: '8.4'
nightly: true
name: PHP ${{ matrix.php-version }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-dom": "*",
"ext-libxml": "*",
"symfony/css-selector": "^7.1"
Expand Down
3 changes: 1 addition & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Rector\CodingStyle\Rector\Use_\SeparateMultiUseImportsRector;
use Rector\Config\RectorConfig;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;

Expand All @@ -19,5 +18,5 @@
$rectorConfig->rule(SeparateMultiUseImportsRector::class);
$rectorConfig->rule(ExplicitNullableParamTypeRector::class);
$rectorConfig->importNames();
$rectorConfig->sets([LevelSetList::UP_TO_PHP_84, PHPUnitSetList::PHPUNIT_90]);
$rectorConfig->sets([LevelSetList::UP_TO_PHP_84]);
};
8 changes: 2 additions & 6 deletions src/ElementFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ class ElementFinder implements ElementFinderInterface
{
/**
* Html document type
*
* @var int
*/
final public const DOCUMENT_HTML = 0;
final public const int DOCUMENT_HTML = 0;

/**
* Xml document type
*
* @var int
*/
final public const DOCUMENT_XML = 1;
final public const int DOCUMENT_XML = 1;

private int $type;

Expand Down
Loading