Skip to content
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

Run static analysis with language level PHP 8.1 #9314

Merged
merged 1 commit into from
Jan 2, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jan 1, 2022

Continuation of #9310

While PHP 7.1 is the lowest supported version, the repository contains features that require a more recent PHP version and we are currently hardly able to run static analysis on those parts.

Letting the static analysis tools operate on PHP 7.1 as language level causes unnecessary pain and barely spots real issues. Especially Psalm has a history of reporting funny errors if the dependencies are on a higher language level. I'd suggest to let the test suite cover PHP 7.1 support and let the SA tools operate on PHP 8.1 instead.

@derrabus derrabus merged commit 44aa8c2 into doctrine:2.10.x Jan 2, 2022
@derrabus derrabus deleted the sa/language-level-8.1 branch January 2, 2022 17:01
derrabus added a commit to derrabus/orm that referenced this pull request Jan 2, 2022
* 2.10.x:
  Run static analysis with language level PHP 8.1 (doctrine#9314)
  Document PHPUnit mocks with intersection types (doctrine#9318)
derrabus added a commit to derrabus/orm that referenced this pull request Jan 2, 2022
* 2.10.x:
  Run static analysis with language level PHP 8.1 (doctrine#9314)
  Document PHPUnit mocks with intersection types (doctrine#9318)
derrabus added a commit to derrabus/orm that referenced this pull request Jan 2, 2022
* 2.11.x:
  Run static analysis with language level PHP 8.1 (doctrine#9314)
  Document LockMode enums (doctrine#9319)
  Document PHPUnit mocks with intersection types (doctrine#9318)
  Run PHP CodeSniffer on PHP 8.1 (doctrine#9317)
  Psalm 4.17.0 (doctrine#9315)
  Run static analysis on PHP 8.1 (doctrine#9310)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants