yaf icon indicating copy to clipboard operation
yaf copied to clipboard

'Yaf_Exception_TypeError' with message 'Expects a string or an array as parameter'

Open elad-yosifon opened this issue 11 years ago • 1 comments

<?php
const APPLICATION_PATH = __DIR__;
$api  = new Yaf_Application(APPLICATION_PATH);
$api->bootstrap()->run();

this code throws the following error..

Fatal error: Uncaught exception 'Yaf_Exception_TypeError' with message 'Expects a string or an array as parameter' in .....

This error message is some what misleading... I'm obviously providing a string in arg#1...

The error message should say something like this...

Expects a path to application.ini file as a string or a configuration array as parameter

elad-yosifon avatar Sep 12 '13 09:09 elad-yosifon

是个bug

letwang avatar Jun 12 '19 02:06 letwang