Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How can I process the remind "StaticTypeInference=fcall variable "?

public function prepareVersionNo(ver)
{
   var verdata = str_replace(["_", " ", "/"], ".", ver);
   var arrVer = explode(".", verdata, 2);

   if isset arrVer[1]
   {
       let arrVer[1] = str_replace(".", "", arrVer[1]); 

   }

   return implode(".", arrVer);
}

complie remind:

EXT zephir_parser build complete

StaticTypeInference=fcall variable

StaticTypeInference=fcall variable

Copying new kernel files...

Preparing for PHP compilation...

Preparing configuration file...

Compiling...

Installation is not implemented for windows yet! Aborting!

if chang the code:

public function prepareVersionNo(ver)
{
    var verdata = str_replace(["_", " ", "/"], ".", ver);
    var arrVer = explode(".", verdata, 2);

    if isset arrVer[1]
    {
        //let arrVer[1] = str_replace(".", "", arrVer[1]); 
    }

    return implode(".", arrVer);
}

complie remind:

EXT zephir_parser build complete

Copying new kernel files...

Preparing for PHP compilation...

Preparing configuration file...

Compiling...

Installation is not implemented for windows yet! Aborting!

How can I process the remind StaticTypeInference=fcall variable ?



4.0k
Accepted
answer
edited Jun '16

process mothod:

public function prepareVersionNo(ver)
{
  var verdata = str_replace(["_", " ", "/"], ".", ver);
  var arrVer=[];
  let arrVer = explode(".", verdata, 2);

  if isset arrVer[1]
  {
      let arrVer[1] = str_replace(".", "", arrVer[1]); 

  }

  return implode(".", arrVer);
}