Skip to content

Commit a299910

Browse files
authored
Feature/Upgrade Contracts (#6)
- Removed support for PHP 7.4. - Fixed return type for ArrayValue::offsetGet.
1 parent 4718bfd commit a299910

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php-version: [ 7.4, 8.0, 8.1 ]
16+
php-version: [ "8.0", "8.1" ]
1717

1818
steps:
1919
- name: Checkout source code

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
],
1212
"minimum-stability": "stable",
1313
"require": {
14-
"php": "^7.4|^8.0",
14+
"php": "^8.0",
1515
"ext-json": "*",
1616
"ramsey/uuid": "^4.1",
1717
"nesbot/carbon": "^2.40",
1818
"illuminate/collections": "^8.20",
1919
"lambdish/phunctional": "^2.1",
2020
"doctrine/instantiator": "^1.4",
21-
"complex-heart/contracts": "^0.1.0"
21+
"complex-heart/contracts": "^1.0.0"
2222
},
2323
"require-dev": {
2424
"mockery/mockery": "^1.4",

src/ValueObjects/ArrayValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function offsetExists($offset): bool
149149
* @param mixed $offset
150150
* @return mixed|null
151151
*/
152-
public function offsetGet($offset)
152+
public function offsetGet($offset): mixed
153153
{
154154
return $this->offsetExists($offset)
155155
? $this->value[$offset]

0 commit comments

Comments
 (0)