| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function isSatisfied( Request $request ) { |
||
| 42 | $query_var_value = get_query_var( $this->query_var, null ); |
||
| 43 | |||
| 44 | if ( $query_var_value === null ) { |
||
| 45 | return false; |
||
| 46 | } |
||
| 47 | |||
| 48 | if ( $this->value === null ) { |
||
| 49 | return true; |
||
| 50 | } |
||
| 51 | |||
| 52 | return strval( $this->value ) === $query_var_value; |
||
| 53 | } |
||
| 54 | |||
| 62 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.