Skip to content

Commit 54af385

Browse files
authored
Merge pull request #752 from driehle/feature/update-workflows
Update upstream workflows and update PhpStan to 1.0
2 parents e082975 + e3422bd commit 54af385

File tree

11 files changed

+21
-13
lines changed

11 files changed

+21
-13
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
/phpcs.xml.dist export-ignore
66
/phpstan.neon export-ignore
77
/phpunit.xml.dist export-ignore
8-
/psalm.xml.dist export-ignore
8+
/psalm.xml export-ignore
99
/psalm-baseline.xml export-ignore
1010
/tests/ export-ignore

.github/workflows/coding-standards.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
coding-standards:
1313
name: "Coding Standards"
14-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.1.1"
14+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.3.0"
1515
with:
16-
php-version: '7.4'
16+
php-version: '8.0'
17+
composer-options: '--prefer-dist --ignore-platform-req=php'

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@1.1.1"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@1.3.0"
1212
secrets:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}

.github/workflows/static-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
static-analysis:
1313
name: "Static Analysis"
14-
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.1.1"
14+
uses: "doctrine/.github/.github/workflows/static-analysis.yml@1.3.0"
1515
with:
16-
php-version: '7.4'
16+
php-version: '8.0'
17+
composer-options: '--prefer-dist --ignore-platform-req=php'

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
/composer.lock
55
/phpcs.xml
66
/phpunit.xml
7-
/psalm.xml
87
/vendor/

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@
6666
"require-dev": {
6767
"doctrine/coding-standard": "^9.0.0",
6868
"doctrine/orm": "^2.10.2",
69-
"jangregor/phpstan-prophecy": "^0.8.1",
69+
"jangregor/phpstan-prophecy": "^1.0.0",
7070
"laminas/laminas-i18n": "^2.11.3",
7171
"laminas/laminas-log": "^2.13.1",
7272
"laminas/laminas-mvc-console": "^1.3.0",
7373
"laminas/laminas-serializer": "^2.11.0",
7474
"laminas/laminas-session": "^2.12.0",
7575
"laminas/laminas-test": "^3.5.1",
7676
"phpspec/prophecy-phpunit": "^2.0.1",
77-
"phpstan/phpstan": "^0.12.99",
78-
"phpstan/phpstan-phpunit": "^0.12.22",
77+
"phpstan/phpstan": "^1.1.2",
78+
"phpstan/phpstan-phpunit": "^1.0.0",
7979
"phpunit/phpunit": "^9.5.10",
8080
"predis/predis": "^1.1.9",
8181
"vimeo/psalm": "^4.11.2"

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ parameters:
77
- src/Form/Element/ObjectMultiCheckboxV2Polyfill.php
88
- src/Form/Element/ObjectRadioV2Polyfill.php
99
- src/Form/Element/ObjectSelectV2Polyfill.php
10+
ignoreErrors:
11+
-
12+
message: '#Property DoctrineModule\\Module::\$serviceManager is never read, only written.#'
13+
path: src/Module.php
1014
includes:
1115
- vendor/phpstan/phpstan-phpunit/rules.neon
1216
- vendor/jangregor/phpstan-prophecy/extension.neon

psalm.xml.dist renamed to psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="5"
4+
phpVersion="8.0"
45
resolveFromConfigFile="true"
56
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
67
xmlns="https://getpsalm.org/schema/config"

src/Form/Element/Proxy.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Laminas\Stdlib\Guard\ArrayOrTraversableGuardTrait;
1313
use ReflectionMethod;
1414
use RuntimeException;
15-
use Traversable;
1615

1716
use function array_change_key_case;
1817
use function array_key_exists;
@@ -35,7 +34,7 @@ class Proxy implements ObjectManagerAwareInterface
3534
{
3635
use ArrayOrTraversableGuardTrait;
3736

38-
/** @var mixed[]|Traversable */
37+
/** @var mixed[] */
3938
protected $objects;
4039

4140
/** @var ?string */

tests/Form/Element/ProxyAwareElementTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ProxyAwareElementTestCase extends TestCase
2222
/** @var MockObject&ClassMetadata */
2323
protected $metadata;
2424

25-
/** @var MockObject */
25+
/** @var object */
2626
protected $element;
2727

2828
/** @var ArrayCollection */

0 commit comments

Comments
 (0)