Skip to content

Commit b95e0da

Browse files
committed
Add scripts section to composer.json and update return type in setName method
1 parent 61f29d2 commit b95e0da

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@
3333
"Tests\\": "tests/"
3434
}
3535
},
36+
37+
"scripts": {
38+
"php-version": [
39+
"@php -v"
40+
],
41+
"pest": [
42+
"pest"
43+
],
44+
"test": [
45+
"@php-version",
46+
"@pest"
47+
],
48+
"lint": [
49+
"@php-version",
50+
"pint --parallel -v --test"
51+
],
52+
"fix": [
53+
"pint --parallel --repair"
54+
]
55+
},
3656
"config": {
3757
"allow-plugins": {
3858
"pestphp/pest-plugin": true

src/PHPHtmlParser/Dom/Node/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ public function offsetUnset($offset): void
132132
* Gets a node at the given offset, or null.
133133
*
134134
* @param mixed $offset
135-
* @return mixed
136135
*/
137136
public function offsetGet($offset): mixed
138137
{

src/PHPHtmlParser/Dom/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function name(): string
100100
/**
101101
* Sets the name of this tag.
102102
*/
103-
public function setName(string $name): Tag
103+
public function setName(string $name): self
104104
{
105105
$this->name = $name;
106106

0 commit comments

Comments
 (0)