laminas / laminas-di

Automated dependency injection for PSR-11 containers
https://docs.laminas.dev/laminas-di/
BSD 3-Clause "New" or "Revised" License
36 stars 20 forks source link

Generator trait produces incorrect exception message for invalid directory paths #40

Closed sjokkateer closed 2 years ago

sjokkateer commented 2 years ago
Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

Within the GeneratorTrait::ensureDirectory it is possible to get back an exception message containing an incorrect directory name. This test plus modification should ensure the directory that could not be created is returned in the error message.