Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
36e4930d
Commit
36e4930d
authored
Jun 09, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #3669: added note about using ArrayHelper::getValue with objects
parent
9c92600b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
BaseArrayHelper.php
framework/helpers/BaseArrayHelper.php
+2
-1
No files found.
framework/helpers/BaseArrayHelper.php
View file @
36e4930d
...
@@ -162,7 +162,8 @@ class BaseArrayHelper
...
@@ -162,7 +162,8 @@ class BaseArrayHelper
* @param string|\Closure $key key name of the array element, or property name of the object,
* @param string|\Closure $key key name of the array element, or property name of the object,
* or an anonymous function returning the value. The anonymous function signature should be:
* or an anonymous function returning the value. The anonymous function signature should be:
* `function($array, $defaultValue)`.
* `function($array, $defaultValue)`.
* @param mixed $default the default value to be returned if the specified key does not exist
* @param mixed $default the default value to be returned if the specified array key does not exist. Not used when
* getting value from an object.
* @return mixed the value of the element if found, default value otherwise
* @return mixed the value of the element if found, default value otherwise
* @throws InvalidParamException if $array is neither an array nor an object.
* @throws InvalidParamException if $array is neither an array nor an object.
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment