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

Use addAttributes() instead of addAnnotations() with php-di 7.0 #16

Merged
merged 2 commits into from Apr 10, 2024

Conversation

surreal30
Copy link
Contributor

While I was following the guide https://kevinsmith.io/modern-php-without-a-framework/, I came across a bug. When you use composer require php-di/php-di composer installs php-di version 7.0. As of version 7.0 addAnnotations() has been replaced by addAttributes().

I have updated php-di version of this repo and fixed the function in the two commits.

@kevinsmith
Copy link
Owner

Thank you @surreal30!

@kevinsmith kevinsmith merged commit 17623d9 into kevinsmith:master Apr 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants