| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __construct( |
||
| 36 | RegUrlLink $reg_url_link, |
||
| 37 | \EE_Transaction $transaction, |
||
| 38 | \EE_Ticket $ticket |
||
| 39 | ) { |
||
| 40 | // figure out where to start parsing the reg code |
||
| 41 | $chars = strpos( $reg_url_link, '-' ) + 5; |
||
| 42 | // TXN_ID + TKT_ID + first 3 and last 3 chars of reg_url_link |
||
| 43 | $this->reg_code = array( |
||
|
|
|||
| 44 | $transaction->ID(), |
||
| 45 | $ticket->ID(), |
||
| 46 | substr( $reg_url_link, 0, $chars ) |
||
| 47 | ); |
||
| 48 | // now put it all together |
||
| 49 | $this->reg_code = apply_filters( |
||
| 50 | 'FHEE__Create__regCode__new_reg_code', |
||
| 51 | implode( '-', $this->reg_code ), |
||
| 52 | $transaction, |
||
| 53 | $ticket |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 71 | // Location: /RegCode.php |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..