# Tiny correction to type hinting patch

- Thread: https://externals.io/message/44631
- Original archive: https://news-web.php.net/php.internals/44631
- Started by Gwynne Raskind on 2009-07-02T10:26:11+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #44631 — Gwynne Raskind — 2009-07-02T10:26:11+00:00

URL: https://externals.io/message/44631#44631

In Ilia's type hinting patch, on line 255, is the line:

+<ST_IN_SCRIPTING>"string"|"binary"|"unicode" {

This failed for me. I fixed it by changing it to:

+<ST_IN_SCRIPTING>("string"|"binary"|"unicode") {

Which matches all the other lexing rules for type hints. My  
understanding of the lexer is insufficient to understand why this  
particular set of parenthesis makes any difference at all, but there  
you have it.

-- Gwynne
