Project

General

Profile

Actions

Task #55444

closed

Use typesafe comparison where possible

Added by Michiel Roos over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2014-01-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

To avoid casting variables when comparing them, we must use typesafe comparison where possible.

Use === instead of AND ! instead of != where the elements compared are known to be of the same type.

Actions #1

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Closed

I'm closing this one.
Not because the info in itself is wrong, but because having an issue is pointless here.
But we pay attention to doing so in every new review.

Actions

Also available in: Atom PDF