The Squiz.PHP.DisallowMultipleAssignments sniff is giving a Found error “Assignments must be the first block of code on a line” for the following code snippet:
<?php $edit_snapshot_text = __( 'Edit Snapshot', 'customize-snapshots' ); ?>
If I put a line break after <?php then it passes:
<?php
$edit_snapshot_text = __( 'Edit Snapshot', 'customize-snapshots' );
?>
I would expect both snippets to not raise errors for Squiz.PHP.DisallowMultipleAssignments.
The
Squiz.PHP.DisallowMultipleAssignmentssniff is giving aFounderror “Assignments must be the first block of code on a line” for the following code snippet:If I put a line break after
<?phpthen it passes:I would expect both snippets to not raise errors for
Squiz.PHP.DisallowMultipleAssignments.