"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Core/StaticConfigTrait.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

StaticConfigTrait.php  (cakephp-4.0.1):StaticConfigTrait.php  (cakephp-4.0.2)
skipping to change at line 175 skipping to change at line 175
return true; return true;
} }
/** /**
* Returns an array containing the named configurations * Returns an array containing the named configurations
* *
* @return string[] Array of configurations. * @return string[] Array of configurations.
*/ */
public static function configured(): array public static function configured(): array
{ {
return array_keys(static::$_config); $configurations = array_keys(static::$_config);
return array_map(function ($key) {
return (string)$key;
}, $configurations);
} }
/** /**
* Parses a DSN into a valid connection configuration * Parses a DSN into a valid connection configuration
* *
* This method allows setting a DSN using formatting similar to that used by PEAR::DB. * This method allows setting a DSN using formatting similar to that used by PEAR::DB.
* The following is an example of its usage: * The following is an example of its usage:
* *
* ``` * ```
* $dsn = 'mysql://user:pass@localhost/database?'; * $dsn = 'mysql://user:pass@localhost/database?';
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)