[PR #667] [CLOSED] DQL: Allow parameter name to start with any allowed character #8523

Open
opened 2026-01-22 16:00:19 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/667
Author: @juzna
Created: 5/13/2013
Status: Closed

Base: masterHead: fix/dql-param-names


📝 Commits (1)

  • 499372b DQL: Allow parameter name to start with any allowed character

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Query/Lexer.php (+1 -1)

📄 Description

Especially, do not require it to start with a letter. A number is good enough as well. Why is was it not enabled anyway?

It's most useful when parameter names are auto generated, e.g. using sha1 or md5.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/667 **Author:** [@juzna](https://github.com/juzna) **Created:** 5/13/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/dql-param-names` --- ### 📝 Commits (1) - [`499372b`](https://github.com/doctrine/orm/commit/499372b4488efe173b36ed71ac5022ed27bc718f) DQL: Allow parameter name to start with any allowed character ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Query/Lexer.php` (+1 -1) </details> ### 📄 Description Especially, do not require it to start with a letter. A **number** is good enough as well. Why is was it not enabled anyway? It's most useful when parameter names are auto generated, e.g. using sha1 or md5. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:00:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8523