Skip to content

Commit 2a9263c

Browse files
committed
updates for php8 in a new version
1 parent 74c4991 commit 2a9263c

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"email": "crodas@php.net"
1010
}
1111
],
12-
"version": "v0.1.7",
12+
"version": "v0.2.0",
1313
"minimum-stability": "stable",
1414
"autoload": {
1515
"classmap": [
1616
"src/"
1717
]
1818
},
1919
"requires": {
20-
"php": ">=7.3 || ^8.0"
20+
"php": "^8.0"
2121
},
2222
"require-dev": {
23-
"crodas/phpunit-compat": "^1.7",
24-
"fpoirotte/php_parsergenerator": "^0.2.4",
25-
"friendsofphp/php-cs-fixer": "^2.18"
23+
"crodas/phpunit-compat": "*",
24+
"fpoirotte/php_parsergenerator": "*",
25+
"friendsofphp/php-cs-fixer": "*"
2626
}
2727
}

src/SQLParser/Parser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ public function __toString()
6262
return $this->string;
6363
}
6464

65-
public function offsetExists($offset)
65+
public function offsetExists(mixed $offset): bool
6666
{
6767
return isset($this->metadata[$offset]);
6868
}
6969

70-
public function offsetGet($offset)
70+
public function offsetGet(mixed $offset): mixed
7171
{
7272
return $this->metadata[$offset];
7373
}
7474

75-
public function offsetSet($offset, $value)
75+
public function offsetSet(mixed $offset, mixed $value): void
7676
{
7777
if (null === $offset) {
7878
if (isset($value[0])) {
@@ -96,7 +96,7 @@ public function offsetSet($offset, $value)
9696
}
9797
}
9898

99-
public function offsetUnset($offset)
99+
public function offsetUnset(mixed $offset): void
100100
{
101101
unset($this->metadata[$offset]);
102102
}

0 commit comments

Comments
 (0)