We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current implementation of Phalcon\Mvc\Model\MetaData::getDI implies that method must return a Phalcon\Di\DiInterface instance:
Phalcon\Mvc\Model\MetaData::getDI
Phalcon\Di\DiInterface
cphalcon/phalcon/Mvc/Model/MetaData.zep
Lines 279 to 282 in d3e9463
however, MetaData::$container may be NULL:
MetaData::$container
Lines 65 to 67 in d3e9463
This lead to a fatal error:
use Phalcon\Mvc\Model\MetaData\Memory; $metadata = new Memory(); $metadata->getDI();
PHP Fatal error: Return value of Phalcon\Mvc\Model\MetaData::getDI() must implement interface Phalcon\Di\DiInterface, null returned
The problem also is that this class implement InjectionAwareInterface which does not declare this method as nullable:
cphalcon/phalcon/Di/InjectionAwareInterface.zep
Lines 24 to 27 in d3e9463
The text was updated successfully, but these errors were encountered:
Changed MetaData::getDI to throw exception
f62b248
See: #15011
Fixed in 4.0.x branch
Sorry, something went wrong.
8d08fec
sergeyklay
Successfully merging a pull request may close this issue.
The current implementation of
Phalcon\Mvc\Model\MetaData::getDI
implies that method must return aPhalcon\Di\DiInterface
instance:cphalcon/phalcon/Mvc/Model/MetaData.zep
Lines 279 to 282 in d3e9463
however,
MetaData::$container
may be NULL:cphalcon/phalcon/Mvc/Model/MetaData.zep
Lines 65 to 67 in d3e9463
This lead to a fatal error:
The problem also is that this class implement InjectionAwareInterface which does not declare this method as nullable:
cphalcon/phalcon/Di/InjectionAwareInterface.zep
Lines 24 to 27 in d3e9463
The text was updated successfully, but these errors were encountered: