Skip to content

Compatible error in ActionMapping::action() #30

@UnnikrishnanBhargavakurup

Description

I'm getting the following error when I tried to implement ActionMapping.

MyActionMapping::action() must be compatible with Tgallice\\Wit\\ActionMapping::action($sessionId, $actionName, Tgallice\\Wit\\Model\\Context $context, array $entities = Array)

I implemented the function as you mentioned in the example:

public function action($sessionId, Context $context, Action $step)

Also i tried

public function action($sessionId, $actionName, \Tgallice\Wit\Model\Context $context, $entities = array()

What could be wrong here? My php version is 5.6.27

Thanks,
Unnikrishnan B.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions