-
Notifications
You must be signed in to change notification settings - Fork 62
Bad prototype #74
Comments
@remicollet isn't this technically a BC break in PHP 7.2? Did the signature change recently, or is the engine just being more strict about it? |
Yes the engine is more strict in 7.2 |
CC-ing in also @saramg: this is a subtle BC break. |
CC-ing in also @sgolemon: this is a subtle BC break. |
You're always welcome to reopen the discussion (I say reopen, because this kind of BC break was discussed and accepted as reasonable). However IMO ZF is broken here and should reflect upon its life choices. |
This is fixed with the 2.8.0 release. |
I put "&" at offsetGet function and found for me: //Zend/Session/AbstractContainer.php line 425 |
Perfect! |
Running zend-test test suite against php 7.2
PHP Fatal error: Declaration of Zend\Session\AbstractContainer::offsetGet($key) must be compatible with & Zend\Stdlib\ArrayObject::offsetGet($key) in ...
Indeed in Zend/Stdlib/ArrayObject.php
public function &offsetGet($key)
and in Zend/Session/AbstractContainer.php
public function offsetGet($key)
yes, really early report ;)
The text was updated successfully, but these errors were encountered: