Skip to content

Commit 7c5772c

Browse files
committed
Support PHP 7.4?
1 parent 25600f2 commit 7c5772c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://github.com/bobthecow/Ruler",
66
"license": "MIT",
77
"require": {
8-
"php": ">=8.0"
8+
"php": ">=7.4"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^8.5.12 | ^9"

src/Ruler/Context.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public function offsetExists($name): bool
8787
*
8888
* @throws \InvalidArgumentException if the name is not defined
8989
*/
90-
public function offsetGet($name): mixed
90+
#[\ReturnTypeWillChange]
91+
public function offsetGet($name)
9192
{
9293
if (!$this->offsetExists($name)) {
9394
throw new \InvalidArgumentException(sprintf('Fact "%s" is not defined.', $name));

0 commit comments

Comments
 (0)