Skip to content

Commit bf606f1

Browse files
authored
Merge pull request #20 from snapshotpl/php-8.1
Support for PHP 8.1
2 parents 3058723 + 8f82bc3 commit bf606f1

14 files changed

Lines changed: 167 additions & 144 deletions

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"require": {
29-
"php": "^7.3 || ~8.0.0",
29+
"php": "^7.3 || ~8.0.0 || ~8.1.0",
3030
"laminas-api-tools/api-tools-api-problem": "^1.3.0",
3131
"laminas-api-tools/api-tools-content-negotiation": "^1.5.0",
3232
"laminas/laminas-eventmanager": "^2.6.3 || ^3.0.1",
@@ -40,10 +40,10 @@
4040
"laminas/laminas-zendframework-bridge": "^1.0"
4141
},
4242
"require-dev": {
43-
"laminas/laminas-coding-standard": "~2.2.0",
43+
"laminas/laminas-coding-standard": "~2.3.0",
4444
"laminas/laminas-db": "^2.8.1",
4545
"phpspec/prophecy-phpunit": "^2.0",
46-
"phpunit/phpunit": "^9.3",
46+
"phpunit/phpunit": "^9.5.10",
4747
"psalm/plugin-phpunit": "^0.16.0",
4848
"vimeo/psalm": "^4.7"
4949
},
@@ -65,7 +65,8 @@
6565
"cs-check": "phpcs",
6666
"cs-fix": "phpcbf",
6767
"test": "phpunit --colors=always",
68-
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
68+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
69+
"static-analysis": "psalm --shepherd --stats"
6970
},
7071
"replace": {
7172
"zfcampus/zf-content-validation": "^1.8.0"

composer.lock

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

config/module.config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation;
46

57
use Laminas\InputFilter\InputFilterAbstractServiceFactory;

src/ContentValidationListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation;
46

57
use Laminas\ApiTools\ApiProblem\ApiProblem;

src/ContentValidationListenerFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation;
46

57
use Interop\Container\ContainerInterface;

src/InputFilter/InputFilterPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation\InputFilter;
46

57
use Laminas\InputFilter\InputFilterInterface;

src/Module.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation;
46

57
use Laminas\Mvc\MvcEvent;

src/Validator/Db/NoRecordExistsFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation\Validator\Db;
46

57
use Interop\Container\ContainerInterface;

src/Validator/Db/RecordExistsFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Laminas\ApiTools\ContentValidation\Validator\Db;
46

57
use Interop\Container\ContainerInterface;

test/ContentValidationListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaminasTest\ApiTools\ContentValidation;
46

57
use Laminas\ApiTools\ApiProblem\ApiProblem;

0 commit comments

Comments
 (0)