Skip to content

Commit d590bc6

Browse files
committed
Merge branch '3.2'
* 3.2: [FrameworkBundle] Ignore AnnotationException exceptions in the AnnotationsCacheWarmer fixed @return when returning this or static override property constraints in child class removed unneeded comment [Console] improved code coverage of Command class [FrameworkBundle] Make TemplateController working without the Templating component [FrameworkBundle] Allow multiple transactions with the same name Only count on arrays or countables to avoid warnings in PHP 7.2
2 parents 57b166b + b678258 commit d590bc6

File tree

9 files changed

+49
-49
lines changed

9 files changed

+49
-49
lines changed

Definition/Builder/ArrayNodeDefinition.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function enumPrototype()
142142
* If this function has been called and the node is not set during the finalization
143143
* phase, it's default value will be derived from its children default values.
144144
*
145-
* @return ArrayNodeDefinition
145+
* @return $this
146146
*/
147147
public function addDefaultsIfNotSet()
148148
{
@@ -158,7 +158,7 @@ public function addDefaultsIfNotSet()
158158
*
159159
* This method is applicable to prototype nodes only.
160160
*
161-
* @return ArrayNodeDefinition
161+
* @return $this
162162
*/
163163
public function addDefaultChildrenIfNoneSet($children = null)
164164
{
@@ -172,7 +172,7 @@ public function addDefaultChildrenIfNoneSet($children = null)
172172
*
173173
* This method is applicable to prototype nodes only.
174174
*
175-
* @return ArrayNodeDefinition
175+
* @return $this
176176
*/
177177
public function requiresAtLeastOneElement()
178178
{
@@ -186,7 +186,7 @@ public function requiresAtLeastOneElement()
186186
*
187187
* If used all keys have to be defined in the same configuration file.
188188
*
189-
* @return ArrayNodeDefinition
189+
* @return $this
190190
*/
191191
public function disallowNewKeysInSubsequentConfigs()
192192
{
@@ -201,7 +201,7 @@ public function disallowNewKeysInSubsequentConfigs()
201201
* @param string $singular The key to remap
202202
* @param string $plural The plural of the key for irregular plurals
203203
*
204-
* @return ArrayNodeDefinition
204+
* @return $this
205205
*/
206206
public function fixXmlConfig($singular, $plural = null)
207207
{
@@ -236,7 +236,7 @@ public function fixXmlConfig($singular, $plural = null)
236236
* @param string $name The name of the key
237237
* @param bool $removeKeyItem Whether or not the key item should be removed
238238
*
239-
* @return ArrayNodeDefinition
239+
* @return $this
240240
*/
241241
public function useAttributeAsKey($name, $removeKeyItem = true)
242242
{
@@ -251,7 +251,7 @@ public function useAttributeAsKey($name, $removeKeyItem = true)
251251
*
252252
* @param bool $allow
253253
*
254-
* @return ArrayNodeDefinition
254+
* @return $this
255255
*/
256256
public function canBeUnset($allow = true)
257257
{
@@ -273,7 +273,7 @@ public function canBeUnset($allow = true)
273273
* enableableArrayNode: {enabled: false, ...} # The config is disabled
274274
* enableableArrayNode: false # The config is disabled
275275
*
276-
* @return ArrayNodeDefinition
276+
* @return $this
277277
*/
278278
public function canBeEnabled()
279279
{
@@ -303,7 +303,7 @@ public function canBeEnabled()
303303
*
304304
* By default, the section is enabled.
305305
*
306-
* @return ArrayNodeDefinition
306+
* @return $this
307307
*/
308308
public function canBeDisabled()
309309
{
@@ -323,7 +323,7 @@ public function canBeDisabled()
323323
/**
324324
* Disables the deep merging of the node.
325325
*
326-
* @return ArrayNodeDefinition
326+
* @return $this
327327
*/
328328
public function performNoDeepMerging()
329329
{
@@ -343,7 +343,7 @@ public function performNoDeepMerging()
343343
*
344344
* @param bool $remove Whether to remove the extra keys
345345
*
346-
* @return ArrayNodeDefinition
346+
* @return $this
347347
*/
348348
public function ignoreExtraKeys($remove = true)
349349
{
@@ -358,7 +358,7 @@ public function ignoreExtraKeys($remove = true)
358358
*
359359
* @param bool $bool Whether to enable key normalization
360360
*
361-
* @return ArrayNodeDefinition
361+
* @return $this
362362
*/
363363
public function normalizeKeys($bool)
364364
{
@@ -380,7 +380,7 @@ public function normalizeKeys($bool)
380380
*
381381
* @param NodeDefinition $node A NodeDefinition instance
382382
*
383-
* @return ArrayNodeDefinition This node
383+
* @return $this
384384
*/
385385
public function append(NodeDefinition $node)
386386
{

Definition/Builder/EnumNodeDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EnumNodeDefinition extends ScalarNodeDefinition
2525
/**
2626
* @param array $values
2727
*
28-
* @return EnumNodeDefinition|$this
28+
* @return $this
2929
*/
3030
public function values(array $values)
3131
{

Definition/Builder/ExprBuilder.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(NodeDefinition $node)
4040
*
4141
* @param \Closure $then
4242
*
43-
* @return ExprBuilder
43+
* @return $this
4444
*/
4545
public function always(\Closure $then = null)
4646
{
@@ -60,7 +60,7 @@ public function always(\Closure $then = null)
6060
*
6161
* @param \Closure $closure
6262
*
63-
* @return ExprBuilder
63+
* @return $this
6464
*/
6565
public function ifTrue(\Closure $closure = null)
6666
{
@@ -76,7 +76,7 @@ public function ifTrue(\Closure $closure = null)
7676
/**
7777
* Tests if the value is a string.
7878
*
79-
* @return ExprBuilder
79+
* @return $this
8080
*/
8181
public function ifString()
8282
{
@@ -88,7 +88,7 @@ public function ifString()
8888
/**
8989
* Tests if the value is null.
9090
*
91-
* @return ExprBuilder
91+
* @return $this
9292
*/
9393
public function ifNull()
9494
{
@@ -112,7 +112,7 @@ public function ifEmpty()
112112
/**
113113
* Tests if the value is an array.
114114
*
115-
* @return ExprBuilder
115+
* @return $this
116116
*/
117117
public function ifArray()
118118
{
@@ -126,7 +126,7 @@ public function ifArray()
126126
*
127127
* @param array $array
128128
*
129-
* @return ExprBuilder
129+
* @return $this
130130
*/
131131
public function ifInArray(array $array)
132132
{
@@ -140,7 +140,7 @@ public function ifInArray(array $array)
140140
*
141141
* @param array $array
142142
*
143-
* @return ExprBuilder
143+
* @return $this
144144
*/
145145
public function ifNotInArray(array $array)
146146
{
@@ -154,7 +154,7 @@ public function ifNotInArray(array $array)
154154
*
155155
* @param \Closure $closure
156156
*
157-
* @return ExprBuilder
157+
* @return $this
158158
*/
159159
public function then(\Closure $closure)
160160
{
@@ -166,7 +166,7 @@ public function then(\Closure $closure)
166166
/**
167167
* Sets a closure returning an empty array.
168168
*
169-
* @return ExprBuilder
169+
* @return $this
170170
*/
171171
public function thenEmptyArray()
172172
{
@@ -182,7 +182,7 @@ public function thenEmptyArray()
182182
*
183183
* @param string $message
184184
*
185-
* @return ExprBuilder
185+
* @return $this
186186
*
187187
* @throws \InvalidArgumentException
188188
*/
@@ -196,7 +196,7 @@ public function thenInvalid($message)
196196
/**
197197
* Sets a closure unsetting this key of the array at validation time.
198198
*
199-
* @return ExprBuilder
199+
* @return $this
200200
*
201201
* @throws UnsetKeyException
202202
*/

Definition/Builder/MergeBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(NodeDefinition $node)
3737
*
3838
* @param bool $allow
3939
*
40-
* @return MergeBuilder
40+
* @return $this
4141
*/
4242
public function allowUnset($allow = true)
4343
{
@@ -51,7 +51,7 @@ public function allowUnset($allow = true)
5151
*
5252
* @param bool $deny Whether the overwriting is forbidden or not
5353
*
54-
* @return MergeBuilder
54+
* @return $this
5555
*/
5656
public function denyOverwrite($deny = true)
5757
{

Definition/Builder/NodeBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct()
4242
*
4343
* @param ParentNodeDefinitionInterface $parent The parent node
4444
*
45-
* @return NodeBuilder This node builder
45+
* @return $this
4646
*/
4747
public function setParent(ParentNodeDefinitionInterface $parent = null)
4848
{
@@ -182,7 +182,7 @@ public function node($name, $type)
182182
*
183183
* @param NodeDefinition $node
184184
*
185-
* @return NodeBuilder This node builder
185+
* @return $this
186186
*/
187187
public function append(NodeDefinition $node)
188188
{
@@ -207,7 +207,7 @@ public function append(NodeDefinition $node)
207207
* @param string $type The name of the type
208208
* @param string $class The fully qualified name the node definition class
209209
*
210-
* @return NodeBuilder This node builder
210+
* @return $this
211211
*/
212212
public function setNodeClass($type, $class)
213213
{

Definition/Builder/NodeDefinition.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct($name, NodeParentInterface $parent = null)
5656
*
5757
* @param NodeParentInterface $parent The parent
5858
*
59-
* @return NodeDefinition|$this
59+
* @return $this
6060
*/
6161
public function setParent(NodeParentInterface $parent)
6262
{
@@ -70,7 +70,7 @@ public function setParent(NodeParentInterface $parent)
7070
*
7171
* @param string $info The info text
7272
*
73-
* @return NodeDefinition|$this
73+
* @return $this
7474
*/
7575
public function info($info)
7676
{
@@ -82,7 +82,7 @@ public function info($info)
8282
*
8383
* @param string|array $example
8484
*
85-
* @return NodeDefinition|$this
85+
* @return $this
8686
*/
8787
public function example($example)
8888
{
@@ -95,7 +95,7 @@ public function example($example)
9595
* @param string $key
9696
* @param mixed $value
9797
*
98-
* @return NodeDefinition|$this
98+
* @return $this
9999
*/
100100
public function attribute($key, $value)
101101
{
@@ -146,7 +146,7 @@ public function getNode($forceRootNode = false)
146146
*
147147
* @param mixed $value The default value
148148
*
149-
* @return NodeDefinition|$this
149+
* @return $this
150150
*/
151151
public function defaultValue($value)
152152
{
@@ -159,7 +159,7 @@ public function defaultValue($value)
159159
/**
160160
* Sets the node as required.
161161
*
162-
* @return NodeDefinition|$this
162+
* @return $this
163163
*/
164164
public function isRequired()
165165
{
@@ -173,7 +173,7 @@ public function isRequired()
173173
*
174174
* @param mixed $value
175175
*
176-
* @return NodeDefinition|$this
176+
* @return $this
177177
*/
178178
public function treatNullLike($value)
179179
{
@@ -187,7 +187,7 @@ public function treatNullLike($value)
187187
*
188188
* @param mixed $value
189189
*
190-
* @return NodeDefinition|$this
190+
* @return $this
191191
*/
192192
public function treatTrueLike($value)
193193
{
@@ -201,7 +201,7 @@ public function treatTrueLike($value)
201201
*
202202
* @param mixed $value
203203
*
204-
* @return NodeDefinition|$this
204+
* @return $this
205205
*/
206206
public function treatFalseLike($value)
207207
{
@@ -213,7 +213,7 @@ public function treatFalseLike($value)
213213
/**
214214
* Sets null as the default value.
215215
*
216-
* @return NodeDefinition|$this
216+
* @return $this
217217
*/
218218
public function defaultNull()
219219
{
@@ -223,7 +223,7 @@ public function defaultNull()
223223
/**
224224
* Sets true as the default value.
225225
*
226-
* @return NodeDefinition|$this
226+
* @return $this
227227
*/
228228
public function defaultTrue()
229229
{
@@ -233,7 +233,7 @@ public function defaultTrue()
233233
/**
234234
* Sets false as the default value.
235235
*
236-
* @return NodeDefinition|$this
236+
* @return $this
237237
*/
238238
public function defaultFalse()
239239
{
@@ -253,7 +253,7 @@ public function beforeNormalization()
253253
/**
254254
* Denies the node value being empty.
255255
*
256-
* @return NodeDefinition|$this
256+
* @return $this
257257
*/
258258
public function cannotBeEmpty()
259259
{
@@ -281,7 +281,7 @@ public function validate()
281281
*
282282
* @param bool $deny Whether the overwriting is forbidden or not
283283
*
284-
* @return NodeDefinition|$this
284+
* @return $this
285285
*/
286286
public function cannotBeOverwritten($deny = true)
287287
{

0 commit comments

Comments
 (0)