@@ -75,6 +75,9 @@ discard block |
||
75 | 75 | */ |
76 | 76 | private $configurationCache = []; |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $configsPath |
|
80 | + */ |
|
78 | 81 | public function __construct(EventDispatcherInterface $dispatcher, Cache $metadataCache, $configsPath = null) |
79 | 82 | { |
80 | 83 | $this->metadataCache = $metadataCache; |
@@ -175,6 +178,9 @@ discard block |
||
175 | 178 | return new Meta($this, $value, $this->getConfigurationForValue($value)); |
176 | 179 | } |
177 | 180 | |
181 | + /** |
|
182 | + * @return boolean |
|
183 | + */ |
|
178 | 184 | public function isSupported($value) |
179 | 185 | { |
180 | 186 | if (!is_object($value)) { |
@@ -312,7 +318,7 @@ discard block |
||
312 | 318 | } |
313 | 319 | |
314 | 320 | /** |
315 | - * @param array $keys |
|
321 | + * @param string[] $keys |
|
316 | 322 | * |
317 | 323 | * @return string |
318 | 324 | */ |
@@ -344,7 +350,7 @@ discard block |
||
344 | 350 | /** |
345 | 351 | * @param string $id |
346 | 352 | * |
347 | - * @return null|true |
|
353 | + * @return null|boolean |
|
348 | 354 | */ |
349 | 355 | public function restoreTemporaryUnset($id) |
350 | 356 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | class ContainerExtension extends AbstractExtension |
24 | 24 | { |
25 | 25 | /** |
26 | - * @return array|\Twig\TokenParser\TokenParserInterface[] |
|
26 | + * @return ContainerTokenParser[] |
|
27 | 27 | */ |
28 | 28 | public function getTokenParsers() |
29 | 29 | { |
@@ -79,22 +79,22 @@ |
||
79 | 79 | public function getFilters() |
80 | 80 | { |
81 | 81 | return [ |
82 | - new TwigFilter('start', function ($node, $value) { |
|
82 | + new TwigFilter('start', function($node, $value) { |
|
83 | 83 | $node['_collection_type_filters']['start'] = $value; |
84 | 84 | |
85 | 85 | return $node; |
86 | 86 | }, ['needs_context' => false]), |
87 | - new TwigFilter('limit', function ($node, $value) { |
|
87 | + new TwigFilter('limit', function($node, $value) { |
|
88 | 88 | $node['_collection_type_filters']['limit'] = $value; |
89 | 89 | |
90 | 90 | return $node; |
91 | 91 | }, ['needs_context' => false]), |
92 | - new TwigFilter('order', function ($node, $value1, $value2) { |
|
92 | + new TwigFilter('order', function($node, $value1, $value2) { |
|
93 | 93 | $node['_collection_type_filters']['order'][] = [$value1, $value2]; |
94 | 94 | |
95 | 95 | return $node; |
96 | 96 | }, ['needs_context' => false]), |
97 | - new TwigFilter('dateRange', function ($node, $value1, $value2) { |
|
97 | + new TwigFilter('dateRange', function($node, $value1, $value2) { |
|
98 | 98 | $node['_collection_type_filters']['date_range'] = [$value1, $value2]; |
99 | 99 | |
100 | 100 | return $node; |