Skip to content

Commit a06ec97

Browse files
Merge pull request #29 from weierophinney/feature/27-php-8.1-support
Provide support for PHP 8.1
2 parents 46014ec + 8caf97e commit a06ec97

8 files changed

+134
-135
lines changed

composer.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,28 @@
1515
}
1616
},
1717
"require": {
18-
"php": "^7.3 || ~8.0.0",
19-
"laminas-api-tools/api-tools-configuration": "^1.2",
20-
"laminas-api-tools/api-tools-content-negotiation": "^1.2.1",
21-
"laminas-api-tools/api-tools-provider": "^1.2",
22-
"laminas/laminas-inputfilter": "^2.7.2",
23-
"laminas/laminas-modulemanager": "^2.7.2",
24-
"laminas/laminas-mvc": "^2.7.15 || ^3.0.4",
25-
"laminas/laminas-servicemanager": "^2.7.6 || ^3.1",
26-
"laminas/laminas-view": "^2.11.3",
27-
"laminas/laminas-zendframework-bridge": "^1.1",
18+
"php": "^7.4 || ~8.0.0 || ~8.1.0",
19+
"laminas-api-tools/api-tools-configuration": "^1.5",
20+
"laminas-api-tools/api-tools-content-negotiation": "^1.7",
21+
"laminas-api-tools/api-tools-provider": "^1.5",
22+
"laminas/laminas-inputfilter": "^2.13",
23+
"laminas/laminas-modulemanager": "^2.11",
24+
"laminas/laminas-mvc": "^3.3",
25+
"laminas/laminas-servicemanager": "^3.8",
26+
"laminas/laminas-view": "^2.13",
2827
"michelf/php-markdown": "^1.5"
2928
},
30-
"replace": {
31-
"zfcampus/zf-apigility-documentation": "^1.3.0"
29+
"conflict": {
30+
"zfcampus/zf-apigility-documentation": "*"
3231
},
3332
"require-dev": {
34-
"laminas/laminas-coding-standard": "~2.2.0",
35-
"laminas/laminas-stdlib": "^2.7.8 || ^3.0.1",
36-
"phpunit/phpunit": "^9.3",
33+
"laminas/laminas-coding-standard": "~2.3.0",
34+
"laminas/laminas-stdlib": "^3.6.4",
35+
"phpunit/phpunit": "^9.5.10",
3736
"vimeo/psalm": "^4.7",
3837
"psalm/plugin-phpunit": "^0.16.0",
3938
"webmozart/assert": "^1.10",
40-
"laminas/laminas-db": "^2.13"
39+
"laminas/laminas-db": "^2.13.4"
4140
},
4241
"autoload": {
4342
"psr-4": {

composer.lock

Lines changed: 107 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@
1919
<file>view</file>
2020

2121
<!-- Include all rules from Laminas Coding Standard -->
22-
<rule ref="LaminasCodingStandard"/>
22+
<rule ref="LaminasCodingStandard">
23+
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing"/>
24+
</rule>
2325
</ruleset>

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
6+
convertDeprecationsToExceptions="true"
67
colors="true">
78
<coverage processUncoveredFiles="true">
89
<include>

src/Api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use ArrayIterator;
66
use IteratorAggregate;
7+
use ReturnTypeWillChange;
78

89
//use Laminas\ApiTools\ContentNegotiation\ViewModel;
910

@@ -110,6 +111,7 @@ public function toArray()
110111
*
111112
* @return ArrayIterator
112113
*/
114+
#[ReturnTypeWillChange]
113115
public function getIterator()
114116
{
115117
return new ArrayIterator($this->toArray());

src/Field.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use ArrayIterator;
66
use IteratorAggregate;
7+
use ReturnTypeWillChange;
78

89
class Field implements IteratorAggregate
910
{
@@ -146,6 +147,7 @@ public function toArray()
146147
*
147148
* @return ArrayIterator
148149
*/
150+
#[ReturnTypeWillChange]
149151
public function getIterator()
150152
{
151153
return new ArrayIterator($this->toArray());

src/Operation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use ArrayIterator;
66
use IteratorAggregate;
7+
use ReturnTypeWillChange;
78

89
class Operation implements IteratorAggregate
910
{
@@ -158,6 +159,7 @@ public function toArray()
158159
*
159160
* @return ArrayIterator
160161
*/
162+
#[ReturnTypeWillChange]
161163
public function getIterator()
162164
{
163165
return new ArrayIterator($this->toArray());

src/Service.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use ArrayIterator;
66
use IteratorAggregate;
77
use Laminas\ApiTools\Documentation\Api;
8+
use ReturnTypeWillChange;
89

910
class Service implements IteratorAggregate
1011
{
@@ -287,6 +288,7 @@ public function toArray()
287288
*
288289
* @return ArrayIterator
289290
*/
291+
#[ReturnTypeWillChange]
290292
public function getIterator()
291293
{
292294
return new ArrayIterator($this->toArray());

0 commit comments

Comments
 (0)