Skip to content

Commit

Permalink
Codebase updated to PHP v8.1|v8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiansulinski committed Jan 4, 2023
1 parent 0a7815d commit 450239e
Show file tree
Hide file tree
Showing 10 changed files with 290 additions and 409 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ If you need more tag types i.e. `link` - simply add new class that extends `\SSD
```php

use SSD\PathExtractor\Tags\Tag;
use SSD\PathExtractor\Tags\Type;

class Link extends Tag
{
Expand Down Expand Up @@ -228,9 +229,9 @@ class Link extends Tag
static public function availableAttributes(): array
{
return [
'href' => static::TYPE_STRING,
'type' => static::TYPE_STRING,
'rel' => static::TYPE_STRING,
'href' => Type::STRING,
'type' => Type::STRING,
'rel' => Type::STRING,
];
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "sebastiansulinski/path-extractor",
"description": "Parse html document and extract paths from the images, anchors and other tags.",
"require": {
"php": "^7.4|^8.0",
"php": "^8.1",
"ext-dom": "*",
"ext-tidy": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "stable",
"autoload": {
Expand Down
Loading

0 comments on commit 450239e

Please sign in to comment.