Bug 439583 - PHP 8.0: Union types
Summary: PHP 8.0: Union types
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: git master
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-07 07:47 UTC by Jan Pavlicek
Modified: 2023-07-22 08:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.12.231200


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pavlicek 2021-07-07 07:47:44 UTC
SUMMARY

"Subset" of 437992.

KDevelop should support this new PHP8 feature - union types. This feature allows defining multiple types for argument, funcion return value or class property types.

https://wiki.php.net/rfc/union_types_v2
Comment 1 Heinz Wiesinger 2023-07-22 08:21:19 UTC
Git commit a42c9da2d92ab6bf906df59b48dffa276fc13a34 by Heinz Wiesinger.
Committed on 21/07/2023 at 14:22.
Pushed by wiesinger into branch 'master'.

Add support for PHP 8.0's union types

M  +4    -23   duchain/builders/declarationbuilder.cpp
M  +1    -1    duchain/builders/declarationbuilder.h
M  +10   -0    duchain/builders/typebuilder.cpp
M  +8    -14   duchain/builders/usebuilder.cpp
M  +1    -2    duchain/builders/usebuilder.h
M  +16   -15   duchain/expressionvisitor.cpp
M  +1    -0    duchain/expressionvisitor.h
M  +162  -67   duchain/helper.cpp
M  +8    -2    duchain/helper.h
M  +144  -0    duchain/tests/duchain.cpp
M  +6    -0    duchain/tests/duchain.h
M  +106  -0    duchain/tests/uses.cpp
M  +5    -0    duchain/tests/uses.h
M  +37   -14   parser/php.g

https://invent.kde.org/kdevelop/kdev-php/-/commit/a42c9da2d92ab6bf906df59b48dffa276fc13a34