PHP-DI / Slim-Bridge

PHP-DI integration with the Slim framework
http://php-di.org/doc/frameworks/slim.html
MIT License
176 stars 38 forks source link

php8 support? #65

Closed jhmoon2000 closed 3 years ago

jhmoon2000 commented 3 years ago

php 8.0.0 is out now. Could you please update your project so that I can use php-di/slim-bridge?

mnapoli commented 3 years ago

https://github.com/PHP-DI/Slim-Bridge/releases/tag/3.1.0

zabakala commented 3 years ago

Hi. Just upgraded my app to PHP8 as well as slim-bridge to 3.1.0. The following code snippet worked under PHP7 but ceased to work with PHP8:

/**
  * @Inject
  * @var IFoo
  */
 private IFoo $foo;

The stack trace says: foo contains a non existent class "IFoo". Did you maybe forget to add a "use" statement for this annotation?

The composer.json includes among other deps:

"php-di/php-di": "6.3.0"
"slim/slim": "~4.7"
"php-di/slim-bridge": "^3.1.0"
"doctrine/annotations": "^1.11"