Skip to content

Conversation

@Setitch
Copy link
Contributor

@Setitch Setitch commented Jun 9, 2016

When i used Slim3 with callables '\App\Controller\Main','mainMethod' when there weren't class loaded, instead of proper error i was getting conversion array to string errors from previous line. This patch fixes the issue by json_encoding the callable before trying to sprintf %s it.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.603% when pulling 784ffa4 on Setitch:3.x into 30cfe3c on slimphp:3.x.

@dopesong
Copy link
Contributor

FILE: /home/travis/build/slimphp/Slim/Slim/CallableResolver.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 82 | WARNING | Line exceeds 120 characters; contains 158 characters
----------------------------------------------------------------------

@akrabat
Copy link
Member

akrabat commented Jul 1, 2016

Can you provide a unit test for this. Also there's a build failure.

@akrabat akrabat added the pending response Waiting on a response from the original poster label Jul 1, 2016
@akrabat akrabat merged commit 784ffa4 into slimphp:3.x Jul 26, 2016
akrabat added a commit that referenced this pull request Jul 26, 2016
@akrabat akrabat added this to the 3.4.3 milestone Jul 26, 2016
@akrabat akrabat changed the title Updated to properly parse error for callables in [$class,$method] format. Fix warning when failing to resolve callables of [$class,$method] format Jul 26, 2016
@akrabat akrabat modified the milestones: 3.5.0, 3.4.3 Jul 26, 2016
@Setitch
Copy link
Contributor Author

Setitch commented Jul 27, 2016

Oh, sorry for no unit testings, i just saw you answered me here:(

@akrabat
Copy link
Member

akrabat commented Jul 27, 2016

No worries :) Thanks for fixing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending response Waiting on a response from the original poster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants