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

PHP 8.2 | Detect DNF types in all type declaration related sniffs #1714

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 24, 2024

Composer: raise the minimum supported PHPCS + PHPCSUtils versions

Up the minimum supported PHPCS version to 3.10.0 and the minimum supported PHPCSUtils version to 1.0.12 to benefit from improved PHP 8.2 syntax support (Disjunctive Normal Types).

Includes updating references to the PHPCS version whenever relevant throughout the codebase.

PHP 8.2 | FunctionDeclarations/NewParamTypeDeclarations: detect DNF types

Type System Improvements

It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:

PHP 8.2 | FunctionDeclarations/NewReturnTypeDeclarations: detect DNF types

Type System Improvements

It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:

PHP 8.2 | Classes/NewTypedProperties: detect DNF types

Type System Improvements

It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:

Related to #1348

jrfnl added 4 commits May 24, 2024 17:42
Up the minimum supported PHPCS version to 3.10.0 and the minimum supported PHPCSUtils version to 1.0.12 to benefit from improved PHP 8.2 syntax support (Disjunctive Normal Types).

Includes updating references to the PHPCS version whenever relevant throughout the codebase.
…ypes

> Type System Improvements
>
> It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:
* https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.type-system
* https://wiki.php.net/rfc/dnf_types
* php/php-src 8725
* php/php-src@f905590
…types

> Type System Improvements
>
> It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:
* https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.type-system
* https://wiki.php.net/rfc/dnf_types
* php/php-src 8725
* php/php-src@f905590
> Type System Improvements
>
> It is now possible to combine intersection and union types. The type needs to be written in DNF.

This updates the sniff to detect DNF types.

Includes unit tests.

Refs:
* https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.type-system
* https://wiki.php.net/rfc/dnf_types
* php/php-src 8725
* php/php-src@f905590
@wimg wimg merged commit 5a0ad8d into develop Jun 7, 2024
46 checks passed
@wimg wimg deleted the php-8.2/detect-dnf-types branch June 7, 2024 09:46
@github-actions github-actions bot removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants