Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reate_framework] Fix mock $matcher #5528

Merged
merged 1 commit into from
Jul 28, 2015
Merged

[reate_framework] Fix mock $matcher #5528

merged 1 commit into from
Jul 28, 2015

Conversation

kenjis
Copy link
Contributor

@kenjis kenjis commented Jul 16, 2015

We need getContext method, otherwise we get:

Fatal error: Call to a member function fromRequest() on a non-object in /Users/kenji/work/framework/src/Simplex/Framework.php on line 24

line 24:

$this->matcher->getContext()->fromRequest($request);

@wouterj
Copy link
Member

wouterj commented Jul 28, 2015

Another great fix, thanks again @kenjis!

@wouterj wouterj merged commit 1103e00 into symfony:2.3 Jul 28, 2015
wouterj added a commit that referenced this pull request Jul 28, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[reate_framework] Fix mock $matcher

We need `getContext` method, otherwise we get:

> Fatal error: Call to a member function fromRequest() on a non-object in /Users/kenji/work/framework/src/Simplex/Framework.php on line 24

line 24:
~~~php
$this->matcher->getContext()->fromRequest($request);
~~~

Commits
-------

1103e00 Fix mock $matcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants