Skip to content

Commit c1d9752

Browse files
author
github-ci
committed
add CI
1 parent b0a3307 commit c1d9752

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/phpunit.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PHPUnit Test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
phpunit:
6+
name: PHP-${{ matrix.php_version }}-${{ matrix.prefer }}
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
php_version:
12+
- 8.2
13+
- 8.3
14+
- 8.4
15+
prefer:
16+
- stable
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php_version }}
23+
ini-values: zend.assertions=1, assert.exception=1
24+
coverage: none
25+
- name: Install Dependencies
26+
run: composer update --prefer-dist --no-interaction --no-suggest --prefer-${{ matrix.prefer }}
27+
- name: Run PHPUnit
28+
run: ./vendor/bin/phpunit tests

src/Storage/AstStorage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ private function storeChildNodes(Node $node, int $fileId, int $nodeId, ?Node\Stm
8080
{
8181
$childPosition = 0;
8282
foreach ($node->getSubNodeNames() as $subNodeName) {
83-
/** @phpstan-ignore-next-line property.dynamicName */
8483
$subNode = $node->{$subNodeName};
8584
$childPosition = $this->processSubNode($subNode, $fileId, $nodeId, $childPosition, $currentNamespace);
8685
}

0 commit comments

Comments
 (0)