Skip to content

Commit 6b9374a

Browse files
authored
Downgrade min required php version to 7.1 (fixes #89) (#90)
1 parent 0e9681a commit 6b9374a

34 files changed

+135
-39
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: php
22
php:
3-
- '7.2'
3+
- '7.1'
44

55
before_script:
66
- composer install

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=7.2"
14+
"php": ">=7.1"
1515
},
1616
"require-dev": {
1717
"phpunit/phpunit": "^7.0",
18-
"friendsofphp/php-cs-fixer": "^2.2"
18+
"friendsofphp/php-cs-fixer": "^2.13"
1919
},
2020
"autoload": {
2121
"psr-4": {

src/Attribute.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ public function __construct(string $name, $val)
2020
$this->val = $val;
2121
}
2222

23-
public function attachTo(object $o): void
23+
/**
24+
* @param object $o
25+
*/
26+
public function attachTo($o): void
2427
{
2528
child($o, 'attributes')->{$this->name} = $this->val;
2629
}

src/Error.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ public function __construct(ErrorMember ...$members)
2121
}
2222
}
2323

24-
public function attachTo(object $o): void
24+
/**
25+
* @param object $o
26+
*/
27+
public function attachTo($o): void
2528
{
2629
$o->errors[] = $this->error;
2730
}

src/Error/Code.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public function __construct(string $code)
1919
$this->code = $code;
2020
}
2121

22-
public function attachTo(object $o): void
22+
/**
23+
* @param object $o
24+
*/
25+
public function attachTo($o): void
2326
{
2427
$o->code = $this->code;
2528
}

src/Error/Detail.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public function __construct(string $detail)
1919
$this->detail = $detail;
2020
}
2121

22-
public function attachTo(object $o): void
22+
/**
23+
* @param object $o
24+
*/
25+
public function attachTo($o): void
2326
{
2427
$o->detail = $this->detail;
2528
}

src/Error/Id.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public function __construct(string $id)
1919
$this->id = $id;
2020
}
2121

22-
public function attachTo(object $o): void
22+
/**
23+
* @param object $o
24+
*/
25+
public function attachTo($o): void
2326
{
2427
$o->id = $this->id;
2528
}

src/Error/SourceParameter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ public function __construct(string $parameter)
2020
$this->parameter = $parameter;
2121
}
2222

23-
public function attachTo(object $o): void
23+
/**
24+
* @param object $o
25+
*/
26+
public function attachTo($o): void
2427
{
2528
child($o, 'source')->parameter = $this->parameter;
2629
}

src/Error/SourcePointer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ public function __construct(string $pointer)
1717
$this->pointer = $pointer;
1818
}
1919

20-
public function attachTo(object $o): void
20+
/**
21+
* @param object $o
22+
*/
23+
public function attachTo($o): void
2124
{
2225
child($o, 'source')->pointer = $this->pointer;
2326
}

src/Error/Status.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public function __construct(string $status)
1919
$this->status = $status;
2020
}
2121

22-
public function attachTo(object $o): void
22+
/**
23+
* @param object $o
24+
*/
25+
public function attachTo($o): void
2326
{
2427
$o->status = $this->status;
2528
}

0 commit comments

Comments
 (0)