Welcome Guest, Not a member yet? Register   Sign In
PHP7 and remapping method calls
#1

(This post was last modified: 05-01-2016, 03:28 PM by ivantcholakov. Edit Reason: Badly copied codesnippets )

See this section of the manual:

http://www.codeigniter.com/user_guide/ge...thod-calls

Currently the method _remap() within the manual is shown in three possible signatures, on the extended classes:

Code:
public function _remap()
public function _remap($method)
public function _remap($method, $params = array())

If you use the first two declarations, on PHP7 a "should be compatible" warning will appear. I think, the third declaration always should be used on extender classes, nevertheless the parameters are used.

Code:
public function _remap($method, $params = array())

The manual needs a update about this.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB