Skip to content

Commit 990c355

Browse files
committed
Adhereing to PR cakephp#5230
Harden interface for Config engine classes.
1 parent 57187b1 commit 990c355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/development/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ reader for you application::
648648
App::uses('Xml', 'Utility');
649649
class MyXmlReader implements ConfigReaderInterface {
650650
public function __construct($path = null) {
651-
if (!$path) {
651+
if ($path === null) {
652652
$path = APP . 'Config' . DS;
653653
}
654654
$this->_path = $path;
@@ -660,7 +660,7 @@ reader for you application::
660660
}
661661

662662
// As of 2.3 a dump() method is also required
663-
public function dump($key, $data) {
663+
public function dump($key, array $data) {
664664
// code to dump data to file
665665
}
666666
}

0 commit comments

Comments
 (0)