There was an error while loading. Please reload this page.
1 parent 57187b1 commit 990c355Copy full SHA for 990c355
en/development/configuration.rst
@@ -648,7 +648,7 @@ reader for you application::
648
App::uses('Xml', 'Utility');
649
class MyXmlReader implements ConfigReaderInterface {
650
public function __construct($path = null) {
651
- if (!$path) {
+ if ($path === null) {
652
$path = APP . 'Config' . DS;
653
}
654
$this->_path = $path;
@@ -660,7 +660,7 @@ reader for you application::
660
661
662
// As of 2.3 a dump() method is also required
663
- public function dump($key, $data) {
+ public function dump($key, array $data) {
664
// code to dump data to file
665
666
0 commit comments