Bug 439583

Summary: PHP 8.0: Union types
Product: [Applications] kdevelop Reporter: Jan Pavlicek <jan.pavlicek>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist CC: pprkut
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In: 5.12.231200
Sentry Crash Report:

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