Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ArrayRepository always overwrites entries when adding #402

Open
edglev opened this issue Mar 4, 2024 · 0 comments
Open

[Bug] ArrayRepository always overwrites entries when adding #402

edglev opened this issue Mar 4, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@edglev
Copy link

edglev commented Mar 4, 2024

What are you really trying to do?

Prevent multiple activities with the same name

Describe the bug

Registering multiples of the same activity does not throw ERROR_ALREADY_EXISTS.

ArrayRepostiory's add method checks a non-existing array with isset($this->prototypes[$name]) and is always false, overwriting entries regardless of $overwrite argument specified

@edglev edglev added the Bug Something isn't working label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant