Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
7945ed24
Commit
7945ed24
authored
Aug 21, 2013
by
Dorian Villet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add type hints for dynamically-created instances.
parent
1c8a10c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
...ry/Solarium/QueryType/Select/Query/Component/FacetSet.php
+1
-0
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
...um/QueryType/Select/ResponseParser/Component/FacetSet.php
+1
-0
No files found.
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
View file @
7945ed24
...
...
@@ -453,6 +453,7 @@ class FacetSet extends Component
$class
=
$this
->
facetTypes
[
$type
];
if
(
is_string
(
$options
))
{
/** @var \Solarium\QueryType\Select\Query\Component\Facet\Facet $facet */
$facet
=
new
$class
;
$facet
->
setKey
(
$options
);
}
else
{
...
...
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
View file @
7945ed24
...
...
@@ -92,6 +92,7 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
foreach
(
$facets
as
$k
=>
$facet
)
{
$facetObject
=
$facetSet
->
$method
(
$k
);
if
(
$key
==
'facet_pivot'
)
{
/** @var \Solarium\QueryType\Select\Query\Component\Facet\Pivot $facetObject */
$facetObject
->
setFields
(
$k
);
}
}
...
...
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