You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the PHP DocBlock for the method \Cascade\Cascade::fileConfig() "array" is missing as a valid type for $resource, as the param descriptions states.
/** * Load configuration options from a file or a string * * @param string $resource Path to config file or string or array */publicstaticfunctionfileConfig($resource)
{
self::$config = newConfig($resource, newConfigLoader());
self::$config->load();
self::$config->configure();
}
Maybe there should be another method which only expects an array, which is called something like "setConfig"(?)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. The doc needs to be fixed indeed.
Regarding your other point. I'm aware of this. I started with a config file then extended to more resource types.
I'll fix that when I get a chance or feel free to shoot a PR 😁
In the PHP DocBlock for the method \Cascade\Cascade::fileConfig() "array" is missing as a valid type for $resource, as the param descriptions states.
Maybe there should be another method which only expects an array, which is called something like "setConfig"(?)
The text was updated successfully, but these errors were encountered: