Skip to content
Commit 68f07d3a authored by Matthijs Tijink's avatar Matthijs Tijink Committed by Alexander Zhigalin
Browse files

Add return typehint support for PHP language

Summary: This diff adds support for php return typehints (e.g. `function foo(): string`) to the parser. Nothing is done yet to use this in the TypeBuilder, that will come later.

Test Plan: The newly added test checks if the return typehint is correctly tokenized. Parsing itself is not tested, but the old tests work (so no regressions) and opening files with return typehints now works without parse errors. Tests will be added after using the return typehints in the TypeBuilder.

Reviewers: #kdevelop, pprkut, zhigalin

Subscribers: zhigalin, kdevelop-devel, #kdevelop

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D6643
parent 7a6c8299
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment