You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this method is meant to returns an Phalcon\Translate\Interpolator\InterpolatorInterface instance. This leads to a fatal error:
PHP Fatal error:
Return value of Phalcon\Translate\InterpolatorFactory::newInstance()
must implement interface Phalcon\Translate\Adapter\AdapterInterface,
instance of Phalcon\Translate\Interpolator\AssociativeArray returned in Unknown on line 0
The text was updated successfully, but these errors were encountered:
sergeyklay
changed the title
[BUG]: Wrong return type for Phalcon\Translate\InterpolatorFactory::newInstance
[BUG]: Wrong return type hint for Phalcon\Translate\InterpolatorFactory::newInstance
May 3, 2020
Phalcon\Translate\InterpolatorFactory::newInstance
has incorrect return type hint:cphalcon/phalcon/Translate/InterpolatorFactory.zep
Lines 39 to 48 in 24857a7
But this method is meant to returns an
Phalcon\Translate\Interpolator\InterpolatorInterface
instance. This leads to a fatal error:The text was updated successfully, but these errors were encountered: