Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class PageController
];
```
### ⚠️ Known Limitations / Известные ограничения

>When using nested arrays (in curly braces `{}`), ensure that the values do not contain the array assignment symbol (`:`). The parser uses simple splitting by this symbol and does not escape it inside quotes. String values (with `=`) are handled correctly even if they contain multiple `=` symbols.

>При использовании вложенных массивов (в фигурных скобках `{}`) убедитесь, что **значения не содержат символ присваивания массива** (`:`). Парсер использует простое разделение по этому символу и не экранирует его внутри кавычек. Строковые значения (с `=`) обрабатываются корректно, даже если они содержат несколько символов `=`.
Expand All @@ -138,6 +137,16 @@ class PageController
* @Config(settings={url:'http://site.com:8080'})
*/
```
> **Note:** These limitations apply only to legacy annotations. PHP 8+ attributes do not have these restrictions.

> **Примечание:** Эти ограничения касаются только устаревших аннотаций. Атрибуты PHP 8+ не имеют этих ограничений.

**✅ All cases work correctly / Все случаи работают корректно:**
```php
#[Config(settings: ['theme' => 'dark', 'lang' => 'ru'])]
#[Routing(url: 'http://site.com?a=1&b=2')]
#[Config(settings: ['url' => 'http://site.com:8080'])] // ✅ Works!
```
## License

This project is licensed under the **Mozilla Public License 2.0 (MPL-2.0)** — a free, open-source license that:
Expand Down
Loading