[TYPO3-core] RFC: Bug #11831: Remove reference operators for objects

Steffen Kamper info at sk-typo3.de
Tue Sep 1 23:41:04 CEST 2009


Hi olly,

+1 by reading and testing.

95% of replacements are simular ($pObj, $this, t3lib_div::getUserObj and 
  t3lib_div::makeInstance)

All the others are objects.

Only one is unclear by reading, the last one:
	 * @param	unknown_type		$ref
  	 * @return	string		list item HTML attibutes
  	 */
-	public function updateNumberOfOpenDocsHook(&$params, &$ref) {
+	public function updateNumberOfOpenDocsHook(&$params, $ref) {

as $ref is declared as "unknown_type" it'S not clear that's an object.

Testing, well, difficult. I only applied the patch and tested normal 
operations in BE, all without any problems. i can't catch all cases 
patched, but the careful reading should be ok here.

next one please :)

vg Steffen


More information about the TYPO3-team-core mailing list