Skip to content

#6840 Report useless array filter #1076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
pull_request:
push:
branches:
- "master"
- "**"

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
backward-compatibility:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/compiler-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
pull_request:
push:
branches:
- "master"
- "**"

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
compiler-tests:
Expand Down Expand Up @@ -48,20 +48,20 @@ jobs:
integration-tests:
if: github.event_name == 'pull_request'
needs: compiler-tests
uses: phpstan/phpstan/.github/workflows/integration-tests.yml@master
uses: phpstan/phpstan/.github/workflows/integration-tests.yml@1.5.x
with:
ref: master
ref: 1.5.x

extension-tests:
if: github.event_name == 'pull_request'
needs: compiler-tests
uses: phpstan/phpstan/.github/workflows/extension-tests.yml@master
uses: phpstan/phpstan/.github/workflows/extension-tests.yml@1.5.x
with:
ref: master
ref: 1.5.x

other-tests:
if: github.event_name == 'pull_request'
needs: compiler-tests
uses: phpstan/phpstan/.github/workflows/other-tests.yml@master
uses: phpstan/phpstan/.github/workflows/other-tests.yml@1.5.x
with:
ref: master
ref: 1.5.x
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
- 'compiler/**'
push:
branches:
- "master"
- "**"
paths-ignore:
- 'compiler/**'

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
result-cache-e2e-tests:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
pull_request:
push:
branches:
- "master"
- "**"

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
lint:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: "Compile PHAR"
on:
push:
branches:
- "master"
- "1.5.x"
tags:
- '1.*'
- '1.5.*'

concurrency: phar

Expand Down Expand Up @@ -53,6 +53,7 @@ jobs:
repository: phpstan/phpstan
path: phpstan-dist
token: ${{ secrets.PAT }}
ref: 1.5.x

- name: "cp PHAR"
run: cp tmp/phpstan.phar phpstan-dist/phpstan.phar
Expand All @@ -79,20 +80,20 @@ jobs:
git config user.email "[email protected]" && \
git config user.name "Ondrej Mirtes"

- name: "Commit PHAR - master"
- name: "Commit PHAR - development"
working-directory: phpstan-dist
if: "!startsWith(github.ref, 'refs/tags/')"
run: |
git add phpstan.phar phpstan.phar.asc && \
git commit -S -m "Updated PHPStan to commit ${{ github.event.after }}" -m "${{ steps.git-log.outputs.log }}" && \
git push --quiet origin master
git push --quiet origin 1.5.x

- name: "Commit PHAR - tag"
working-directory: phpstan-dist
if: "startsWith(github.ref, 'refs/tags/')"
run: |
git add phpstan.phar phpstan.phar.asc && \
git commit -S -m "PHPStan ${GITHUB_REF#refs/tags/}" -m "${{ steps.git-log.outputs.log }}" && \
git push --quiet origin master && \
git push --quiet origin 1.5.x && \
git tag -s ${GITHUB_REF#refs/tags/} -m "${GITHUB_REF#refs/tags/}" && \
git push --quiet origin ${GITHUB_REF#refs/tags/}
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
- 'compiler/**'
push:
branches:
- "master"
- "**"
paths-ignore:
- 'compiler/**'

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
static-analysis:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
- 'compiler/**'
push:
branches:
- "master"
- "**"
paths-ignore:
- 'compiler/**'

env:
COMPOSER_ROOT_VERSION: "1.4.x-dev"
COMPOSER_ROOT_VERSION: "1.5.x-dev"

jobs:
tests:
Expand Down
22 changes: 11 additions & 11 deletions build-cs/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading