diff --git a/tests/RulesetTest.php b/tests/RulesetTest.php index ca9b15d0..40c41a91 100644 --- a/tests/RulesetTest.php +++ b/tests/RulesetTest.php @@ -103,7 +103,7 @@ public function __construct( $ruleset, $expected = [] ) { $output = $this->collect_phpcs_result(); - if ( ! is_object( $output ) || empty( $output ) ) { + if ( empty( $output ) || ! is_object( $output ) ) { printf( 'The PHPCS command checking the ruleset hasn\'t returned any issues. Bailing ...' . PHP_EOL ); exit( 1 ); // Die early, if we don't have any output. }