Because of #2904467: Plugins do not preserve integer keys when parsing annotations the core plugin system does not support using integer keys in annotations. We need to rework how services are defined so that they do not get parsed as integer keys. It would be helpful to have a utility to handle this now, but remove the utility if the linked issue is resolved in core at a later date.

Comments

andyg5000 created an issue. See original summary.

andyg5000’s picture

Status: Active » Needs review
StatusFileSize
new3.24 KB
joelpittet’s picture

@andyg5000, could you just use numeric values and pad them to 2 to avoid the introduction of an extra workaround construct "_"?

https://secure.php.net/str_pad

joelpittet’s picture

Scratch that, discussed in slack. Could you just reference to remove this once the core issue is committed.

  • andyg5000 committed 958de26 on 8.x-3.x
    Issue #2904477 by andyg5000, joelpittet: Annotations do not support...
andyg5000’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.