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 Psalm with language level PHP 8.1 #5417

Merged
merged 1 commit into from
May 31, 2022
Merged

Conversation

morozov
Copy link
Member

@morozov morozov commented May 31, 2022

The static analysis builds recently started failing after the Symfony Console 6.1 release (example). It uses the PHP 8.1 syntax, it is compatible with the runtime PHP version which Composer uses to resolve the dependency constraints but Psalm assumes the PHP 7.3 syntax according to composer.json.

The ORM uses the same approach to configuring Psalm: doctrine/orm#9314.

@morozov morozov requested a review from greg0ire May 31, 2022 14:10
@morozov morozov added this to the 3.3.7 milestone May 31, 2022
Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do the same for PHPStan.

@morozov
Copy link
Member Author

morozov commented May 31, 2022

Unlike the ORM, the PHPStan configuration for the DBAL doesn't specify a PHP version and I don't know what it defaults to. That's why I decided not to add it here.

@morozov morozov merged commit 0ac55a0 into doctrine:3.3.x May 31, 2022
@morozov morozov deleted the psalm-php-8.1 branch May 31, 2022 15:37
rgrellmann added a commit to Rossmann-IT/dbal that referenced this pull request Jul 13, 2022
Release [3.3.7](https://github.com/doctrine/dbal/milestone/114)

3.3.7
=====

- Total issues resolved: **1**
- Total pull requests resolved: **8**
- Total contributors: **6**

Code Style,Static Analysis
--------------------------

 - [5444: PHP CodeSniffer 3.7, PHPStan 1.7.13](doctrine#5444) thanks to @derrabus

Static Analysis
---------------

 - [5426: PHPStan 1.7.9](doctrine#5426) thanks to @derrabus
 - [5417: Run Psalm with language level PHP 8.1](doctrine#5417) thanks to @morozov

Documentation,Type Mapping
--------------------------

 - [5415: Update documentation for the `guid` type](doctrine#5415) thanks to @kaznovac

Bug,PostgreSQL,Schema Management
--------------------------------

 - [5395: Check integer types via PhpIntegerMappingType](doctrine#5395) thanks to @morozov and @umherirrender

Bug,PHP,PostgreSQL
------------------

 - [5381: Fix using deprecated syntax](doctrine#5381) thanks to @nicolas-grekas

Documentation
-------------

 - [5379: Refresh docs about transactions](doctrine#5379) thanks to @greg0ire

CI
--

 - [5374: Remove CA bundle from AppVeyor](doctrine#5374) thanks to @morozov

# gpg: Signature made Fri Jun 17 09:51:42 2022
# gpg:                using DSA key 1BEDEE0A820BC30D858F9F0C2C3A645671828132
# gpg: Can't check signature: No public key
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants