@@ -231,102 +231,102 @@ Changing Classes
231
231
This table tells you which changes you are allowed to do when working on
232
232
Symfony's classes:
233
233
234
- ================================================== ============== ===============
235
- Type of Change Change Allowed Notes
236
- ================================================== ============== ===============
237
- Remove entirely No
238
- Make final No :ref: `[6] <note-6 >`
239
- Make abstract No
240
- Change name or namespace No
241
- Change parent class Yes :ref: `[4] <note-4 >`
242
- Add interface Yes
243
- Remove interface No
234
+ ======================================================================== ============== ===============
235
+ Type of Change Change Allowed Notes
236
+ ======================================================================== ============== ===============
237
+ Remove entirely No
238
+ Make final No :ref: `[6] <note-6 >`
239
+ Make abstract No
240
+ Change name or namespace No
241
+ Change parent class Yes :ref: `[4] <note-4 >`
242
+ Add interface Yes
243
+ Remove interface No
244
244
**Public Properties **
245
- Add public property Yes
246
- Remove public property No
247
- Reduce visibility No
248
- Move to parent class Yes
245
+ Add public property Yes
246
+ Remove public property No
247
+ Reduce visibility No
248
+ Move to parent class Yes
249
249
**Protected Properties **
250
- Add protected property Yes
251
- Remove protected property No :ref: `[7] <note-7 >`
252
- Reduce visibility No :ref: `[7] <note-7 >`
253
- Make public No :ref: `[7] <note-7 >`
254
- Move to parent class Yes
250
+ Add protected property Yes
251
+ Remove protected property No :ref: `[7] <note-7 >`
252
+ Reduce visibility No :ref: `[7] <note-7 >`
253
+ Make public No :ref: `[7] <note-7 >`
254
+ Move to parent class Yes
255
255
**Private Properties **
256
- Add private property Yes
257
- Make public or protected Yes
258
- Remove private property Yes
256
+ Add private property Yes
257
+ Make public or protected Yes
258
+ Remove private property Yes
259
259
**Constructors **
260
- Add constructor without mandatory arguments Yes :ref: `[1] <note-1 >`
261
- Remove constructor No
262
- Reduce visibility of a public constructor No
263
- Reduce visibility of a protected constructor No :ref: `[7] <note-7 >`
264
- Move to parent class Yes
260
+ Add constructor without mandatory arguments Yes :ref: `[1] <note-1 >`
261
+ Remove constructor No
262
+ Reduce visibility of a public constructor No
263
+ Reduce visibility of a protected constructor No :ref: `[7] <note-7 >`
264
+ Move to parent class Yes
265
265
**Destructors **
266
- Add destructor Yes
267
- Remove destructor No
268
- Move to parent class Yes
266
+ Add destructor Yes
267
+ Remove destructor No
268
+ Move to parent class Yes
269
269
**Public Methods **
270
- Add public method Yes
271
- Remove public method No
272
- Change name No
273
- Reduce visibility No
274
- Make final No :ref: `[6] <note-6 >`
275
- Move to parent class Yes
276
- Add argument without a default value No
277
- Add argument with a default value No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
278
- Remove argument No :ref: `[3] <note-3 >`
279
- Add default value to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
280
- Remove default value of an argument No
281
- Add type hint to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
282
- Remove type hint of an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
283
- Change argument type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
284
- Add return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
285
- Remove return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >` :ref: `[9] <note-9 >`
286
- Change return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
270
+ Add public method Yes
271
+ Remove public method No
272
+ Change name No
273
+ Reduce visibility No
274
+ Make final No :ref: `[6] <note-6 >`
275
+ Move to parent class Yes
276
+ :ref: ` Add argument without a default value < add-argument-public-method >` No
277
+ :ref: ` Add argument with a default value < add-argument-public-method >` No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
278
+ Remove argument No :ref: `[3] <note-3 >`
279
+ Add default value to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
280
+ Remove default value of an argument No
281
+ Add type hint to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
282
+ Remove type hint of an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
283
+ Change argument type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
284
+ Add return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
285
+ Remove return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >` :ref: `[9] <note-9 >`
286
+ Change return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
287
287
**Protected Methods **
288
- Add protected method Yes
289
- Remove protected method No :ref: `[7] <note-7 >`
290
- Change name No :ref: `[7] <note-7 >`
291
- Reduce visibility No :ref: `[7] <note-7 >`
292
- Make final No :ref: `[6] <note-6 >`
293
- Make public No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
294
- Move to parent class Yes
295
- Add argument without a default value No :ref: ` [7] < note-7 >`
296
- Add argument with a default value No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
297
- Remove argument No :ref: `[3] <note-3 >`
298
- Add default value to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
299
- Remove default value of an argument No :ref: `[7] <note-7 >`
300
- Add type hint to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
301
- Remove type hint of an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
302
- Change argument type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
303
- Add return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
304
- Remove return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >` :ref: `[9] <note-9 >`
305
- Change return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
288
+ Add protected method Yes
289
+ Remove protected method No :ref: `[7] <note-7 >`
290
+ Change name No :ref: `[7] <note-7 >`
291
+ Reduce visibility No :ref: `[7] <note-7 >`
292
+ Make final No :ref: `[6] <note-6 >`
293
+ Make public No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
294
+ Move to parent class Yes
295
+ :ref: ` Add argument without a default value < add-argument-public-method >` No
296
+ :ref: ` Add argument with a default value < add-argument-public-method >` No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
297
+ Remove argument No :ref: `[3] <note-3 >`
298
+ Add default value to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
299
+ Remove default value of an argument No :ref: `[7] <note-7 >`
300
+ Add type hint to an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
301
+ Remove type hint of an argument No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
302
+ Change argument type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
303
+ Add return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
304
+ Remove return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >` :ref: `[9] <note-9 >`
305
+ Change return type No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
306
306
**Private Methods **
307
- Add private method Yes
308
- Remove private method Yes
309
- Change name Yes
310
- Make public or protected Yes
311
- Add argument without a default value Yes
312
- Add argument with a default value Yes
313
- Remove argument Yes
314
- Add default value to an argument Yes
315
- Remove default value of an argument Yes
316
- Add type hint to an argument Yes
317
- Remove type hint of an argument Yes
318
- Change argument type Yes
319
- Add return type Yes
320
- Remove return type Yes
321
- Change return type Yes
307
+ Add private method Yes
308
+ Remove private method Yes
309
+ Change name Yes
310
+ Make public or protected Yes
311
+ Add argument without a default value Yes
312
+ Add argument with a default value Yes
313
+ Remove argument Yes
314
+ Add default value to an argument Yes
315
+ Remove default value of an argument Yes
316
+ Add type hint to an argument Yes
317
+ Remove type hint of an argument Yes
318
+ Change argument type Yes
319
+ Add return type Yes
320
+ Remove return type Yes
321
+ Change return type Yes
322
322
**Static Methods and Properties **
323
- Turn non static into static No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
324
- Turn static into non static No
323
+ Turn non static into static No :ref: `[7] <note-7 >` :ref: `[8] <note-8 >`
324
+ Turn static into non static No
325
325
**Constants **
326
- Add constant Yes
327
- Remove constant No
328
- Change value of a constant Yes :ref: `[1] <note-1 >` :ref: `[5] <note-5 >`
329
- ================================================== ============== ===============
326
+ Add constant Yes
327
+ Remove constant No
328
+ Change value of a constant Yes :ref: `[1] <note-1 >` :ref: `[5] <note-5 >`
329
+ ======================================================================== ============== ===============
330
330
331
331
Changing Traits
332
332
~~~~~~~~~~~~~~~
@@ -382,8 +382,8 @@ Reduce visibility
382
382
Make final No :ref: `[6] <note-6 >`
383
383
Make public No :ref: `[8] <note-8 >`
384
384
Move to used trait Yes
385
- Add argument without a default value No
386
- Add argument with a default value No
385
+ :ref: ` Add argument without a default value < add-argument-public-method >` No
386
+ :ref: ` Add argument with a default value < add-argument-public-method >` No
387
387
Remove argument No
388
388
Add default value to an argument No
389
389
Remove default value of an argument No
0 commit comments