Skip to content

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.
…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
@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
@jrfnl jrfnl added the PHP: 8.2 label Nov 4, 2025
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.

3 participants